Commit Graph

3675 Commits

Author SHA1 Message Date
Linux Build Service Account
ddb2218d71 Merge "hwc2: Add support for Secure Display" 2017-10-02 12:18:04 -07:00
Linux Build Service Account
87ce4f1a99 Merge "hwc2: Use GRALLOC1_PFN_ALLOCATE to allocate buffer" 2017-10-02 12:18:02 -07:00
Linux Build Service Account
8bd05224fd Merge "sdm: Fix Doze/Doze Suspend" 2017-10-02 12:17:50 -07:00
Ramkumar Radhakrishnan
4f12b50bf0 hwc2: Use GRALLOC1_PFN_ALLOCATE to allocate buffer
1. Define gralloc1 function pointers needed to allocate buffer
2. Use the gralloc1 function pointers to allocate buffer instead of
   perform function to avoid any synchronization issues.
3. Remove functionality to allocate buffer from perform function

Change-Id: If686181409a179d3d911dfbd0f0c0eab7a7ffa99
CRs-Fixed: 2115331
2017-09-26 15:29:47 -07:00
Ramakant Singh
46a1bee9ab hwc2: Add support for Secure Display
- Support handling secure display in HWC
- Issue NULL commit on primary display when secure display session
  starts and ends.

Change-Id: I95a8caaf1366c1d9384843d382244e1555dd6ad2
2017-09-25 23:36:24 -07:00
Saurabh Shah
a917aa7d95 sdm: Fix Doze/Doze Suspend
Doze should have a synchronous commit. Doze suspend is missing a
CRTC activation and commit. Add support to retain previously staged
planes by client, since it may not be able to program again in some
situations like Doze and Doze-Suspend. Also retain planes on resume
since it can happen after Doze and Doze-Suspend that may have planes
staged.

Change-Id: Ibb65da16e893a9ae33fd30d19308779ee8687258
CRs-fixed: 2106183
2017-09-25 16:59:10 -07:00
Prabhanjan Kandula
63a613f704 hqd: add qservice binder for blocking dpps
Dpps should wait opening driver before composer comes up.
Add a wservice binder call to query composer init status.
Add util function to block dpps until composer is up.

Change-Id: I82c025011e23a0b159ef2449b00b868a365d681a
CRs-fixed: 2102579
2017-09-25 16:02:16 -07:00
Prabhanjan Kandula
6e9d70aba9 sdm: Validate connector modes again
Mode index validation required each time when we get
connecotor info as hotplug disconnect can clear the
modes listed on crtc.

Change-Id: Ibe3f64e8ceb5e3cb11c56f06256c7e71eb5ec220
CRs-fixed: 2110309
2017-09-25 12:49:17 -07:00
Linux Build Service Account
82f1bc5e98 Merge "hwc: Push a dummy -1 release fence in case of flush" 2017-09-25 06:07:40 -07:00
Linux Build Service Account
5a83cd9c6c Merge "sdm: Handle commit failure from comp manager correctly" 2017-09-25 06:07:38 -07:00
Linux Build Service Account
35ae54fe58 Merge "sdm: Handle idle fall back and idle power collapse with same event" 2017-09-20 10:30:55 -07:00
Linux Build Service Account
6930abfcf7 Merge "sdm: Add size for 13x13x13 gamut mode support" 2017-09-20 10:30:53 -07:00
Linux Build Service Account
ea5a3b9125 Merge "sdm: drm: Fix h_blanking accounting in SDM" 2017-09-20 10:30:43 -07:00
Saurabh Shah
42c8d9184c hwc: Push a dummy -1 release fence in case of flush
In case of flush no release fence is pushed to hwc_layer queue and
no error is returned to f/w, so it could end up requesting release
fences. In such a case the queue can be emptied and from the next
valid cycle we end up giving the same cycle's release fence back.
Push a dummy -1 fence to avoid this.

Change-Id: I1330d0b47a23df3203c06cc23aa4b6b4a6fe669e
CRs-fixed: 1114808
2017-09-18 13:49:40 -07:00
Linux Build Service Account
6d0d10522b Merge "sdm:drm: Fix vector initialization." 2017-09-15 04:19:07 -07:00
Anjaneya Prasad Musunuri
79ccd855c8 sdm: Handle idle fall back and idle power collapse with same event
Driver uses same event to trigger idle fall back on video mode panels
and idle power collapse on command mode panels. Handle both with same
event at HAL event handler.

