Commit graph

2,208 commits

Author SHA1 Message Date
lnxbuild
bb7df1153e Merge 38f771a775 on remote branch
Change-Id: I6ce24d05c3a850db562648fee0fd65f294e9cd33
2026-07-06 09:58:29 -07:00
Linux Build Service Account
eeeebd7800 Merge 3ed66efd33 on remote branch
Change-Id: I2213fa96272c27ad6a135b3d6561c56ffe580456
2026-04-29 05:57:36 -07:00
Vedant Yevale
38f771a775 disp: msm: dsi: Nullify display modes after kfree
The 'display->modes' pointer must be set to NULL immediately
after calling kfree on it to prevent potential double-free
vulnerabilities or use-after-free issues.

This change ensures robust memory management by clearing the
pointer to previously freed memory, aligning with best practices
for kernel memory deallocation.

Change-Id: I4fd939bc6ee5f3d9c506f0c311a9400f366e7fd2
Signed-off-by: Vedant Yevale <vyevale@qti.qualcomm.com>
(cherry picked from commit 1d3c5a477ea8f6aca1158209e1b87209c21c61f5)
2026-04-22 10:27:28 -07:00
Linux Build Service Account
0910d94404 Merge df582cc15a on remote branch
Change-Id: I7a0833a456eec4b5cc5921c88cb7808a8e799844
2026-02-26 07:58:02 -08:00
Nilesh Laad
3ed66efd33 disp: msm: dp: handle panel_init for eDP case
Currently, panel_init is getting called redundantly from host_ready
and panel_ready for eDP, causing delay in display to come up.
Remove panel_init call from host_ready to reduce the delay.

Change-Id: I73d59e37df7b9d79f132b684bfb862a90935afd3
Signed-off-by: Nilesh Laad <nlaad@qti.qualcomm.com>
2026-02-24 15:01:26 +05:30
Gopi Botlagunta
a74bd43d86 disp: msm: dsi: Fix potential data race in ctrl isr
Use atomic operations for shared variables to ensure
safe concurrent access from both ISR and task context.

Change-Id: I02d4bde88692d0be7027b158648a3ab8a5704b2d
Signed-off-by: Gopi Botlagunta <botlagun@qti.qualcomm.com>
2026-01-08 14:45:06 +05:30
Gopi Botlagunta
df582cc15a disp: msm: dsi: Fix potential data race in ctrl isr
Use atomic operations for shared variables to ensure
safe concurrent access from both ISR and task context.

Change-Id: I02d4bde88692d0be7027b158648a3ab8a5704b2d
Signed-off-by: Gopi Botlagunta <botlagun@qti.qualcomm.com>
2026-01-07 16:46:24 +05:30
Arpit Saini
13fa1e2401 disp: msm: dsi: Fix potential data race in ctrl isr
Use atomic operations for shared variables to ensure
safe concurrent access from both ISR and task context.

Change-Id: I72a235007f0b36553f436a900a3e9a91afcd75a4
Signed-off-by: Arpit Saini <arpisain@qti.qualcomm.com>
2026-01-05 09:45:49 -08:00
Linux Build Service Account
d52214b6e3 Merge 920eacd962 on remote branch
Change-Id: Icb8d5df92cd9dcc53ac8237ce201af17d00f3803
2026-01-05 04:51:05 -08:00
QCTECMDR Service
920eacd962 Merge "msm: smmu: Unregister SMMU fault handler before cleanup" 2025-11-26 02:56:07 -08:00
Harini Manikumar
df717747fd msm: smmu: Unregister SMMU fault handler before cleanup
IOMMU fault handler can be invoked post SMMU destroy
which can lead to use-after-free issue.
Unregister the SMMU fault handler before freeing
SMMU context and unregistering the platform device.

Change-Id: I1cddd4a381f16d650258850a3d012d380fbe5ef8
Signed-off-by: Harini Manikumar <hmanikum@qti.qualcomm.com>
Signed-off-by: Karthik Veeranki <quic_kveerank@quicinc.com>
2025-11-18 10:53:42 +08:00
yadwan
6bbef66ce3 disp: msm: sde: Add change to fix slab out of bounds
Non null terminated string from user space can cause out
of bound access issue. Hence added a NULL character
explicitly in name when received from user space.

