Commit grafiek

2269 Commits

Auteur SHA1 Bericht Datum
Amine Najahi
07bb950003 disp: msm: sde: handle partial update use case in rounded corner
Currently, driver expects usermode to set RC blob flags based on
the RC PU use case, which causes issue when commits are staggered
and is unnecessarily reprogramming RC mask data on every PU frame.

This change uses existing driver logic to internally determine the
RC PU use case and programs the RC region enable bits accordingly.
It also adds essential logging in RC functions to help debugging.

Change-Id: I19ae59a79dbee20f357b384c12acd7d2a6a93fb4
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2021-05-10 15:39:10 -07:00
Prabhanjan Kandula
7c5fde4c27 disp: msm: sde: update back to back atomic check polling
In case of back to back atomic check only commit with modeset
handling, enable client to retry same commit and increase
timeout value used in polling for clear of rsvp-next.

Change-Id: Ied7acfbf0fe1f68282cfc36cdadf2d6aec6db40a
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-05-10 14:50:58 -07:00
Chandan Uddaraju
14b2cf8638 disp: enable display dlkm to be part of recovery image
In recovery mode, display module needs to be loaded
to enable recovery mode options on display panel. Add
display dlkm to be part of RAMDISK_KERNEL_MODULES and
RAMDISK_RECOVERY_KERNEL_MODULES so that it gets
added to existing recovery modules list.

Change-Id: I7811b81808e934c0f542c46f4f2211c02e267adc
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2021-05-10 13:49:57 -07:00
Shashank Babu Chinta Venkata
30be58de15 disp: msm: dsi: avoid te check for simulator panel
Avoid registering for te interrupts to check te status
for ESD detection during commit failure path.

Change-Id: I447473f7c32a396f72d838c68287bed0eda64b20
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2021-05-10 12:31:14 -07:00
Veera Sundaram Sankaran
179a858272 disp: msm: fix dsi debugbus in-mem logging
Update the dump_mem pointer offset while storing the debugbus
data for the second DSI to avoid overwriting to same memory.
As part of the change, register the DSI ctrl with sde_dbg from
ctrl_init directly, instead of debugfs_init to avoid code replication.

Change-Id: I4089f3038ffa89136eaea956d27270f638a99043
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-05-10 08:53:35 -07:00
qctecmdr
1416c5d0cc Merge "disp: msm: sde: remove unused functions from sde code" 2021-05-10 08:13:08 -07:00
Veera Sundaram Sankaran
9afca0236d disp: msm: avoid logging reg virtual addr by default in sde_dbg_dump
Avoid all info logging during sde_dbg_dump by default as it can be
derived while parsing the ramdumps. Use the reg_dump & dbgbus_dump
debugfs nodes to control the in-mem/in-log mode of these logs.

Change-Id: I709d49a4a503618b9621f32725a8fbd5359a0600
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-05-10 07:53:21 -07:00
Raviteja Tamatam
f47184dbf0 disp: msm: update DCE_DATA_COMPRESS bit in non-dsc case
DCE_DATA_COMPRESS BIT needs to be set to 0 before
the non-dsc frame is triggered in dsc to non-dsc switch
case.

Change-Id: I311dd3f0274d7c6b0baf2328cc50b584e4560915
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2021-05-10 18:20:52 +05:30
qctecmdr
7b6e6f3955 Merge "disp: enable qseecom hdcp for display port" 2021-05-09 21:00:43 -07:00
Veera Sundaram Sankaran
506508e1cd disp: msm: sde: remove unused functions from sde code
Cleanup unused functions from all modules in sde driver.

Change-Id: Ia0e72ab9c281b4200a63ce35bf184e83fe1db5d2
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-05-09 11:41:54 -07:00
qctecmdr
da71fc99c4 Merge "display-drivers: Fix for hermetic builds" 2021-05-08 22:47:03 -07:00
qctecmdr
ad30030d1a Merge "disp: msm: sde: dump DGM, CSC, and VIG gamut to sde debug dump range" 2021-05-08 16:50:13 -07:00
qctecmdr
73af2dd604 Merge "disp: msm: add physical address info when dumping display registers" 2021-05-07 17:41:36 -07:00
Naseer Ahmed
c98a0bf251 display-drivers: Fix for hermetic builds
* Remove shell usage.
* Remove legacy makefile for UAPI headers.

Change-Id: Ia037e19899d6f1c2a6107e174148ce15c8d4a7e1
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2021-05-07 12:49:37 -07:00
Satya Rama Aditya Pinapala
7a0467ef40 disp: msm: dsi: update DSI PHY programming
Update DSI DPHY programming as per HW recommendation.

Change-Id: I766e32fb987f57b8ba1876d4ff465edd25d7688c
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-05-06 23:42:41 -07:00
qctecmdr
c6c2521f6e Merge "disp: msm: sde: correct noise and attenuation layers blend stages" 2021-05-06 22:31:30 -07:00
Satya Rama Aditya Pinapala
6bebbc2e05 disp: msm: dsi: avoid PLL configure and toggle during TUI
The change ensures that during a Trusted UI case, configuring
and toggling the DSI PHY PLL is skipped.

