Graphe des révisions

3633 Révisions

Auteur SHA1 Message Date
qctecmdr
7fa3cad70f Merge "disp: msm: dsi: Use pr_err_ratelimited to log PHY contention error" 2023-06-30 17:16:35 -07:00
qctecmdr
91367258b6 Merge "disp: msm: sde: update demura error handling" 2023-06-27 17:12:34 -07:00
qctecmdr
1e2c50a227 Merge "disp: msm: dp: Add null check for payload allocation" 2023-06-27 13:40:29 -07:00
Rohith Iyer
446c1b69b5 disp: msm: dsi: Use pr_err_ratelimited to log PHY contention error
Replace DSI_CTRL_ERROR with pr_err_ratelimited to reduce PHY contention
logging errors, as excessive logging in kernel can lead to system crash.

Change-Id: Ibd81a0e852a73186144ebefc8a1c09020a6e74f0
Signed-off-by: Rohith Iyer <quic_rohiiyer@quicinc.com>
2023-06-26 12:08:06 -07:00
qctecmdr
63f9170aa4 Merge "disp: msm: dp: Enable DP AUX IPC logs for GKI builds" 2023-06-25 00:24:21 -07:00
Nisarg Bhavsar
64682fee0e disp: msm: dp: Add null check for payload allocation
Adds null check for payload allocation to prevent calling
mst helper functions with a null payload.

Change-Id: I63951eec7714bbf00ff7c968ea4e6b1ced9a29e3
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2023-06-23 09:08:50 -07:00
Sanskar Omar
5ad7be85e5 disp: msm: sde: update demura error handling
update error handling to not error out when demura is disabled.

Change-Id: I06a7ccc3008e8d96ac8883551e5f6a7894b6653d
Signed-off-by: Sanskar Omar <quic_sansomar@quicinc.com>
2023-06-23 02:32:21 -07:00
qctecmdr
b49c08791c Merge " disp: msm: sde: reset bl_scale_sv in power off case" 2023-06-21 12:09:53 -07:00
qctecmdr
4f8e696b77 Merge "disp: msm: sde: set layer mixer for each wb display mode" 2023-06-21 07:39:29 -07:00
Nisarg Bhavsar
c536df6893 disp: msm: dp: Enable DP AUX IPC logs for GKI builds
Enable DP AUX IPC logs for GKI builds to allow more complete
log collection.

Change-Id: I2f61c167d5856f1d310b4c7145cb18dbb5d7d6dd
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
2023-06-20 12:31:07 -07:00
qctecmdr
07d177f44e Merge "disp: msm: sde: add detect_ctrl to tear_check block" 2023-06-16 21:49:34 -07:00
qctecmdr
3b9e03401a Merge "disp: msm: sde: avoid EPT timeout in non-qsync panels to improve performance" 2023-06-16 21:49:34 -07:00
qctecmdr
097864eb63 Merge "disp: msm: sde: add parameters checks to improve code quality" 2023-06-16 17:52:51 -07:00
qctecmdr
6ab3d0f548 Merge "disp: msm: dsi: fix no suspend on RFI clk change" 2023-06-16 17:52:50 -07:00
Shamika Joshi
fbb95ab7c2 disp: msm: sde: add detect_ctrl to tear_check block
This change adds detect_ctrl to tear_check block and
programs it to its default configuration.

Change-Id: I7665b373a6cd846bf5979c2dc02bc0bdfdf309ab
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2023-06-16 14:46:25 -07:00
qctecmdr
9bd9b0da30 Merge "disp: msm: Add LOCAL_MODULE_DDK_BUILD argument" 2023-06-16 13:40:11 -07:00
qctecmdr
010887dc15 Merge "disp: Update the deps and configs" 2023-06-16 13:40:11 -07:00
Shamika Joshi
96154069b0 disp: msm: sde: avoid EPT timeout in non-qsync panels to improve performance
This change avoids wait for EPT to timeout in non-qsync panels
when the EPT time is within last & next expected vsync time
calculated based on current fps for panel.

Change-Id: I9e385c14a20994b29b5bc4afb024f147e6cc035c
Signed-off-by: Shamika Joshi <quic_shamjosh@quicinc.com>
2023-06-16 11:55:59 -07:00
Kirill Shpin
52089c78fa disp: msm: dsi: fix no suspend on RFI clk change
During drm_bridge_mode_fixup, we deny a simultaneous crtc state
change and seamless variable refresh. Incorrect translation logic
between drm_mode and dsi_mode made it such that whenever the dsi
bit clock is not the default value, any drm commit would be marked
with the variable refresh flag, denying all suspends. This change
fixes the suspending issue.

Change-Id: If3c1f603af3e2917f82be6487bee1084a6e1b605
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
2023-06-15 23:36:46 +00:00
Yu Wu
59b4bc2772 disp: msm: sde: add parameters checks to improve code quality
Add more parameter check including NULL pointer check, buffer
access bonds check etc.