Change-Id: I6d498f16a59ec2832ddc0951952101859666eacf
Signed-off-by: yadwan <quic_yadwan@quicinc.com>
(cherry picked from commit 7eb70ce3648b8eb8e5340b0bf3c5bb3a7605d811)
2025-11-17 03:22:25 -08:00
Vishnu Saini
e5fdc7822b disp: msm: sde: fix splash resource cleanup for edp
Currently, splash_display->encoder is invalid for edp so
_sde_kms_release_splash_resource is not releasing the resources.
ea245e7982 ("disp: msm: sde: Remove pm vote at time of handoff")
partially addressing the issue, but _sde_kms_free_splash_display_data
is not called, resulting in smmu mapping not freed.
Since iommu framework is not aware of this direct mapping through
smmu so any allocations to this iova will fail due to this existing
mapping, resulting in mapping and commit failures.

Populate splash_display for edp so that cleanup of splash region is
proper and revert ea245e7982, which is no longer needed.

Change-Id: I5bd2b0d5996f0f91e4b0cf1e4f78e03feee4afe4
Signed-off-by: Vishnu Saini <vishsain@qti.qualcomm.com>
2025-10-25 10:22:48 +05:30
Linux Build Service Account
4e565131e6 Merge b42ca34e33 on remote branch
Change-Id: I0f30a40640df3861f3043a2b78bc32318f703d3b
2025-06-11 08:03:40 -07:00
QCTECMDR Service
b42ca34e33 Merge "disp: msm: sde: get_modes from connector if not present" 2025-05-18 13:52:55 -07:00
Gopi Botlagunta
b749468a5a disp: msm: sde: get_modes from connector if not present
In case of external bridges, modes are not available for
setting splash_mode. Add support to get modes
supported by the external bridges.

Change-Id: Ib17e17bcf1ec91b582da2e0cf5d648b9c366b292
Signed-off-by: Gopi Botlagunta <quic_botlagun@quicinc.com>
2025-05-09 15:07:53 +05:30
Prahlad Valluru
95cae124f2 disp: msm: dp: handle panel_init when host is ready
Currently, panel_init is getting executed even when
host is already ready. Handle panel_init such that
it will be called only as part of host ready. Handle
continuous splash case as well.

Change-Id: Id022fed099e1e1a87282c58bead839e68f502098
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Signed-off-by: Prahlad Valluru <quic_vvalluru@quicinc.com>
2025-05-08 12:08:42 +05:30
Linux Build Service Account
142c609fb0 Merge b19d4a3a8e on remote branch
Change-Id: Ic54bc4ab79d7117763c94a25b06c296485e825f6
2025-04-10 05:34:36 -07:00
Jayasri Sampath Kumaran
b19d4a3a8e disp: msm: sde: fix kms NULL pointer access in encoder IRQ control
A possible kms NULL pointer access is found during CPU vote for IRQ
when kms isn't NULL checked before accessing structure members. So,
perform kms NULL check before accessing members.

Change-Id: I137759ea0723be8580e9166c983d1ba38f4eb281
Signed-off-by: Jayasri Sampath Kumaran <quic_jsampath@quicinc.com>
(cherry picked from commit 393118f87846d64a10c1d5a32161bcbe012c0667)
(cherry picked from commit 17513cad23c67a11431fdfd77a59d5e207352dbc)
2025-03-26 20:45:59 -07:00
Linux Build Service Account
446739dd86 Merge dbebbf294b on remote branch
Change-Id: I98c299dd6d60d3edf25a31147e21dec756ac21a6
2025-01-12 10:22:03 -08:00
Venkata Gopi Nagaraju Botlagunta
dbebbf294b disp: msm: dsi: add support for hibernation
Set parent to xo clock for link clocks,
before we enter suspend, so that framework and hw state are
in correct state, when we exit from hibernation.

Change-Id: Ib0e2ca6ac57aec566171b2f72e2b6822e2d9fde2
Signed-off-by: Venkata Gopi Nagaraju Botlagunta <quic_botlagun@quicinc.com>
2024-12-09 15:32:35 +05:30
Linux Build Service Account
877f9bf439 Merge 4b1e1116a0 on remote branch
Change-Id: I4db3d7111edce5025bbc87a2808c33735da0610d
2024-11-12 05:43:08 -08:00
QCTECMDR Service
4b1e1116a0 Merge "disp: msm: dsi: fix error path for dsi_display init" 2024-11-06 03:55:56 -08:00
Vikas Reddy Pachika
2ca8015481 disp: config: fix copyright marking for lahaina config
Add qcom license for lahainadispconf.h.