Change-Id: I3246c8e5f01d47ac6fd58098f859ef8436a762bf
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-05-06 10:45:11 -07:00
Yu Wu
55340a43c3 disp: msm: add physical address info when dumping display registers
In dumping display registers, physical address will be appended after
each block name. This is to support register compare between kernel
and UEFI.

Change-Id: Ic20d3e2bd4c95aa7c71c4b646a149f7e83ad731a
Signed-off-by: Yu Wu <zwy@codeaurora.org>
2021-05-06 02:59:16 -07:00
qctecmdr
79253cb9c2 Merge "disp: msm: avoid logging event logs by default in sde_dbg_dump" 2021-05-06 02:45:03 -07:00
qctecmdr
7773b23c21 Merge "disp: msm: sde: add 5k custom mode for wb connector" 2021-05-06 00:21:45 -07:00
Vara Reddy
a3c5b43bf5 disp: enable qseecom hdcp for display port
Change enables hdcp qseecom module for display port.

Change-Id: Ia5b96e4e4a24d13740c3c5e9f462837959ce3f6a
Signed-off-by: Vara Reddy <varar@codeaurora.org>
2021-05-05 23:42:19 -07:00
Veera Sundaram Sankaran
808949e35c disp: msm: avoid logging event logs by default in sde_dbg_dump
Avoid printing the eventlogs in kernel logs during display debug
logging through sde_dbg_dump to avoid excessive logging. Add a
debugfs node to control in-mem/in-log mode of eventlogs to help
in debugging.

Change-Id: If98b129cafa9d29eccd0c44285f1058876f3e1ea
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2021-05-05 14:43:39 -07:00
qctecmdr
d242e029cb Merge "disp: msm: dp: fix reset edid segment and address during read" 2021-05-05 13:36:07 -07:00
Sudarsan Ramesh
4195c3b5e0 disp: msm: dp: fix reset edid segment and address during read
This change fixes a regression related to resetting the edid
segment and address when reading port edid introduced by 
896cf4fd01 (disp: msm: dp: reset
edid segment and address when reading port edid).

Change-Id: Ie39fb9558d9f3206e4ded17b97018a966aab3a7c
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-05-04 15:15:29 -04:00
Sudarsan Ramesh
8339221ace disp: msm: dp: add support to dump dpcd from debugfs node
Current debugfs dpcd node only dumps last written dpcd
string in dpsim mode. This change adds support to dump
dpcd information in real monitor use case.

Change-Id: I8a716f30df72feadf9012c65f5a56fe7194d91d2
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-05-04 14:12:49 -04:00
Anjaneya Prasad Musunuri
163b57e6a8 disp: msm: sde: correct noise and attenuation layers blend stages
Use blend stage to get blend offset instead of z order.

Change-Id: I7924325d19dfbace0fadf4551f696fe222d17115
Signed-off-by: Anjaneya Prasad Musunuri <aprasad@codeaurora.org>
2021-05-04 06:18:38 -07:00
qctecmdr
bf67f9d761 Merge "disp: msm: typecast variables as long long for 64 bit operations" 2021-05-02 18:40:35 -07:00
qctecmdr
6614e279eb Merge "disp: msm: dsi: reduce log level in demura parsing" 2021-05-01 23:40:38 -07:00
qctecmdr
50dccee98e Merge "disp: msm: dsi: add full mode information to debugFS node" 2021-05-01 17:06:42 -07:00
qctecmdr
a6a9b9fb52 Merge "disp: msm: sde: add demura caps to waipio target" 2021-04-30 16:41:47 -07:00
Samantha Tran
0bcdb28eda disp: msm: sde: allow exclusively updating Connector ROI in clone mode
While in clone mode, allow connector ROI property to be set without
setting CRTC ROI property. Currently, both these properties must be
set or else an error is reported.

Change-Id: I516c27a3d31c8d31b967e4c8577f57f1b8b7e327
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-04-30 13:07:26 -07:00
Gopikrishnaiah Anandan
de11d93934 disp: msm: sde: add demura caps to waipio target
Change updates the demura capabilities to waipio target.

Change-Id: I7eba6fd04ab42e25ea95cc0494aacbe71d33913e
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2021-04-29 19:35:55 -07:00
Samantha Tran
0cec224bdb disp: msm: sde: dump DGM, CSC, and VIG gamut to sde debug dump range
This change adds DGM, CSC, and VIG gamut to sde debug dump range. It
also removes unused DSPP registers from debug register dump range.

Change-Id: I5a7adfeb4d93429cf84e7396338f2c025d15e800
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-04-29 19:28:08 -07:00
Satya Rama Aditya Pinapala
ef4dd310a4 disp: msm: dsi: update DSI PHY post divider for slave PLL
The change ensures that for the slave PLL the PHY post divider
always needs to be configured to 0x1.