Change-Id: I8d2a4967bed8750c206bc6d265205b257fc999c3
Signed-off-by: Yu Wu <quic_zwy@quicinc.com>
2023-06-15 11:02:23 +08:00
Prabhanjan Kandula
7d8dbc2fb3 disp: msm: fix debug bus test point selection
Extension bits of test point selection is needed when test
point value exceeds three bits, not based on blcok id value.
This change fixes debug bus test point selection when
value is more than 3 bits and extension bits are required.

Change-Id: I37688b2c6e476b1271daad0bbddb5896edc530d1
Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com>
2023-06-14 14:23:15 -07:00
qctecmdr
34cfc1c19a Merge "disp: msm: dsi: follow the HPG guidelines for DATABUS_WIDEN" 2023-06-14 07:12:20 -07:00
qctecmdr
bb09525fc6 Merge "disp: msm: dsi: add dsiclk_sel support for DPHY and CPHY as per HPG" 2023-06-14 07:12:19 -07:00
qctecmdr
099cb930fb Merge "disp: msm: dsi: avoid taking ctrl lock while waiting for CMD DMA done" 2023-06-13 06:52:58 -07:00
Lei Chen
99aee9b733 disp: msm: sde: set layer mixer for each wb display mode
Set the number of layer mixer for each wb mode based on the
current mode hdisplay width. If the hdisplay width of current
mode is greater than the maximum layer mixer width of HW supported,
set dual layer mixers for this mode and check if the split
hdisplay width is an even number.

Change-Id: I0190830ed559f008f9e2c0752858ddc5e7cb83cd
Signed-off-by: Lei Chen <quic_chenlei@quicinc.com>
2023-06-13 10:57:48 +08:00
Yuchao Ma
dd47950072 disp: msm: sde: reset bl_scale_sv in power off case
In userspace, the backlight scale of LTM will be set to the maximum value
in the suspend case. However, sometimes this value is sent to the driver
after resume. This will cause a backlight flicker issue.
For fix this issue, this change resets the backlight scale in the suspend case.

Change-Id: I0eb586eeefbf3444d6f44281d58789460300dffc
Signed-off-by: Yuchao Ma <quic_yuchaom@quicinc.com>
2023-06-12 01:01:45 -07:00
Varsha Suresh
3ad1e9f9c4 disp: Update the deps and configs
Module deps and config symbols update with respective makefile system.

Change-Id: I4e2ae1be6ff6a4ec5a17047f22f79b91a949cc25
Signed-off-by: Varsha Suresh <quic_varssure@quicinc.com>
2023-06-11 01:08:08 -07:00
qctecmdr
9b23a8f4aa Merge "disp: msm: dp: ensure failsafe mode in connector mode list" 2023-06-08 13:43:43 -07:00
qctecmdr
060d3bb8a5 Merge "disp: msm: sde: inversely allocate DSC for non built-in displays" 2023-06-07 20:28:48 -07:00
Rajkumar Subbiah
ff99320123 disp: msm: dp: ensure failsafe mode in connector mode list
The driver currently inserts a failsafe mode when EDID read fails
for SST. But for cases where the edid read succeeds but all the
modes are getting filtered out because of resource availability,
the driver does not add the failsafe mode. But the usermode
expects the failsafe mode to be always present in the mode list
as per DP specification. Also, the driver currently does not
add the failsafe mode, if the edid read fails on an MST monitor.

This change covers all these missing cases and makes sure the
failsafe mode is always in the connector's mode list if it is
in connected state.

Change-Id: I92eeaa00ad7b26a18b3689aa1c2ada4244aba3bc
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2023-06-07 10:58:08 -04:00
Lei Chen
7898a8b208 disp: msm: sde: inversely allocate DSC for non built-in displays
Allocate DSC inversely for non built-in displays to avoid Quad DSC
can't be contiguous reserved as the below scenario.

Use case: Primary display with 2 DSC, and DP display can support 8K@60
with 4 DSC and 4k@60 with 2 DSC.
	--> when both display are in powered off, all DSC blocks are free.
	--> enable DP display with 4k@60.
		DSC 0/1 is allocated by DP display
	--> enable primary display.
		DSC 2/3 is allocated by primary display.
	--> switch DP display to 8K@60
		DSC 0/1 + DSC 4/5 are allocated by DP display.
But the DSC must be contiguous allocated for Quad pipe.

Change-Id: I465c115bb7ec775483dc6a984306a9aa51750b14
Signed-off-by: Lei Chen <quic_chenlei@quicinc.com>
2023-06-06 22:40:52 -07:00
Mitika Dodiya
b573201f7c disp: msm: sde: demura backlight adaptation change
Demura backlight value will be updated based on the backlight event
in the driver. Make HFC gains programmable based on backlight value.