Change-Id: I7048ca710377655c80b14213f1897256074fa2b8
Signed-off-by: Vikas Reddy Pachika <quic_vikasred@quicinc.com>
(cherry picked from commit a74ffcf33b)
2024-10-20 23:35:03 -07:00
Linux Build Service Account
d32a2506e3 Merge b5e68eb86f on remote branch
Change-Id: Id06cb8a5a78c90479621caa06714f1e788eccd2d
2024-10-14 00:40:35 -07:00
Vikas Reddy Pachika
a74ffcf33b disp: config: fix copyright marking for lahaina config
Add qcom license for lahainadispconf.h.

Change-Id: I7048ca710377655c80b14213f1897256074fa2b8
Signed-off-by: Vikas Reddy Pachika <quic_vikasred@quicinc.com>
2024-10-10 23:13:30 -07:00
Vikas Reddy Pachika
94e81e5d2d disp: msm: dsi: fix error path for dsi_display init
Handle dsi_display init errors with proper de-init sequence.

Change-Id: I7d029980a06c8069264c3b1b2b7a6cdb781e1198
Signed-off-by: Deven Solanki <quic_dsolanki@quicinc.com>
Signed-off-by: Vikas Reddy Pachika <quic_vikasred@quicinc.com>
2024-10-09 18:50:14 +05:30
QCTECMDR Service
b5e68eb86f Merge "disp: msm: dp: parse display_type before connector initialization" 2024-10-07 12:41:45 -07:00
QCTECMDR Service
8ce5e1a3ea Merge "disp: config :disable CONFIG_DSI_PARSER for kodiak" 2024-10-07 12:41:45 -07:00
Jinfeng Gu
c8f3df8ea4 disp: msm: dsi: add null pointer check in dsi_display_dev_remove
This change add display null pointer check in dsi_display_dev_remove.

Change-Id: Ib31756c3b22256d19cbcb508f60de4550e3834e1
Signed-off-by: Jinfeng Gu <quic_gjinfeng@quicinc.com>
2024-09-29 23:45:22 -07:00
Zeyuan Lu
52c920054b disp: config :disable CONFIG_DSI_PARSER for kodiak
Disable dsi firmware support on kodiak

Change-Id: I223c5ac9c1c7f136137a115f844e5e75c01e433c
Signed-off-by: Zeyuan Lu <quic_zeyulu@quicinc.com>
2024-09-25 23:12:56 -07:00
Nilesh Laad
8d79506120 disp: msm: dp: parse display_type before connector initialization
dp_parser is only available post connector init, so if parser is
not available get display_type from devicetree itself and remove
redundant code.

Change-Id: I2131a257cb4795f52be1706882dce533baf94600
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
2024-07-02 18:46:45 +05:30
Linux Build Service Account
c21afee061 Merge addbc02b3a on remote branch
Change-Id: I5976694f7e31873af94ea677af7f6044a8f067ee
2024-05-13 08:59:03 -07:00
Navjyot SINGH
addbc02b3a disp: msm: dp: limit max width supported
Add support to limit the maximum resolution that can
be supported on display port.

Change-Id: I2729743f57997302d3f4e3bd01bfad2fd4b23c6d
Signed-off-by: Navjyot SINGH <quic_navjsing@quicinc.com>
2024-04-12 10:40:06 +05:30
Linux Build Service Account
e53dc7165b Merge 49957290aa on remote branch
Change-Id: I99d15e7fae6def8a6e40492494d2150b997cca13
2024-02-12 21:12:10 -08:00
qctecmdr
49957290aa Merge "disp: msm: sde: address array index out-of-bound issue" 2024-02-05 21:51:31 -08:00
boyuyan
0f45eca383 disp: msm: dp: add support of hotplug for eDP interface.
Add for eDP display support pluggable and support eDP as secondary.

