Commit Graph

3286 Commits

Author SHA1 Message Date
Linux Build Service Account
26b0bbdf66 Merge 99e01152fa on remote branch
Change-Id: I25136915f3744c208b38dddaf505112e997ca2c7
2022-10-16 22:57:35 -07:00
Narendra Muppalla
99e01152fa disp: msm: dsi: add dsi ramdump support without DEBUG_FS
This change adds dsi display ramdump support when DEBUG_FS
is not enabled.

Change-Id: Ic6659a9380acd5eb55a3270d3e3b7016a9cd2bd7
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2022-10-04 09:41:53 -07:00
qctecmdr
f8b4991fce Merge "drm: msm: disable LTM hardware during encoder disable" 2022-10-03 19:20:40 -07:00
V S Ganga VaraPrasad (VARA) Adabala
a1d035f4cc Merge commit '3272f7e726e51dac9f79b06c930e79a4d85b66bd' into display-kernel.lnx.5.15.r1-rel
Change-Id: Ia13bc0331c276c87a523d1f6207fb589f382ea43
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-10-01 23:25:13 +05:30
Gopikrishnaiah Anandan
a8a920e7f3 drm: msm: disable LTM hardware during encoder disable
LTM block should be disabled when encoder is being disabled to avoid
display hang when all driver clients have been closed.
Change disables LTM hardware block when encoder is disabled.

Change-Id: I279296b566ab93c302e6166b6fa4b7197c2cc0ab
Signed-off-by: Gopikrishnaiah Anandan <quic_agopik@quicinc.com>
2022-09-30 10:39:26 -07:00
Yashwanth
3c695fabab disp: msm: sde: detach dsc/vdc encoder blocks properly during modeswitch
In the current code if there is a switch from DSC to non-DSC
mode, all the DSC blocks attached to the sde_encoder are not
cleaned up properly. Due to this, during virt disable these
DSC blocks are disabled and flushed resulting in underruns
on other ctl paths which might be using them. This change
properly cleans up all the dsc/vdc attached to the sde
encoder to avoid such issues.

Change-Id: Ie644701cbda6b4d056bc7ef30300be96096c5214
Signed-off-by: Yashwanth <quic_yvulapu@quicinc.com>
Signed-off-by: Narendra Muppalla <quic_nmuppall@quicinc.com>
2022-09-28 13:07:34 -07:00
Veera Sundaram Sankaran
23f0eec24b disp: msm: sde: move some frame_events from crtc commit to event thread
Move frame data stats collection/notification during frame-done and
retire fence sysfs notification to event thread. This will free up
some interrupt time.

Change-Id: I2648ac4287ce8712e9a059edd408a59753aa6d32
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:37:23 -07:00
Dmitry Baryshkov
df3ab4c237 drm/msm/dpu: merge dpu_hw_intr_get_interrupt_statuses into dpu_hw_intr_dispatch_irqs
There is little sense in reading interrupt statuses and right after that
going after the array of statuses to dispatch them. Merge both loops
into single function doing read and dispatch.

Change-Id: I1259476549bcaf9f9f4e12591a7e182796e150dd
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 0abdba47dc1df708c365421d481734d3f7fecb01
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:37:05 -07:00
Amine Najahi
d3516bd83f disp: msm: update RSC bandwidth during solver mode transition
Currently when disconnecting a secondary monitor, RSC will
transition to solver mode. If the bandwidth remains the same
for primary display, SW will not update BW indication register
causing stale TCS wait values.

This change forces a register update when RSC mode is
changed to solver mode.

Change-Id: I99d2332621bad75a7b6abdb64d6aedd35c30ca63
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:36:57 -07:00
Renchao Liu
43dbaf14b4 disp: msm: sde: fix null pointer dereference issue
This changes fixes null pointer dereference issue.

Change-Id: I9a9628f1fb274aea86a15792dc85b8505f25d28f
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 10:36:48 -07:00
V S Ganga VaraPrasad (VARA) Adabala
65216e3693 Revert "disp: msm: dp: free DP sim ports during DP sim disable"
This reverts commit 2e9d68e174.