Signed-off-by: Mitika Dodiya <quic_mdodiya@quicinc.com>
Change-Id: I74e9aa2c274eedb473095c5eafef194d6a6f1d94
2023-06-05 04:33:58 -07:00
Srihitha Tangudu
0331bcf0fe disp: msm: dsi: avoid taking ctrl lock while waiting for CMD DMA done
Currently, ctrl lock is taken while waiting for CMD DMA done even in
case of ASYNC command transfer, which doesn't allow any other operation
on the controller until the command transfer is done. Avoid this by not
taking ctrl lock while waiting for CMD DMA done.

Change-Id: I91f2638fa02f48ec4c7a41c750daa46b52c5e2f2
Signed-off-by: Srihitha Tangudu <quic_tangudu@quicinc.com>
2023-06-04 22:35:01 -07:00
Rajkumar Subbiah
af85165fe6 disp: msm: dp: fix max slice width check for dsc
When calculating the number of DSC slices based on the source
and sink capabilities, the driver is using an incorrect check
for max slice width which results in increasing the num of
slices if the width is an exact multiple of 2560.

Change-Id: Ia854c4a2d436144165fb52beb04b5e0d1678d0f6
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2023-06-02 14:24:02 -04:00
qctecmdr
68e4c1a426 Merge "disp: msm: sde: trigger a suspend commit if display in video mode" 2023-06-02 01:09:42 -07:00
qctecmdr
c90858d892 Merge "disp: msm: sde: use atomic operator for evt log entries" 2023-06-01 16:32:18 -07:00
Ryan McCann
ecb0dbed04 disp: msm: sde: use atomic operator for evt log entries
To optimize evt log entries, spinlock is been removed and
used atomic operator for curr variable, due to which there
is mismatch of count values between curr and last variable during
xlog dump in kernel. So change the last variable to atomic to
avoid race condition between entries of evt logs.

Change-Id: Idf3e2b982261d77fec97985af1e8bf740a6f6197
Signed-off-by: Ryan McCann <quic_rmccann@quicinc.com>
2023-06-01 10:35:54 -07:00
qctecmdr
8c5257010e Merge "disp: msm: sde: Register LUTDMA dummy region after parameter validation" 2023-05-31 21:00:19 -07:00
qctecmdr
4d32a7f6dd Merge "disp: msm: update debugbus dump header formatting" 2023-05-31 21:00:19 -07:00
qctecmdr
a968503898 Merge "disp: msm: dsi: enable vid RFI on secondary panel" 2023-05-31 21:00:19 -07:00
qctecmdr
afd228ebb3 Merge "disp: msm: sde: reduce the latency in MDSS IRQ processing" 2023-05-31 21:00:19 -07:00
Prabhanjan Kandula
ddc22a87ee disp: msm: update debugbus dump header formatting
Update the string formatting of debugbus dump header
to support existing scripts  for debugbus parsing.

Change-Id: Ie0b4fdcb73e131ea5893a3dbc6aad969735d137d
Signed-off-by: Prabhanjan Kandula <quic_pkandula@quicinc.com>
2023-05-31 16:13:02 -07:00
qctecmdr
0b57a269e2 Merge "disp: msm: dp: use new api for drm_dp_remove_payload" 2023-05-31 15:48:32 -07:00
qctecmdr
45435d6598 Merge "disp: msm: dp: skip mst display enable if payload is empty" 2023-05-31 15:48:31 -07:00
qctecmdr
2adf210808 Merge "disp: msm: dp: clear connected state if switch config fails" 2023-05-31 15:48:31 -07:00
jianzhou
4aa8db1b2b disp: msm: dp: use new api for drm_dp_remove_payload
The API for drm_dp_remove_payload in DRM framework was changed to include
both the old and new payload states. This change updates the MST driver
to use the new API.

Link: https://patchwork.freedesktop.org/patch/msgid/20230206114856.2665066-2-imre.deak@intel.com
Change-Id: Iaf1c6842674b792c8e939404855ff9e9fce127c4
Signed-off-by: jianzhou <quic_jianzhou@quicinc.com>
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2023-05-31 14:18:50 -04:00
Kirill Shpin
d1ba05f408 disp: msm: dsi: enable vid RFI on secondary panel
Enables parsing of secondary panel's PLL trim codes.

Change-Id: Iaf7f1040a505371582de715e95bd85b2578b306e
Signed-off-by: Kirill Shpin <quic_kshpin@quicinc.com>
2023-05-30 11:20:46 -07:00
Rajkumar Subbiah
2d4c6cf994 disp: msm: dp: clear connected state if switch config fails
During HPD High, the driver sets the CONNECTED state and then performs
a sequence of initialization operations. If any of them fails, it should
properly unwind the executed operations to restore the driver to its
initial state. This change adds error handling paths in the hpd high
handler to do just that.

Change-Id: I66a77ff73b7c11d0a59d80b8df3c4ea49a4ed3a6
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2023-05-29 14:41:06 -04:00
qctecmdr
a0778dcd49 Merge "disp: msm: sde: add support for TE level trigger" 2023-05-26 13:59:40 -07:00
qctecmdr
fc7ef746c3 Merge "disp: msm: dp: fix pbn value for MST RG calculation" 2023-05-26 13:59:39 -07:00