Skip validate should be reset during idle power collapse event.

CRs-Fixed: 2110497

Change-Id: Ie3a0195c4375aebd79e8c7daef7131579bceda9f
2017-09-15 14:57:35 +05:30
Saurabh Shah
864304d851 hwc: Add sequence lock to driver event handling
Driver events could happen between or during Validate/Present cycles
causing synchronization issues. Add sequence lock to driver event
handling to make sure they are serialized.

Change-Id: I98d6613012251e3de428e8d3ef8b89e7f5a7e40c
CRs-fixed: 1114808
2017-09-14 15:22:17 -07:00
Sushil Chauhan
36568365ff sdm: drm: Fix h_blanking accounting in SDM
DRM driver provides the total h_blanking for the display. So, on a
display with dual DSI panels, DRM driver has already accounted for
both panels, hence SDM should not account for h_blanking per panel.

CRs-Fixed: 2092799
Change-Id: I621cf6de225a3caeb5f5c93d1e7c6b47e86a2fa2
2017-09-14 11:05:27 -07:00
Saurabh Shah
c5c687ab7c HWC: Granular locking
Revert "hwc2: Allow non-atomic execution of validate and present apis"
This reverts commit 6c26ba9560.

Add per display granular locking in HWC to align with the Validate,
Present call sequence from SF, that happens independently for each
display and possibly on different threads.

Change-Id: Ia092d7f6e6dc26ad22286a93de7b663e8bdf23d0
CRs-fixed: 2095334
2017-09-13 23:32:44 -07:00
Linux Build Service Account
d2c806d8c9 Merge "sdm: Rework hdr mode setting based on blend color space" 2017-09-13 08:46:23 -07:00
Linux Build Service Account
49b5d75abf Merge "sdm: Fix CPU hint toggling issue" 2017-09-12 18:26:56 -07:00
Linux Build Service Account
f9c0e1df7e Merge "sdm: Check for valid fd and event before calling handlers" 2017-09-12 18:26:55 -07:00
Linux Build Service Account
8a6d29322f Merge "sdm: Update solid-fill to support 10-bit" 2017-09-12 18:26:53 -07:00
Linux Build Service Account
babb755e0b Merge "hwc2: Handle missing hotplug event [HDMI as primary]." 2017-09-12 18:26:52 -07:00
Linux Build Service Account
c4bff9c9aa Merge "sdm: drm: Fix secure mode setting for Secure Display" 2017-09-12 18:26:51 -07:00
Linux Build Service Account
b00c6f343e Merge "hwc2: Extend GetClientTargetSupport API" 2017-09-12 18:26:51 -07:00
Linux Build Service Account
0d059de669 Merge "sdm: hwc2: Add support for QDCM partial solidfill feature" 2017-09-12 18:26:49 -07:00
Linux Build Service Account
166139a2ac Merge "sdm: Refactor GPU compositon handling." 2017-09-12 18:26:46 -07:00
Ramkumar Radhakrishnan
056337106f sdm: Populate pixel clock and topology
1. Populate pixel clock of each connector mode to compute panel
   transfer time for command mode panel.
2. Populate and store topology of the connector to compute clock.

Change-Id: I14fec26ff1ace19a82bdac060dd9521cdf7019ec
CRs-Fixed: 2108446
2017-09-12 11:57:53 -07:00
Ping Li
85609ee034 sdm: Add size for 13x13x13 gamut mode support
Add new size for 13x13x13 coarse gamut mode, so color
manager will copy over correct size of data for gamut
13x13x13 mode.

Change-Id: Id225f831c27040a87cdc4189d871229de1375839
2017-09-08 10:55:41 -07:00
Baldev Sahu
2d7612d1e8 sdm: Handle commit failure from comp manager correctly
Change-Id: I0fe792e1b215a28b8d4faa621bf88366a6c91ae0
2017-09-05 21:41:27 -07:00
Linux Build Service Account
feeb71737c Merge "gralloc1: Align RAW formats to 16 pixels" 2017-09-04 22:25:13 -07:00
Pullakavi Srinivas
56583f4f1d sdm: Refactor GPU compositon handling.
CRs-fixed: 2090543
Change-Id: I91d68384d0ad410d0d6ec65c72315e26185393f0
2017-09-03 21:55:51 -07:00
Linux Build Service Account
144baa20d2 Merge "hwc2: Link to vendor copy of HIDL generated libs." 2017-08-31 00:43:14 -07:00
Sushil Chauhan
1fc8b840af sdm: drm: Fix secure mode setting for Secure Display
Fix the FB Secure mode property setting for Secure Display use case.