Change-Id: I02602dd6e1add1ac1a2ec474625a44880c0f45d7
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
Signed-off-by: V S Ganga VaraPrasad (VARA) Adabala <quic_vadabala@quicinc.com>
2022-09-24 23:03:41 +05:30
qctecmdr
3272f7e726 Merge "disp: msm: sde: avoid connector remove in dual display recovery" 2022-09-20 14:59:39 -07:00
ntarte
543b4d62d4 Revert "disp: msm: sde: fix null pointer dereference issue"
This reverts commit b2f3452dbe.
Change-Id: I3b7dbb75b954a5b6b20c7186ac2a333d21de0fce
Signed-off-by: Nikhil Tarte <quic_ntarte@quicinc.com>
2022-09-20 12:09:57 +05:30
ntarte
769e9693c7 Revert "Revert "disp: msm: dp: free DP sim ports during DP sim disable""
This reverts commit ac1ab5fb46.
Change-Id: I200a765112d7c85f5a069716dfae2c5418cf7c7b
Signed-off-by: Nikhil Tarte <quic_ntarte@quicinc.com>
2022-09-20 12:07:33 +05:30
Raviteja Tamatam
00bc3bc06a disp: msm: sde: avoid connector remove in dual display recovery
Add changes to get drm object reference for connector and
remove out fb in dual display recovery case.

Change-Id: I1fd0c4818575b3f532d51ad41285031e8320c5fe
Signed-off-by: Raviteja Tamatam <quic_travitej@quicinc.com>
2022-09-16 15:37:29 -07:00
qctecmdr
a38699990d Merge "disp: msm: sde: fix crtc count based on layer mixer" 2022-09-16 07:28:28 -07:00
qctecmdr
698e1406b8 Merge "drm: msm: re-enable driver disabled color features" 2022-09-16 07:28:28 -07:00
qctecmdr
1ee58e528f Merge "disp: msm: sde: expose cdm block count through connector" 2022-09-16 07:28:28 -07:00
qctecmdr
2d38ffd96f Merge "disp: msm: dp: clear MST sim context during DP sim disable" 2022-09-15 12:57:48 -07:00
qctecmdr
5d35066354 Merge "drm/msm/dpu: merge dpu_hw_intr_get_interrupt_statuses into dpu_hw_intr_dispatch_irqs" 2022-09-15 12:57:48 -07:00
qctecmdr
86cff7d06f Merge "disp: msm: sde: move some frame_events from crtc commit to event thread" 2022-09-15 12:57:47 -07:00
Veera Sundaram Sankaran
c78000540c disp: msm: sde: fix crtc count based on layer mixer
Fix the max crtc count based on the number of real layer mixers
available. Usermode can use the crtc count to derive the number
of layer mixers. This will be used in usermode to check if a new
DP/IWE/WB session can be supported by the HW, based on the existing
displays at that point. This will avoid atomic_check validation
failures in driver.

Change-Id: I63b033604ac549fc01bccef2a9320e0befab5926
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-09-14 14:11:09 -07:00
Sandeep Gangadharaiah
b6466ca7f5 disp: msm: dp: disable aux switch at the start of the disconnect path
Currently the aux switch is disabled at the end of the disconnect
path which would include the wait time upto 5 secs becauase of usermode
cleanup. However, the PMIC module is expecting the aux switch to be
disabled within 400 msec after the disconnect is notified. If not, this
would trigger an LPD failure. This change moves aux switch disable
further up in the disconnect path, before waiting on completion of
usermode cleanup.

Change-Id: I42e0608f06127729a78de11631d16d0a3ca0d2b4
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-09-13 16:08:09 -07:00
Veera Sundaram Sankaran
83883bd16d disp: msm: sde: move some frame_events from crtc commit to event thread
Move frame data stats collection/notification during frame-done and
retire fence sysfs notification to event thread. This will free up
some interrupt time.

Change-Id: I2648ac4287ce8712e9a059edd408a59753aa6d32
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-09-13 08:59:15 -07:00
Gopikrishnaiah Anandan
62e5c8ddfc drm: msm: re-enable driver disabled color features
When encoder is disabled, demura is disabled since pipes
are disabled internally.
Change marks the features which were active and disabled
by driver as dirty so that it can be applied in the next commit.

