Commit Graph

68 Commits

Author SHA1 Message Date
Linux Build Service Account
7b017ba612 Merge "sdm: drm: Add support for global dither feature" 2018-03-08 16:02:06 -08:00
Linux Build Service Account
4d490535e9 Merge "sdm: Set inline rotator prefill bw property to driver" 2018-03-08 16:02:04 -08:00
Gopikrishnaiah Anandan
5588484573 sdm: drm: Add support for global dither feature
This change adds support for global dither v1 feature.

Change-Id: I8911e2c422e7a6b7c07276cda8fca0c3c8b5ce81
2018-03-08 02:50:49 -08:00
Ramkumar Radhakrishnan
b9f535546a sdm: Set inline rotator prefill bw property to driver
Change-Id: Ie775db54ef2c254f670ad072c51b1daf18cd9786
CRs-Fixed: 2158709
2018-03-08 02:32:41 -08:00
Saurabh Shah
2d17974a41 sdm: Add support for secondary vsync
Add support for enabling secondary vsync

Change-Id: Ia2231a19292314513d613efbb6953b1943530af0
CRs-fixed: 2184506
2018-03-08 02:27:53 -08:00
Ramkumar Radhakrishnan
07254304fa sdm: Set multirect mode to driver via plane property
Change-Id: Ia3b33e8761392ca211f210e6600a47dde9c768e0
CRs-Fixed: 2166036
2018-01-15 14:32:03 -08:00
Linux Build Service Account
45aa37cc0e Merge "display: Enhance debug logging" 2017-12-15 02:25:16 -08:00
Pullakavi Srinivas
3e2c04038e sdm: Populate min prefill lines.
Change-Id: I5b3b44413d23d13983e7bb7ecc736893d8ba6aec
2017-12-07 07:24:09 -08:00
Srikanth Rajagopalan
7a09b2edb2 sdm: drm: Set HDR metadata to sink
Set HDR metadata to sink for HDR playback support.

CRs-Fixed: 2143509
Change-Id: I6e7021c6cda7cd32efe3fc6d88f6322762477a17
2017-11-30 20:07:49 -08:00
Srikanth Rajagopalan
ce0f7cb50f sdm: drm: Get HDR sink properties from kms
Get sink capabilities for HDR support from drm-kms.

CRs-Fixed: 2143509
Change-Id: I89ae16d333de995a841ea10311d092485c517226
2017-11-28 22:13:09 -08:00
Srikanth Rajagopalan
4938078914 sdm: drm: Get HDR support capability of chipset
HDR support capability information is used to invoke HDR feature.

CRs-Fixed: 2143509
Change-Id: I954793e9085472bf9de4f364c0e3350939b62b7e
2017-11-28 22:12:30 -08:00
Saurabh Dubey
d90a6a43cc display: Enhance debug logging
1) Enable dynamic debugging in DRM
2) Add more Qservice debug categories, add corresponding kTags
3) Use ALOG for messages before core creation and after it is destroyed
4) Categorize existing logs correctly
5) Add more logs

Change-Id: I3a9907900c6546adca907ecf720a78649fdc800b
Crs-fixed: 2146757
2017-11-28 20:32:24 -08:00
Saurabh Shah
7e16c93421 sdm: Remove null commits used for obtaining topology
Driver exports per mode topology and panel params which obviates
the need for null commits after crtc->connector chain setup or
mode switch. Remove null commits for all display types.

Revert "sdm: Fix topology after adding new mode"
This reverts commit 5014f0eb03.

Change-Id: Ib68c5b2e2ff475250b7251822515e51fb7b31869
CRs-fixed: 2138173
2017-11-17 14:45:22 -08:00
Saurabh Shah
f363595c92 sdm: Port autorefresh support
Port autorefresh support to DRM

Change-Id: Id04bedded783c15481470479a5778cd02574efa1
CRs-fixed: 1114808
2017-11-01 13:44:38 -07:00
Linux Build Service Account
7492c8df14 Merge "sdm: drm: Defer first null commit" 2017-10-25 12:59:05 -07:00
Saurabh Shah
82b06f49f8 sdm: drm: Defer first null commit
Defer first null commit to the first actual draw cycle. This reduces
the duration of blank screen between splash and boot animation.

Change-Id: I192465ba213e19d1abae1128ddbe5ccfab20b217
CRs-fixed: 2106859
2017-10-19 21:20:07 -07:00
Ramkumar Radhakrishnan
2389c6b3c3 Revert "Populate minimum ib limit" and populate hw_version.
1. This reverts commit b44863291e.
2. Populate hw_version information from CRTC info