Change-Id: I481b4fd206d9f8e05af724687beb2e89fd6c2ea6
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-04-29 13:45:04 -07:00
Linux Build Service Account
63f829cf27 Merge "disp: msm: dsi: handle gpios for sim panels" into display-kernel.lnx.5.10 2021-04-29 00:52:01 -07:00
Nilaan Gunabalachandran
f4f950e1af disp: msm: sde: add 5k custom mode for wb connector
Writeback connector gets the available modes from the default
DRM Display Monitor Timing (DMT) modes. However, wb connector
now supports 5k mode. This change adds support for adding this
mode to the connector mode list by creating a custom wb mode
table. This table can be used to add new modes in the future.

Change-Id: I4b164e44b817b904aa7d6b5cff22c006a071c057
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-04-28 23:17:47 -07:00
Santosh Kumar Aenugu
e96c1e444e disp: msm: dsi: reduce log level in demura parsing
Currently, the demura parsing has info logs, this change reduces
the log level to debug for all the parsing logs.

Change-Id: Icd9e73a7788cb01e09068e4d0957bc1e11a329da
Signed-off-by: Santosh Kumar Aenugu <santoshkumar@codeaurora.org>
2021-04-28 14:08:09 -07:00
qctecmdr
5273a02a6d Merge "disp: msm: dp: reset edid segment and address when reading port edid" 2021-04-28 11:10:00 -07:00
Linux Build Service Account
a8b8da6614 Merge "disp: msm: sde: defer reset of topology property in disable path" into display-kernel.lnx.5.10 2021-04-28 10:41:21 -07:00
Linux Build Service Account
07f20525c7 Merge "disp: msm: sde: check for valid pointer before accessing" into display-kernel.lnx.5.10 2021-04-28 10:41:20 -07:00
qctecmdr
17c64a201c Merge "disp: msm: sde: fix ubwc static config for rect_1" 2021-04-27 16:24:18 -07:00
qctecmdr
e7ead5ab59 Merge "disp: msm: sde: remove idle time from Qsync threshold calculation" 2021-04-27 16:24:18 -07:00
Samantha Tran
978edfa200 disp: msm: sde: check for valid pointer before accessing
This change initializes a variable as null to account for cases
when it is not set. This change also ensures proper pointer
checks before attempting to access function pointer.

Change-Id: I2f06a0877293668e80bee9d9b82d412476dc5184
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-04-27 16:07:29 -07:00
Prabhanjan Kandula
f4923f071d disp: msm: sde: defer reset of topology property in disable path
Resetting connector topology property in atomic check phase can cause
issues in concurrency scenario of idle-pc restore for encoder disable
commit. Defer resetting topology property for disable case until encoder
disable actually happens.

Change-Id: Ib53fb5e63df0ab6a332e981b182771b87ef77838
Signed-off-by: Prabhanjan Kandula <pkandula@codeaurora.org>
2021-04-27 16:06:28 -07:00
Sudarsan Ramesh
896cf4fd01 disp: msm: dp: reset edid segment and address when reading port edid
Currently, edid read failures are seen when transitioning from a
resolution with larger edid size to a resolution with smaller
edid size. Edid segment and address values are not getting reset,
and any edid read after switching to a lower resolution
reads the incorrect segment.

This change clears edid segment and resets edid address in the
read_edid function so that the affected values are cleared every
time edid is read.

Change-Id: Iedb231c877b85d645ca74071f9c663393a204ff7
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
2021-04-27 16:53:28 -04:00
Venkata Prahlad Valluru
2ec9452162 disp: msm: typecast variables as long long for 64 bit operations
Define 64 bit variables as unsigned long long to ensure
8 bytes in 32 bit builds.

Change-Id: I723ae0c4ba6a0de07c92d14eeef95bde095c8e3d
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
2021-04-27 13:32:53 -07:00
Samantha Tran
6ec2c7e072 techpack: display: fix div64 error for 32 bit build
use div_u64 instead of /, for 64 bit division.

Change-Id: I791e027beb6817810d63a6a2d0a1a29f88bdb5d5
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-04-27 13:32:27 -07:00
Amine Najahi
73479659e0 disp: msm: dsi: add full mode information to debugFS node
Add full mode information to dump panel info debugFS
node to allow for additional verification.

Change-Id: Ie56f3b44a8b35075d78575def1469b12bed60252
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2021-04-27 15:18:01 -04:00
Dhaval Patel
de0f5328b0 disp: msm: sde: fix ubwc static config for rect_1
Fix ubwc static configuration for rect_1 when
multirects are enabled.

Change-Id: I68da7ebc98f9cd2d42a9c9ddc24f95891d5f38ae
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2021-04-27 09:12:22 -07:00
qctecmdr
b0ea2d882f Merge "disp: msm: sde: remove check to commit RM resourses" 2021-04-27 06:11:35 -07:00