CRs-Fixed: 2096601
Change-Id: If4e79e2b1a3cb874e2f7ee1a2ab276f2cd8d174a
2017-08-31 00:12:18 -07:00
Pramodh Kumar Mukunda
dbf440410b hwc2: Link to vendor copy of HIDL generated libs.
-Change from vendor.display.config@1.0
 to vendor.display.config@1.0_vendor.

Change-Id: I06ea1c46b6d2e26a8bc82d590f790307c5a2bc4a
2017-08-30 17:22:41 -07:00
Ramkumar Radhakrishnan
0aa9e80ed9 sdm: Fix error handling while setting display attributes.
Change-Id: Id787c1fcaf783fb88bdac145a584e851711272b8
CRs-Fixed: 2098243
2017-08-30 14:51:04 -07:00
Gopikrishnaiah Anandan
b032efbbec sdm: hwc2: Add support for QDCM partial solidfill feature
QDCM PC tool provides rectangle info for partial solid-fill use-cases.
Rect info was not being used, change fixes the logic to consume info.

Change-Id: Ic1c29bd02b5ae0e545200e208b846f2c82435604
2017-08-30 12:49:46 -07:00
Naseer Ahmed
1187a578b2 gralloc1: Align RAW formats to 16 pixels
Change-Id: I71eb1f1173a96213a5d4485b7ec8217dae283d47
CR: 2086677
2017-08-30 10:41:59 -07:00
Linux Build Service Account
1fe88f23be Merge "sdm: Reduce log severity for modes without attributes" 2017-08-30 04:56:22 -07:00
Linux Build Service Account
db6ab83c87 Merge "gralloc1: Use implementation defined format at allocate" 2017-08-30 00:06:07 -07:00
Naseer Ahmed
a73ce1913e sdm: Reduce log severity for modes without attributes
Change-Id: I53210138c37dc8425abc919ff351b3084bfba433
2017-08-29 23:41:26 -07:00
Rajavenu Kyatham
865044ea71 hwc2: Handle missing hotplug event [HDMI as primary].
- On boot if HDMI is connected, we are dropping
  the hotplug event which leads to SF crash

CRs-Fixed: 2085392
Change-Id: I6a3025bc50db5a302079614c49bd850a3f71ce10
2017-08-29 02:00:11 -07:00
Linux Build Service Account
a359878186 Merge "liblights: Enable button backlight conditionally" 2017-08-28 08:06:25 -07:00
Linux Build Service Account
4556960b4a Merge "Revert "liblights: Remove unsupported button light node."" 2017-08-28 08:06:24 -07:00
Ramakant Singh
5db0dfb66c sdm: Fix CPU hint toggling issue
Do not toggle CPU hint for draw cycles
with 0 updating layers during video
playback session.
Change-Id: I508f782f911ea4def44209a1b1c34b0c24a47f28
Crs-fixed: 1038379
2017-08-28 05:28:05 -07:00
Saurabh Shah
c002fe2b1d sdm: Check for valid fd and event before calling handlers
Handlers can access uninitialized members for unregistered events,
so check for valid event fd and event occurrence before calling
handlers.

Change-Id: I804ea055c0b185dcb7516c8430f8e2a25a84c00a
CRs-fixed: 1114808
2017-08-28 11:27:18 +05:30
Arun Kumar K.R
80e58ebe82 hwc2: Extend GetClientTargetSupport API
- Refactor the utility to retrieve csc from android_data_space_t
- Add RGB1010102 as supported client-target, except BT2020
  standard
- Mark layers for GPU composition when client-target is
  RGB1010102.

Change-Id: I3e4b32893cf2e349500bbae3e4fda7f6369209ff
Crs-fixed: 2078101
2017-08-27 20:07:41 -07:00
Linux Build Service Account
7d5e6d27e2 Merge "hwc2: Fix usage bits for Rotator buffer during Secure Camera" 2017-08-25 20:59:46 -07:00
Linux Build Service Account
65f8131223 Merge "sdm: drm: Set FB secure mode for Writeback Connector" 2017-08-25 20:59:45 -07:00