Change-Id: I30445c8b93dd6fec49d5984763b464c4efcdb886
CRs-Fixed: 2121347
2017-10-18 11:46:29 -07:00
Linux Build Service Account
37cebc9ee1 Merge "sdm: drm: Add pa memcolor features support" 2017-10-17 19:10:19 -07:00
Namit Solanki
24921ab88a sdm: Add support for destination scalar in drm.
1) Add DRMOps for destination scalar.
2) Pass destination scalar data to DRM driver.
3) Add Scalar LUTs to CRTC during Init()
4) Disable PU when DS is enabled.

Change-Id: I5450b02c16e6d162fb0069c924dc2c9877834093
Crs-fixed: 2063894
2017-10-09 03:11:45 -07:00
Anjaneya Prasad Musunuri
e8c67f226d sdm: Implement idle fallback support in DRM.
Add CRTC property to set idle timeout. Enhance DRM event
handler for idle fall back custom event registration and
event handling

CRs-Fixed: 2097588

Change-Id: I543286a59a4ae95bc32b25960d1fc43551391951
2017-10-09 13:52:27 +05:30
Rajesh Yadav
99535ac9e4 sdm: drm: Add pa memcolor features support
Add dspp pa memcolor features support to hw_color_mgr for drm.

Change-Id: I35cd71e43569c0c731774a88ae8a926be3473986
2017-10-05 12:42:26 +05:30
Rajesh Yadav
d30b0ccdd6 sdm: drm: Add pa hsic feature support
Add dspp pa hsic feature support to hw_color_mgr for drm.

Change-Id: I4525ddd80f82ee73bed57dac04cccd353281df46
2017-10-05 12:39:04 +05:30
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
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
65f8131223 Merge "sdm: drm: Set FB secure mode for Writeback Connector" 2017-08-25 20:59:45 -07:00
Sushil Chauhan
e2f89c9fb3 sdm: drm: Set FB secure mode for Writeback Connector
Set FB Secure mode property for the Writeback Connector.

CRs-Fixed: 2098043
Change-Id: I8eb4f4f40541583107e0a8897a874ae7aeec4083
2017-08-23 11:32:25 -07:00
Ramkumar Radhakrishnan
b44863291e sdm: Populate minimum ib limit in kbps from crtc info
Populate minimum ib limit in kbps for MNOC, LLCC and DRAM bus from
CRTC info and store it in resource info.

Change-Id: Ia9348e60bf6baf0036a5e388cb332c161d969516
CRs-Fixed: 2097320
2017-08-22 14:42:49 -07:00
Ping Li
8d6dd629a8 sdm: drm: Add support to select CSC matrix type in DRM
Add support to select CSC matrix type based on color meta
data, and set CSC config.

CRs-Fixed: 2079944
Change-Id: I0b4cfc0c6a46c6a3997856d346f1c3efc1ac676c
2017-08-15 12:18:09 -07:00
Gopikrishnaiah Anandan
cc12306db9 sdm: Update solid-fill to support 10-bit
Currently the solid fill is hard-coded to 8 bit depth. SDM845 hardware
supports 10 bit solid fill. Change adds the support for various bit
depth's of solid fill color.

Change-Id: I3435cad5bb0b6f9097f22b39065944cb4f20d08c
2017-08-11 14:26:14 -07:00
Linux Build Service Account
8603d732c6 Merge "sdm: Fix memory leak in connector modes" 2017-08-04 17:37:32 -07:00
Linux Build Service Account
9fd12a4b3a Merge "sdm: Qseed3 scalar updates" 2017-08-02 17:39:53 -07:00
Ramkumar Radhakrishnan
5c94f05577 sdm: Populate/Compute transfer time to compute BW/Clock
Populate transfer time in micro seconds for command mode panel to
compute BW/Clock for current frame

Change-Id: Id79c470448edc9cb361f34e0c7366be1d31d5c67
CRs-Fixed: 2078600
2017-08-01 19:08:27 -07:00
Saurabh Shah
e618eb05d6 sdm: Fix memory leak in connector modes
HWDevice calls GetConnectorInfo twice without freeing the memory
allocated by libsdedrm in the first call. Move to using vectors.

Change-Id: Ie2e1372f441d21dfc397f0891fd59b007016fefe
CRs-fixed: 1114808
2017-07-31 11:27:10 -07:00
Rohit Kulkarni
bfa855c7b5 sdm: Qseed3 scalar updates
- New 2D alpha interpolation config mode for scalar.
- Recognize qseed3 versions.

Change-Id: I4fb93e2c5f6280a4ac2627d00d2d573af10e70fe
CRs-Fixed: 2069565
2017-07-24 12:01:20 -07:00
Prabhanjan Kandula
dbc8aed64d sdm: Add support for solid fill mixer stage
- Define drm interface for setting solid fill stage info on crtc.
- Define sdm private structure for solid fill layers in hw layer config.
- Add DAL translation of setting up solidfill stages for atomic commit.
- Multiply alpha component of color with plane alpha.

