Commit Graph

32 Commits

Author SHA1 Message Date
Uday Kiran Pichika
89c36f4fa8 sdm: comply with treble guidelines
Modify the property names and use macros in place of them

CRs-Fixed: 2206249
Change-Id: I5ae790ca62a258b0d7c14931e0132727feed48a3
2018-03-14 21:11:44 +05:30
Sushil Chauhan
3d66b2baa3 sdm: Add support to disable NoSplit strategy
Add support to disable NoSplit strategy by setting the system prop
"sdm.debug.prefersplit" to '1'.

CRs-Fixed: 2068538
Change-Id: I7ea1f98a8a300fa077d889a7e46768416106db6d
2017-07-27 14:37:37 -07:00
srikanth rajagopalan
5d320c6bb2 sdm: Provide best mode support for hdmi drm device
DRM userconfig should be in w:h:fps:format.
FB userconfig should be vic mode.

1. Fix existing bugs in loop traversing to iterate through the mode list.
2. Fix best mode selection logic of preferring width over height.

CRs-Fixed: 2078126
Change-Id: Ia4d1621d11f5fcf17b33cfede56222e30bfd7032
2017-07-18 15:55:44 -07:00
Anjaneya Prasad Musunuri
0a48110086 sdm: Add support to simulate reduced configuration
Add support to simulate reduce plane configuration.

Change-Id: Ic4633668ff255840af3a175a66d553ee017bb27b
CRs-Fixed: 2071452
2017-07-16 22:05:25 -07:00
Rajavenu Kyatham
8c305cc9e1 sdm: Add property to define max upscaling limit.
- Add property 'sdm.max_upscale' to define max upscaling
  by SDE. If upscaling requirement exceeds max_upscale value,
  use GPU for composition.

CRs-Fixed: 2020598
Change-Id: I5ab225c8f39acb4147933e33cf0420d4e8e626a7
2017-03-18 19:52:25 -07:00
Linux Build Service Account
d77bc08802 Merge "sdm: Change idle fallback time dynamically." 2017-03-12 23:23:25 -07:00
Pullakavi Srinivas
c1a71ca211 sdm: Add property to disable partial split
Change-Id: Ia6a60d5e13eb7c18ce02232e1b8e4c98629a7556
CRs-Fixed: 2010024
2017-03-02 03:47:25 -08:00
Dileep Marchya
b06308d123 sdm: Change idle fallback time dynamically.
- Query composition manager for an optimal
  idle time for the current draw cycle.
- Avoid setting same idle time again on sysfs.

CRs-Fixed: 2011276
Change-Id: I4afde21ad630953d5f701fb3d123435028bdfef2
2017-02-28 12:23:06 +05:30
Prabhanjan Kandula
a61a5f8397 sdm : Allow configurable sdm layer limit for external
In non split configurations with more available  pipes, oem
can choose to relax the restriction on number of overlays for
external displays and configure it as per their UX preference
by setting the limit with "sdm.max_external_layers".

Change-Id: I9cd24077af9681485b6816d7f0318495d5da823c
CRs-Fixed: 1024969
2016-11-04 06:53:48 -07:00
Ramkumar Radhakrishnan
d3b4c06a45 sdm: Add property to enable destination scalar during bootup.
Add property sdm.mixer_resolution to configure the layer mixer
resolution during boot up and switch back to requested mixer
resolution when a layer with higher resolution disappears.

Change-Id: I99f12d5f1a858daa41e41be1ff81833adbe3c651
CRs-Fixed: 1038976
2016-10-12 14:55:01 -07:00
Ray Zhang
f2ecade773 sdm: add check for disabling external animation
In current design the flag passed from clients is used to
disable external animation. Refine this flag to two parts,
one is to indicate whether animation is present, another
is to check the system property and disable external
animation. So other functions can know the presence of
animation layers if necessary.

CRs-fixed: 1019601

Change-Id: Ib6ffb7a28d6935b86bc93abc82049b77b3ddcd08
2016-08-17 03:34:02 -07:00
Linux Build Service Account
d6c709ed0d Merge "sdm: Add property to define max video upscaling limit." 2016-08-13 13:52:15 -07:00
Dileep Marchya
694e4b3d97 sdm: Add property to define max video upscaling limit.
- Add property 'sdm.video_max_upscale' to define max video upscaling
  by SDE. If video upscaling requirement exceeds max_upscale value,
  SDM will use GPU to compose the video.

CRs-Fixed: 1048082
Change-Id: I489dca73e840675ac6cae76f0e81b6369035ec6a
2016-08-08 23:05:30 +05:30
Ramkumar Radhakrishnan
14a1fc6de8 sdm: Add support for adaptive variable refresh feature
1. Populate information about AVR feature support from sysfs node.
2. Initialize AVR information based on display mode and dynamic fps
   mode and set corresponding AVR flags.
3. Define debug property sdm.debug.disable_avr to disable avr feature.

Change-Id: I1bfbb9e1f9975468aa9eb6d6b575f317c658480e
CRs-Fixed: 1043833
2016-08-04 16:32:50 -07:00
Naseer Ahmed
57db735386 Merge branch 'LA.HB.1.3.9' into display.lnx.3.0-dev
Merge in newer HALs not present earlier in this branch

Change-Id: I2832d00beccf86dd0929b78c6be1be5f2b0881fe
CRs-fixed: 1015411
2016-05-13 15:03:43 -04:00
Tatenda Chipeperekwa
ca8b2f3ff8 sdm: Set system property when HDMI is Primary
Set a system property "persist.sys.is_hdmi_primary" to indicate
that the HDMI interface is the primary display. This property can
be used by other system components to determine whether to
trigger certain functionality when HDMI is primary.