Change-Id: I805d17d673a8ff41f9bdb18ba7f2fd185b5ccb5a
Signed-off-by: Gopikrishnaiah Anandan <quic_agopik@quicinc.com>
2022-09-12 16:47:13 -07:00
Veera Sundaram Sankaran
7f364193c1 disp: msm: sde: expose cdm block count through connector
Expose the number of cdm blocks available through the connector
capabilities. Add CDM to the topology_control table, so usermode
can use the property to reserve the CDM block during modeset.
Additionally, fix a error code return during CDM block reservation
failure in sde resource manager.

Change-Id: Ib42ca4e8614076a8e5df77d8abc77a9e73674390
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-09-12 10:26:13 -07:00
Dmitry Baryshkov
edea1840b6 drm/msm/dpu: merge dpu_hw_intr_get_interrupt_statuses into dpu_hw_intr_dispatch_irqs
There is little sense in reading interrupt statuses and right after that
going after the array of statuses to dispatch them. Merge both loops
into single function doing read and dispatch.

Change-Id: I1259476549bcaf9f9f4e12591a7e182796e150dd
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Git-commit: 0abdba47dc1df708c365421d481734d3f7fecb01
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-09-12 10:01:39 -07:00
Sandeep Gangadharaiah
0df777b98d disp: msm: dp: clear MST sim context during DP sim disable
After freeing MST sim context memory the pointer isn't set
to NULL leading to unauthorized memory access. Along with
this fix, this change also defers checking sim device ports
pointer at a more appropriate place in the function call.

Change-Id: I20c09edbd454c9d491060815dc73bae34aab6b08
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-09-12 06:31:25 -07:00
Bruce Levy
ac1ab5fb46 Revert "disp: msm: dp: free DP sim ports during DP sim disable"
This reverts commit 2e9d68e174.

Change-Id: I6524134ce6c0168185f6d670ef7a222d380bdb6d
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-10 13:46:55 -07:00
Renchao Liu
b2f3452dbe disp: msm: sde: fix null pointer dereference issue
This changes fixes null pointer dereference issue.

Change-Id: I9a9628f1fb274aea86a15792ac85b8505f25d28f
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-09 23:50:25 -07:00
Linux Build Service Account
bebdadd24d Merge df56ac358f on remote branch
Change-Id: Ibf686b254e185d1bc7c6bc6e9e9cced18198a707
2022-09-07 09:19:42 -07:00
Bruce Levy
7da7af851d Revert "disp: msm: sde: update hw configs on dnsc_blur disable"
This reverts commit 7b4ea8c54c.

Change-Id: I8d9143086c38f49a819db9c365e3ad9060f8ed68
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 19:00:00 -07:00
Bruce Levy
0426d1258e Revert "disp: msm: dp: remove disconnect call for downstream port status change"
This reverts commit 10ac060759.

Change-Id: I8cd416df1f27c97fc7ecbfbf41cdd669069289e5
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:52 -07:00
Bruce Levy
a1f10f798b Revert "disp: msm: sde: bound event log traversal to allocated memory in coredump"
This reverts commit 174c107f6a.

Change-Id: I4ef0d4364623389159bc2c3ca950add4d500fa93
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:34 -07:00
Bruce Levy
dbeaf04922 Revert "disp: msm: sde: add crtc width restriction when 3d-merge is enabled"
This reverts commit d66b542c43.

Change-Id: I8ce020b7a305ce345f9b716d2f8c8d34ac5ef35f
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:25 -07:00
Bruce Levy
7b02c6d146 Revert "disp: msm: sde: add check to avoid NULL WB output fb"
This reverts commit e46400196a.

Change-Id: Iee38893a5a36cf1439b97aa494b069d1f525a55e
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:13 -07:00
Bruce Levy
e8dfa47d10 Revert "disp: msm: dsi: reorder various resets of DSI PHY"
This reverts commit a26fe8667d.

Change-Id: I2c50354521bb0a6ec4490b3a390841c1239d05a4
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:59:03 -07:00
Bruce Levy
b89826f14f Revert "disp: msm: dsi: avoid DSI PHY shutdown during idle"
This reverts commit c4a9630939.