Change-Id: I25d153282f08b8db21fdad15d3c971f609cdf49a
Signed-off-by: Boyuan Yan <quic_boyuyan@quicinc.com>
2024-01-23 04:26:06 -08:00
Nilesh Laad
b83f11f224 disp: msm: sde: address array index out-of-bound issue
Add a check on number of built in displays to avoid
array index out of bounds issue.

Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I1af626d2f05bf822e02c8e228c28823370d32b4f
2024-01-04 12:34:42 +05:30
boyuyan
bd47e3e63b disp: msm: dp: disable pluggable eDP display backlight config
Disable pluggable eDP display backlight config.

Change-Id: I7a5cde4531422a1a5db0fd59e351de570d859c4c
Signed-off-by: Boyuan Yan <quic_boyuyan@quicinc.com>
2023-12-05 16:26:00 +08:00
Linux Build Service Account
a3c91e25ee Merge f76dda607b on remote branch
Change-Id: I61d253e47c6b90d4d1cbe0c8b904f926fd00838d
2023-11-14 03:51:08 -08:00
Nilesh Laad
d91a4e7915 disp: msm: dp: restore brightness on resume for eDP
For eDP connectors, store brightness setting during
bridge disable and restore during bridge enable.

Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I04834b86110d9bec40d458f609adb8aeae49b9dd
(cherry picked from commit f76dda607b)
2023-10-10 16:10:11 +05:30
Nilesh Laad
f76dda607b disp: msm: dp: restore brightness on resume for eDP
For eDP connectors, store brightness setting during
bridge disable and restore during bridge enable.

Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
Change-Id: I04834b86110d9bec40d458f609adb8aeae49b9dd
2023-09-19 16:38:18 +05:30
Linux Build Service Account
a023531172 Merge 3dc145e9e4 on remote branch
Change-Id: I09b9aa499d17395eaded8aa9892c8b7d866e8ea1
2023-09-18 05:33:35 -07:00
qctecmdr
3dc145e9e4 Merge "disp: msm: dsi: add a new DT property to support ext bridge hpd" 2023-08-17 04:30:53 -07:00
Shubham Talekar
a73c6bf906 disp: msm: dsi: add a new DT property to support ext bridge hpd
Add a keystr into the connector property if wants this
external bridge to support hpd. Userspace can get this
info from the connector, and do hpd support.

Change-Id: I19e8c2684ef054fbd5c5bf5951357edb1b4ea40c
Signed-off-by: Shubham Talekar <quic_stalekar@quicinc.com>
2023-08-09 18:33:29 +05:30
Boyuan Yan
60ae7e9b8d disp: msm: dsi: correct external dsi bridge interface number
Get the interface number from dsi panel timing node, if no
timing node was set, set the number as ext_bridge_num.

Change-Id: I1f36df6b5780f6eb1ef42e5b260cbdb16ec61c15
Signed-off-by: Boyuan Yan <boyuyan@qti.qualcomm.com>
2023-08-04 08:53:23 +05:30
Boyuan Yan
f4c3141df7 disp: msm: dsi: avoid NULL pointer
Add NULL check for priv_info.

Change-Id: I913987e031b413217e0575a71c1787d9d7aeaf57
Signed-off-by: Boyuan Yan <boyuyan@qti.qualcomm.com>
2023-07-28 07:38:27 +05:30
Nilesh Laad
cfcbecd497 disp: msm: dp: fix compilation errors
Changes to fix compilation errors.

Change-Id: I4f54447bdf2631f5bd17ef4bef13fecc6da0e106
Signed-off-by: Nilesh Laad <quic_nlaad@quicinc.com>
2023-07-18 13:39:12 +05:30
Venkata Prahlad Valluru
4b0b77bceb Revert "disp: msm: dp: skip hpd config"
This reverts commit 88f941caec.

Change-Id: I34443242d0acad6b2c3f92c76b7361f9086b1327
Signed-off-by: Venkata Prahlad Valluru <quic_vvalluru@quicinc.com>
2023-07-17 16:48:27 +05:30
Venkata Prahlad Valluru
73d4a4007a Merge commit '452e643352' into display-kernel.lnx.5.4.r8-rel
Change-Id: I5e9066dcb3f69b8123621056c60b322af4897a62
Signed-off-by: Venkata Prahlad Valluru <quic_vvalluru@quicinc.com>
2023-07-17 16:32:30 +05:30