Commit Graph

18 Commits

Author SHA1 Message Date
Sushil Chauhan c24c0ae99f hwc2: Check for color modes support
Check for color modes support by Display, before marking layer as HDR.

Bug: 79541227
CRs-Fixed: 2102517
Change-Id: Id8595dcb322900f98556c40fde94fa88e3ec4e39
2018-05-10 22:05:09 +00:00
Rajavenu Kyatham 99c71edb54 sdm: allow commits in doze_suspend as well.
- revert of I495cd9748f6dbdf7b1dd80cffa35759e529ff7cf

Bug: 79541227

Change-Id: I50c4227d4855673e093fcba38a6454edaf0e1bf7
CRs-Fixed: 2140924
2018-05-10 22:04:42 +00:00
Saurabh Shah 81fdbfedd9 hwc: Fix request flag reset and Present() bailout
The ClearRequestFlags() method iterates over layer_stack_ instead of
layer_set_. This causes a use-after-free since DestroyLayer() removes
layer from layer_set_ only. Besides that, the method need not be
virtual and has a redundant loop. This change removes the
ClearRequestFlags() method and clears flags in an existing loop.
Present() bails out if layer_set_ is empty or a shutdown is pending.
Since layers could have been destroyed before Present(), ideally
bailing out on re-validation has a higher priority over the rest.

Bug: 79541227
CRs-Fixed: 2165926
Change-Id: Ic7b31bbd07a22b8df47fccb2024b3415ab3a559b
2018-05-10 22:04:17 +00:00
Rajavenu Kyatham 85a0f2823c sdm: hwc2: Add support for TWM entry and exit.
- Implement SET_STAND_BY_MODE binder support. SKGHAL
  use this api to inform HWC about TWM entry/exit.
- Move to null display to drop all incoming calls
  from surfaceflinger on TWM entry.
- Move to normal display on TWM exit.
- Add scope_lock for SET_STAND_BY_MODE API.

Bug: 79541227
CRs-Fixed: 2200577
Change-Id: I26ef3b1af53856f68f76b116988cc2a28c06b6ac
2018-05-10 22:03:50 +00:00
Bharath Gopal 679188367b hwc2: Determine virtual display presence based on target specific property
GetMaxVirtualDisplayCount returns a hard-coded value. Return virtual
 display count based on a property that is target specific.
 Return a value of 1 by default when the property is not found in the
 target device.

Bug: 79541227

Change-Id: I4c9727ad1687fc7e53c89ce5e41973628022acec
2018-05-10 22:03:16 +00:00
Alain Vongsouvanh 61212d9299 sdm: send unique power state in doze and doze_suspend.
This is a manual merge of CAF commit e7da5462bc8d7e8c2a8c1595ae12949237183979.

BUG: 76115647
Change-Id: I8b04ba1c130556613e2bf6b32affce4965f95b46
(cherry picked from commit a01e3f5f6d0905c14537cacebad296babc34b6d2)
2018-03-29 14:08:51 +00:00
Ch Ganesh Kumar 8427dbeb79 hwc2: avoid adding default color mode when display PP is unsupported.
For targets that do not support display post processing, setting of
color modes is a no-op. The inclusion of the default Identity color
mode in the color transform map will be avoided when the flag
TARGET_EXCLUDES_DISPLAY_PP is set in order to signify that no color
modes are supported when PP features are not supported in the target

Change-Id: If3929b38ec7a093498c404da1798eaccbc97a281
2018-02-20 17:09:34 -08:00
Rohit Kulkarni 8402b86cd9 hwc2: hwc: Validate input parcel values for few qclient methods.
Validate values read from input parcel as part of handling of
few qclient methods

Change-Id: Icf928f409a5c2ac76a73e95de58cb0ebc59d24d5
CRs-Fixed: 2114346
2018-02-20 17:09:34 -08:00
Ramkumar Radhakrishnan b85c4c7be2 hwc2: Fix NULL pointer dereference and out of bound access
Change-Id: Ib7a2ce818b1e6f5203f03138a95b2754ff446127
CRs-Fixed: 2114346
2018-02-20 17:09:34 -08:00
Saurabh Shah 4ab72fe774 gralloc1: Check input addresses for null
Change-Id: Iddfcc07e50d3503a69b3604e5bd7f025f2b20534
CRs-Fixed: 2114346
2018-02-20 17:09:34 -08:00
Alain Vongsouvanh 9a2db0127f display: fix compilation issues for 3100.
* Add missing headers.
* Remove unused variables.
* Remove unknown dependencies.

BUG: 73113371
Change-Id: If15612aa6ac4a59db652e02d66355701e240d688
2018-02-09 01:33:39 +00:00
Rajavenu Kyatham a9869b043c sdm: block commits in doze_suspend state
Change-Id: I495cd9748f6dbdf7b1dd80cffa35759e529ff7cf
2018-02-08 14:32:12 -08:00
Rajavenu Kyatham 582ae2e02c sdm: Avoid rotator for MDP3
Change-Id: I9de7b904a36b419dd5516ff01051c84687bd0c78
CRs-Fixed: 2162502
2018-02-08 14:32:07 -08:00
Rajavenu Kyatham 5cc05e4d00 sdm: unify doze and doze_suspend on 8909w
- Legacy hal doesn't maintaining two different
  modes like doze and doze_suspend.
- Legacy hal uses FB_BLANK_VSYNC_SUSPEND.

CRs-Fixed: 2140924
Change-Id: I080b43089d335eff65c29de60c67112d5a4f1dd9
2018-02-08 14:32:01 -08:00
Sundara Vinayagam f2e9c44d62 libgralloc: Fix adding offset to the mapped base address
Change-Id: I16f0625af343f6a05ee54285cdca8b6a56fc511e
2018-02-08 14:31:57 -08:00
Rajeswari Konda 5d958f5ec1 8909w: removal of android.hidl.base@1.0
removal of android.hidl.base@1.0 as it is already integrated into libhidltransport

Change-Id: I11cc06e8d144f82e819e6593b168b11fe189f768
(cherry picked from commit 66ee0dc5575b0b785e67d87686855f81c914e767)
2017-11-09 21:56:53 +00:00
Madhuri Athota 992d468c28 sdm: Handle commit failure from comp manager correctly
Change-Id: I0fe792e1b215a28b8d4faa621bf88366a6c91ae0
Signed-off-by: Madhuri Athota <mathota@codeaurora.org>
(cherry picked from commit ea868137215513f7c63df3b8305ad8405cfa1949)
2017-10-26 22:22:58 +00:00
Alain Vongsouvanh 4a1efd0680 display: msm8909w caf release LW.BR.3.0.1-04400-8x09w.0 for SD3100.
MSM8909W display HAL code copied from CAF release LW.BR.3.0.1-04400-8x09w.0.
Created a new msm8909w_3100 subfolder as 3.0.1 releases are not compatible with
3.0.0.

Change-Id: I4eb9a1f5063ace1f27f35eb7e814bf82498493d3
(cherry picked from commit 5f5637ca395ebc17367279346bbd0b93f83ce6fb)
2017-10-17 06:34:57 +00:00