Change-Id: I60ac64beee31986f83fcfe025a7ece02aa0198b1
CRs-fixed: 2026472
2017-07-18 15:45:53 -07:00
Linux Build Service Account
8b76f57354 Merge "sdm: Avoid duplicate BW config on crtc" 2017-07-18 13:10:34 -07:00
Linux Build Service Account
4d73c014fe Merge "sdm: Configure RMFB delay based on whether it is refcounted" 2017-07-17 21:29:06 -07:00
Gopikrishnaiah Anandan
76815525eb sdm: drm: Add support for sde hardware revision caching
SDE hardware version should be cached by drm crtc which will be passed
onto the clients of colormanager. Based on the SDE hardware version
clients will know which feature set is supported. Change adds support to
cache sde version.

Change-Id: I09051bcdfc0f759297519c3abd46373944967ada
2017-07-17 10:52:36 -07:00
Linux Build Service Account
37bfa25dc4 Merge "sdm: drm: Read Panel HDR caps" 2017-07-14 03:57:08 -07:00
Sushil Chauhan
80e5843315 sdm: drm: Read Panel HDR caps
Read Panel HDR capabilities from DRMConnectorInfo.

CRs-Fixed: 2073357
Change-Id: I48346e116f147bc3c32967e68e7e4a9e514de2c6
2017-07-11 14:00:34 -07:00
Saurabh Shah
23cd08af20 sdm: Configure RMFB delay based on whether it is refcounted
Configure RMFB delay based on whether it is refcounted. If it is,
fb_id should be released immediately from userspace and driver will
free it when its usage is over. If not refcounted userspace needs
to defer freeing fb_id until a time where driver usage will be over.

Change-Id: I162723a5426c7e7c041d444ba50a73475858e96f
CRs-fixed: 1114808
2017-07-11 10:24:30 -07:00
Sushil Chauhan
1021cc0c0a sdm: drm: Add support for secure use cases
1. Set FB Secure translation mode for Plane.
2. Set Security level for CRTC.

CRs-Fixed: 2054074
Change-Id: I39610f2d9548641c724d1a7c16b23865c29323df
2017-07-06 14:21:44 -07:00
Ramkumar Radhakrishnan
3c4de11f27 sdm: Add support for split bandwidth voting
Define interface to enable split bandwidth voting for MNOC, LLCC and
DRAM buses separately.

Change-Id: If8da2cb41270adbe606a1b36d9884ea21c9efd7d
CRs-Fixed: 2063498
2017-06-20 01:13:01 -07:00
Linux Build Service Account
a70a27b4f2 Merge "sdm: drm: Expand drm topology enum for dsc" 2017-06-19 18:58:38 -07:00
Rohit Kulkarni
2faa91c313 sdm: drm: Expand drm topology enum for dsc
Add new topology modes for dsc and align to match with driver.

Change-Id: I202fbfa1240e5e677d832ca32c20ded989aa1ed8
CRs-Fixed: 2060682
2017-06-15 14:46:45 -07:00
Rohit Kulkarni
8622e36f16 sdm: Add support for inline rotator
Add support to populate inline rotator caps and setup inline
rotator configuration during atomic commit.

Change-Id: I6504db71689a865c6edb15e12ab44a6740255cb5
CRs-fixed: 2017744
2017-06-13 15:19:57 -07:00
Prabhanjan Kandula
5bc7f8b378 sdm: Add support for flip panel mount in drm DAL
- Define 180 rotation in drm interface
- Read panel rotation from connector info and
populate panel orientation for sdm

Change-Id: Iaf8417f4eb8d3b8dc6f95f783bcb447cad230c64
CRs-fixed: 2051379
2017-05-31 11:42:55 -07:00
Naseer Ahmed
725789e5e6 display: Use LOCAL_VENDOR_MODULE
Avoids hardcoding paths in vendor
Change-Id: I6411c27cebfd8bc1d65bc84942b4c2621f64e420
CRs-Fixed: 2048581
2017-05-29 11:13:02 -07:00
Ramkumar Radhakrishnan
9ed1fd8e79 sdm: Add interface for QOS calculation.
1. Populate properties for bandwidth/clock calculation and store it
   as a part of hw resource info.
2. Define interface to pass computed bandwidth/clock for each hardware
   interface separately.

Change-Id: I1bd03136e97f77f5fd3b26c7b8aa958238d007ab
CRs-Fixed: 2048927
2017-05-19 17:43:17 -07:00
Saurabh Shah
e9f55d7696 sdm: drm: Add support for partial update
Add support for partial update

Change-Id: I29b6c3cdb71e6a26ab21679494f04ced5052a1e3
CRs-fixed: 1114808
2017-05-19 17:08:48 -07:00