CRs-Fixed: 1009711
Change-Id: Id215a6ee9c6aa2953b0e2c01af0bad035b728a46
2016-05-08 11:08:31 -07:00
Naseer Ahmed
b92e73fc10 hwc: HWC 2.0 implementation
Add HWCLayer, HWCCallbacks and implement HWC2 layer functionality.

Change-Id: Ic7764e72f4cae534e68764df4cf80eb3db982071
2016-04-28 17:42:00 -04:00
Naseer Ahmed
bb069a6a1d sdm: Fix Wconversion errors
Change-Id: Ica8ecd83e44126d7ef5d8595dcaf52f88aea6e70
CRs-fixed: 974030
2016-03-08 19:32:55 -05:00
Siddharth Zaveri
918435f45d sdm: color-manager: Detect first frame of UI to apply color-mode.
Default color-mode is applied on the first frame of UI screen.
sdm.boot_anim_layer_count property is used to configure the
number of layers in boot animation process. Any commit with
more layers than sdm.boot_anim_layer_count is treated as first frame
of UI and default color-mode is applied at this point.

CRs-Fixed: 939410
Change-Id: Ib5c568819cd045f0de4ee7dcb4accfae9c27f5b2
2016-01-13 14:45:22 -05:00
Arun Kumar K.R
55fe3049ed sdm: Add SPD information for HDMI
- Send SPI(source product information) to HDMI driver
- Vendor name and product descrpition information is passed to
  the HDMI device, which will be used by the TV to show the
  source information instead of INPUT1. INPUT2, etc.,

Change-Id: I2658ec39f95793e25f1fe36525cdc3701f9c64b3
2015-10-12 17:20:53 -07:00
Arun Kumar K.R
3bd31efc6f sdm: hwc: Add support for GetVisibleDisplayRect
Support the binder API to get the display visible rectangle
which is the union of all the app layer's displayframe.

Change-Id: I05d750c80dda5b735bac5938410ddeeeb8823dd1
2015-09-16 16:08:43 -07:00
Sushil Chauhan
ee1fc7e0b0 sdm: Do not allow decimation on UBWC framebuffer
MDP hardware cannot apply decimation on UBWC tiled framebuffer.

CRs-Fixed: 867832

Change-Id: I6f2f37955ac9e2b4a6d7888c146930dd3863f385
2015-07-13 10:11:12 -07:00
Manoj Kumar AVM
2d019a43f6 sdm: Support ControlPartialUpdate api in libqdutils
Implement CONTROL_PARTIAL_UPDATE binder support. DPSS module
use this api to control partial update feature.

Remove support for sdm.partial_update property as it is no
longer applicable.

Change-Id: Ib463aff0042dcfc0d0b2f296b54016b1ee70115d
2015-07-09 19:21:29 -07:00
Dileep Marchya
511fb6d15c sdm: Add a property to disable scalar
- Add 'sdm.debug.disable_scalar' property to disable scalar.

Change-Id: Iee0128cc06f1d78ddec011d34086c2c1d7ba3059
2015-07-07 08:08:08 -07:00
Ramkumar Radhakrishnan
345081196a sdm: Add split rectangle support for split rotation.
1. Add support to split rectangle vertically and horizontally.
2. Add debug property to enable/disable split rotation.

Change-Id: I4070e7e754c2a3a3a9ca4f4eab91037f7f9c88b7
2015-06-24 12:06:17 -07:00
Sushil Chauhan
b5e45c45dd sdm: Parse UBWC feature from MDP caps
1. Parse "ubwc" string in MDP caps feature list.
2. Add support to read system prop "sdm.debug.rotator_disable_ubwc".

Change-Id: Ie43b81237960e6c1e8784801b10cd39df069cddc
2015-06-18 13:14:24 -07:00
Manoj Kumar AVM
6379fa51b4 sdm: Add debug method to DebugHandler
Add method to handle debug messages to DebugHandle class.

Change-Id: Ic15c8c227036e038969cce6439c59959c028a1b3
2015-06-18 13:14:17 -07:00
Naseer Ahmed
b3b0a3305f sdm: Default to C++11 standard and use clang toolchain
- Enable newer C++11 features to be used, including the
  updated standard library.
- Enable better compiler diagnostics with clang.

Change-Id: Ice550e866673ab57228ccb1f6f250e94a536e396
2015-06-18 13:11:16 -07:00
Tatenda Chipeperekwa
299b030056 sdm: Align system properties with customer documentation
Align the system properties to those in customer documentation
for consistency.

Change-Id: I0012b77cddf0c057f24503fa1611254a25537a27
2015-06-01 11:29:57 -07:00
Tatenda Chipeperekwa
45b11d2cc2 sdm: Report mixer configuration in dumpsys
Report the maximum mixer stages for each display.

Change-Id: Ibdf1863b0ff6782860117e2467ea637c8b419d9b
2015-05-27 11:44:46 -07:00
Dileep Marchya
e2a590859a sdm: Remove libsdmutils dependency on Android.
- Make libsdmutils Android independent.
- Rename debug_android.cpp to debug.cpp.
- Fix compilation errors observed in linux environment.

Change-Id: I19e275939b27f2f47949c5e17559eeadb09bdccf
2015-05-26 16:53:50 -07:00
Dileep Marchya
73d002e57c sdm: Align to new SDM design.
- Align code base to new SDM design.

Change-Id: I38d7d138ae704cf036e2b96c16453aea63bc333f
2015-05-21 11:58:10 -07:00