Change-Id: I440c3aa45e5a75f9ba6bf33f7fd9379eb6ead895
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:58:53 -07:00
Bruce Levy
51410a8413 Revert "disp: msm: sde: use new connector state for topology checks"
This reverts commit 762d8a8f1b.

Change-Id: Ibb5c0e248f79659aa1cae7878c40d3e6c3de9bac
Signed-off-by: Bruce Levy <quic_blevy@quicinc.com>
2022-09-06 18:58:41 -07:00
qctecmdr
fe7effd4d5 Merge "disp: msm: sde: fix null pointer dereference issue" 2022-09-02 15:05:09 -07:00
Amine Najahi
abf0fdd341 disp: msm: update RSC bandwidth during solver mode transition
Currently when disconnecting a secondary monitor, RSC will
transition to solver mode. If the bandwidth remains the same
for primary display, SW will not update BW indication register
causing stale TCS wait values.

This change forces a register update when RSC mode is
changed to solver mode.

Change-Id: I99d2332621bad75a7b6abdb64d6aedd35c30ca63
Signed-off-by: Amine Najahi <quic_anajahi@quicinc.com>
2022-09-01 10:33:48 -04:00
Renchao Liu
3ccfb39483 disp: msm: sde: fix null pointer dereference issue
This changes fixes null pointer dereference issue.

Change-Id: I9a9628f1fb274aea86a15792ac85b8505f25d28f
Signed-off-by: Renchao Liu <quic_rencliu@quicinc.com>
2022-09-01 09:08:04 +08:00
qctecmdr
df56ac358f Merge "disp: msm: dp: resend hpd notification to usermode" 2022-08-31 07:46:50 -07:00
Rajkumar Subbiah
ecaabfefc9 disp: msm: dp: resend hpd notification to usermode
This change adds robustness to hpd notification by resending
it if there was no action in 2 seconds, just in case, the
first notification didn't make it to the usermode.

Change-Id: Iaf00669ec77e8c50618ee5618735a98518ad7f1a
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2022-08-30 13:45:59 -07:00
Rajkumar Subbiah
5043291e1a disp: msm: dp: skip waits when processing usb disconnect in sim mode
With real DP over Type-C sinks, DP driver requests access to USB
combo PHY from USB driver. But in DP SIM mode, there is no real
sink and PD management, so the combo PHY is managed by USB driver
and DP driver uses it without actually claiming it. If the USB
cable is unplugged in this scenario, USB driver notifies the
disconnection through an atomic notifier call. It does not expect
the handler to go into sleep, but the disconnect handler inside
DP driver has multiple wait for events and also sleeps to wait for
HW state updates.

This change passes a skip_wait flag to all the disable functions
to complete disconnect processing by skipping all processor sleeps
and event waits.

Change-Id: Ia98de0e7fa6b0573e644615ee59015914a93f4cf
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
2022-08-30 13:43:49 -07:00
Sandeep Gangadharaiah
2e9d68e174 disp: msm: dp: free DP sim ports during DP sim disable
DP sim ports created during DP sim enable aren't cleared
during disable path. This would retain the last status of
the DP sim port or the connector. This would impact the
next iteration of DP sim test, if done without device
reset. This change will set the port number to 0 during
DP sim disable and clear the memory allocated for these
ports.

Change-Id: I386a62e87fcaf006db8dd18e5751b33bbe70fc9b
Signed-off-by: Sandeep Gangadharaiah <quic_sandgang@quicinc.com>
2022-08-30 10:27:45 -07:00
Linux Build Service Account
1554d485ed Merge "disp: msm: sde: use new connector state for topology checks" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:01 -07:00
Linux Build Service Account
ab47310f7b Merge "disp: msm: dsi: avoid DSI PHY shutdown during idle" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:00 -07:00
Linux Build Service Account
055324bcf8 Merge "disp: msm: dsi: reorder various resets of DSI PHY" into display-kernel.lnx.5.15.r1-rel 2022-08-27 16:45:00 -07:00
Veera Sundaram Sankaran
762d8a8f1b disp: msm: sde: use new connector state for topology checks
Use with the new connector state during validation phase for
checking the 3d-merge topology, since this is the state that
needs to be validated.

Change-Id: Ie212f948affa4dc439ef508363bac6713e560006
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
2022-08-27 14:34:51 -07:00