Commit Graph

2382 Commits

Author SHA1 Message Date
qctecmdr
5c98599ecd Merge "disp: msm: avoid logging reg virtual addr by default in sde_dbg_dump" 2021-05-15 21:42:12 -07:00
qctecmdr
a7f06bac82 Merge "disp: msm: fix dsi debugbus in-mem logging" 2021-05-15 19:15:17 -07:00
Abhijit Kulkarni
944a0629f5 disp: msm: sde: fix cont splash pipe identification
This change fixes the continuos splash logic that identifies the
pipes staged by bootloader. The same code flow is used in trusted ui
handover as well. Existing logic was counting the pipes twice if the pipe
is staged on both the layer mixers. This change simplifies the pipes
already staged before handover by using the pipe index to convey if
it is staged or not.

Change-Id: Idb255f2077161dc3553114ac5d04e0ef743bb5ea
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2021-05-14 12:23:57 -07:00
Samantha Tran
ba95cccfec disp: msm: sde: avoid idle pc during ESD recovery
This change prevents entering into idle pc during ESD
recovery. In the event of a panel dead scenario, the panel
TE is no longer valid until display is enabled again. Until
the time display is enabled, idle pc will be blocked so
that display does not fall into then exit idle pc and
attempt to set the vsync source to this invalid panel TE.

Change-Id: Ibdc71b803d50923832f08b238a96aa28854aaea0
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2021-05-13 13:43:42 -07:00
Satya Rama Aditya Pinapala
d7bcdcd91a disp: msm: dsi: add more info to display bind logs
Change adds more panel and display information during the DSI
display bind.

Change-Id: I3571244501149a95ea4f6ab0e496112199f7bbde
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-05-13 00:12:27 -07:00
Ping Li
9dc60208de disp: msm: sde: handle LTM switch in and out of dual pipe merge mode
When LTM is switching on/off, merge_mode bit value gets toggled between
0x1 (dual pipe merge configuration) and 0x0 (single pipe configuration).
It is illegal to reconfigure LTM to/from dual-pipe merge mode before
both LTM instances have completed their current workloads. This change
adds support to disable merge_mode one frame after histogram is disabled
to make sure both hardware instances are completely idle and avoid
corrupted histogram data collection.

Change-Id: I9a6b5cbfb69e8af7936749e57fe7c8f7c2703b95
Signed-off-by: Ping Li <pingli@codeaurora.org>
2021-05-12 22:28:53 -07:00
Lei Chen
918fc54fc7 disp: msm: sde: avoid reset topology in disable path for POMS
Panel operating mode switch will not change topology and it will
not trigger atomic_check for encoder to reconfigure topology.
So add this change to avoid reset topology when mode set is triggered
by POMS or non-seamless display mode switch.

Change-Id: If1afb30a97bf2695dd8849f025c20b5561fa4b82
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2021-05-12 22:21:18 -07:00
Amine Najahi
33ecaa8d59 disp: msm: sde: clear rounded corner property during last close
Currently RC CRTC blob property is not getting cleared when
driver file descriptor is closed.

This change adds RC propety id to list of properties to
clear in last close code path

Change-Id: Iae1355a6bb51d58f119a209fbfcd8e59e470d46e
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2021-05-12 22:46:39 -04:00
Nilaan Gunabalachandran
c5288713ec disp: msm: sde: correct sspp top/bottom overfetch programming
Currently the top/bottom pixel extension overfetch value for
component 3 is misprogrammed with left/right value.
This change corrects the programming sequence.

Change-Id: I2e7accb48840a976645c92cb57b48c6663ae20a0
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2021-05-12 17:30:18 -04:00
Gurkaran Singh
d750ee5742 mmm_color_fmt: Added P010 512-bit alignment format
Change-Id: I5ae93dff7d04e5ca2915061751f85691c53abe67
Signed-off-by: Gurkaran Singh <gurksing@codeaurora.org>
2021-05-12 11:03:22 -07:00
qctecmdr
e12be40f65 Merge "disp: msm: sde: update back to back atomic check polling" 2021-05-12 01:16:59 -07:00
qctecmdr
086efaa2a9 Merge "disp: msm: dsi: update DSI PHY programming" 2021-05-11 16:11:48 -07:00
Satya Rama Aditya Pinapala
dee1d7802f disp: msm: dsi: skip panel read for simulation panels
For simulation panels read commands need to be avoided. The change
also adds and substitues sim panel check with a new is_sim_panel API.

Change-Id: Idafdad8a852cad87d97bbc64e9c7cb82460e25b7
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2021-05-11 15:41:49 -07:00
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