Commit Graph

1071 Commits

Author SHA1 Message Date
qctecmdr
f2b1cba0d5 Merge "disp: msm: dsi: add api to control dsi active status" 2020-05-25 13:47:05 -07:00
qctecmdr
a8f62850f1 Merge "disp: msm: sde: avoid disabling dsc encoder in PP block" 2020-05-25 10:52:49 -07:00
qctecmdr
fc44cf529b Merge "disp: msm: sde: add ubwc entries to crtc only if supported" 2020-05-25 10:52:48 -07:00
qctecmdr
ca2f69fe8c Merge "disp: msm: check if kms is instantiated" 2020-05-25 05:00:17 -07:00
Linux Build Service Account
73871301d1 Merge "Revert "disp: msm: add func to parse pll_codes from dfps_data_region"" into display-kernel.lnx.5.4 2020-05-24 22:18:26 -07:00
qctecmdr
a6c09b6f84 Merge "disp: msm: sde: fix null check for encoder dsc disable" 2020-05-23 01:38:01 -07:00
Manoj Kumar AVM
0fa7f77a94 Revert "disp: msm: add func to parse pll_codes from dfps_data_region"
This reverts commit f3066919f4.

Change-Id: I97ad84bdd8aa7ebaf5cbf3a76a64dd03de89a30e
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2020-05-21 16:33:10 -07:00
qctecmdr
db766d7c86 Merge "disp: msm: sde: modify check for active datapaths" 2020-05-21 13:41:41 -07:00
qctecmdr
dfcc3a2001 Merge "disp: msm: add func to parse pll_codes from dfps_data_region" 2020-05-21 12:28:51 -07:00
qctecmdr
5f4d6ef993 Merge "disp: msm: move SMMU devices as separate devices" 2020-05-21 10:56:08 -07:00
qctecmdr
564f198f01 Merge "disp: msm: dsi: fix the error log print level" 2020-05-21 10:56:08 -07:00
qctecmdr
8a434e9feb Merge "disp: msm: sde: Remove duplicate destination scaler checks" 2020-05-21 10:56:08 -07:00
qctecmdr
476184ffa1 Merge "disp: msm: sde: check and program DS only on CRTCs that support it" 2020-05-21 10:56:08 -07:00
obrody
0fbdc8458e disp: msm: sde: Remove duplicate destination scaler checks
Delete destination scaler dirty bit clearing when crtc
is disabled as well as during duplicate state.

Change-Id: I4b2201c792a6750c060b2d9291d52547d8a81c15
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
Signed-off-by: obrody <obrody@codeaurora.org>
2020-05-21 09:41:45 -07:00
Bruce Hoo
f3066919f4 disp: msm: add func to parse pll_codes from dfps_data_region
Add function to parse pll_codes from dfps_data_region, and the
pll_codes are used as trim_codes for RFI.

Change-Id: I5b16be94a9e47dff515dea036839f74c2ddd8824
Signed-off-by: Bruce Hoo <bingchua@codeaurora.org>
2020-05-21 05:17:50 -07:00
qctecmdr
55ce1ad7c0 Merge "disp: msm: dp: exit stream enable on cable disconnect" 2020-05-20 22:03:42 -07:00
Yuan Zhao
f2819c58d2 disp: msm: dsi: fix the error log print level
Since some property of panel dtsi were not a must.
Do not report errors for panel bindings that are
not mandatory.

Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
Change-Id: Ie899081e2ca93740ceb854457b61e5fc5d2083fa
2020-05-20 21:26:02 -07:00
Abhijit Kulkarni
b4006c3c5c disp: msm: move SMMU devices as separate devices
This change adds smmu devices as separate devices and display
driver waits for these devices to bound before using any smmu
operation. This fixes recent stability issues where devices
were not probed during the dpu hw initialization.

Change-Id: Ib08e87c6c0eae0f7e95bbaa60a37bd469d0ecce0
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2020-05-20 21:25:52 -07:00
qctecmdr
ba8cf46383 Merge "disp: msm: dsi: update PHY configuration to support cphy" 2020-05-20 19:09:29 -07:00
qctecmdr
a8ce54986d Merge "disp: msm: pll: add additional dividers for CPHY support" 2020-05-20 19:09:29 -07:00
qctecmdr
897da30d8f Merge "disp: msm: sde: switch esd detection to panel read" 2020-05-20 02:36:54 -07:00
Tatenda Chipeperekwa
6a68c684bd disp: msm: dp: exit stream enable on cable disconnect
Exit stream enable on cable disconnect considering that the
controller and display modules would have transitioned to aborted
state. It is possible that the disconnect might have prevented
the link clock from being enabled, so we have to skip any register
programming in the link clock domain. We remove the unprepare
call from the DRM wrapper error handling since that path can lead
to unclocked register access when the link clock is not enabled.

Change-Id: I92595c0824193df63c2746bc8cd644f59c33604a
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-05-19 08:19:15 -07:00
Tatenda Chipeperekwa
0c5bbc2066 disp: msm: dp: deregister altmode notifier
Deregister the altmode notifier in the client teardown path since
the client will no longer be available to handle altmode
registration.

Change-Id: I06c6c61d4eb0b0fc9e9c1df1da4a0c86e4556de1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2020-05-18 11:24:05 -07:00
Veera Sundaram Sankaran
b382719077 disp: msm: sde: avoid disabling dsc encoder in PP block
DSC encoder block disables the right DSC block on
pingpong for right-only or left-only partial update
frame trigger after a full frame update. This would
cause issue with posted-start feature as the register
is not double buffered. Avoid disabling in PingPong
block as the DSC encoder being used can be controlled
by the DSC common_mode setting.

Change-Id: I20791b925c1a6f8694673e2f8d43e5283305c131
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-15 11:17:10 -07:00
Veera Sundaram Sankaran
6575366a16 disp: msm: sde: fix possible null pointer dereference
Fix a possible uninitialized variable usage in sde
catalog and a null pointer dereference in sde crtc.

Change-Id: I4299ade65fa7cf5bfc3d60d6d7a368d523286626
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-15 10:18:23 -07:00
Yuan Zhao
00fd38bec4 disp: msm: pll: add additional dividers for CPHY support
Panels supporting Cphy use a specific divider
blocks. Add additional divider blocks for byte
and pixel clock output to support DSI CPHY.

Change-Id: I74b3ee2bdd22ae8fa20567fe837e03915537c4fb
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2020-05-15 00:26:35 -07:00
Yuan Zhao
5139cad2d4 disp: msm: dsi: update PHY configuration to support cphy
Add support to read cphy boolean flag from panel dtsi
and configure DSI PHY registers accordingly. Update the
bit/byte clock calculation according to cphy specifications.
Update clock parents so that the relevant divider blocks
are configured to support cphy.

Change-Id: Iaca61eec01a488657b086f59910c52f8c79e26a4
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2020-05-14 21:00:07 -07:00
Satya Rama Aditya Pinapala
43069ad44a disp: msm: dsi: use panel's force_clk_lane_hs instead of phy's
In order to make dsi panel and dsi2hdmi panel compatible,
delete "qcom,panel-force-clock-lane-hs" property in phy and
use display panel's force_clk_lane_hs property.

Change-Id: I490e08b2ee859797c2b3aeddf109a3a4286fb922
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2020-05-14 21:00:02 -07:00
Abhijit Kulkarni
c789d0fb8a disp: msm: check if kms is instantiated
This defensive check is now required since the allocation
of driver private data has moved from bind to probe phase.
There is a chance that device shutdown can be called before
bind phase and this can cause invalid memory access.

Change-Id: I2d471a4aff93ae03291e19f6f902f1e5c28dc50f
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2020-05-14 14:43:27 -07:00
Alisha Thapaliya
e2f98dc79b Revert "disp: msm: sde: adjust DSC encoders to support all 4LM topologies"
This  reverts commit 6a50aedbfa.

Change-Id: I3570b18728cfad2843ca7f3a7d0276cda32c9492
2020-05-14 11:51:15 -07:00
Amine Najahi
bf1c81232c disp: msm: sde: check and program DS only on CRTCs that support it
Currently, when runtime_pm_suspend occurs DS property is marked
as dirty invariably if the CRTC allocated the blocks or not.
This causes atomic check failure on CRTCs without DS allocation.

Change-Id: I90287e8e283d2e80aa47627d4aa045040d76b472
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2020-05-13 23:53:38 -04:00
Krishna Manikandan
8dd8a0f1bb disp: msm: sde: fix null check for encoder dsc disable
There are some scenarios where connectors can be
null during encoder dsc disable. Update the null
check to avoid error message during these scenarios.

Change-Id: I598a644f19aecf0b7d8c989a75575329903678dd
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2020-05-13 16:49:20 -07:00
qctecmdr
528f0862c9 Merge "disp: msm: dsi: remove pclk scaling for porches" 2020-05-12 21:16:45 -07:00
Veera Sundaram Sankaran
988b1c6fc5 disp: msm: dsi: add api to control dsi active status
Add DSI api to control the connection status of the
DSI interface. This would be used in the VM usecase,
where the connection would be enabled/disabled during
device assign/unassign while switching to the VM.

Change-Id: Ifff41244824ade7a6b8dca77651d82fd5207f8e0
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-11 12:11:58 -07:00
Veera Sundaram Sankaran
88acaa31b8 disp: msm: sde: reuse cont-splash path for LE VM resource allocation
Add necessary checks during the splash init to check
& execute the splash/ramdump buffer mapping/unmapping
only for the cont-splash use-case. This would help in
reusing the same path for LE VM setup during device assign,
which does not have any splash buffer.

Change-Id: I3ce168c530c7db4b14465efa3fd87889b5f99f5b
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-11 12:11:48 -07:00
Veera Sundaram Sankaran
68b75aac24 disp: msm: use FB_NON_SEC_DIR_TRANS plane hint for TUI VM buffers
Add plane buffer flag to get the correct aspace during
TUI VM usecase. FB_NON_SEC_DIR_TRANS plane flag is set
by user-mode to indicate S2-only non-secure buffer in
TUI VM. Return the default drm device when SMMU is not
available during get_aspace_device to make the working
seamless with/without SMMU.

Change-Id: I158dc17ba51ff4b2f302d3e7017db8ab3cfe2b84
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-11 12:11:39 -07:00
Veera Sundaram Sankaran
bfec52ae7b disp: msm: sde: add SID setup function for pipes and lutdma
Add SID setup function to help programming
the SIDs for all the pipes and lutdma xin clients
based on the VM.

Change-Id: Iea598303b480b33de8750e0988129dd5cdfe7572
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-11 12:11:31 -07:00
Veera Sundaram Sankaran
7245366343 disp: msm: sde: parse MDSS HW from device tree
Get the MDSS HW version from the device tree instead
of reading directly from the hardware register.

Change-Id: Icfb7a80c8f19312001b070a454741421fd67aae5
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2020-05-11 12:11:18 -07:00
qctecmdr
d38d91b9f3 Merge "disp: msm: remove unused sde debug function" 2020-05-11 00:32:49 -07:00
Linux Build Service Account
55ef712ef6 Merge "disp: msm: dp: update altmode client registration" into display-kernel.lnx.5.4 2020-05-08 12:01:46 -07:00
Krishna Manikandan
5541a20748 disp: msm: sde: modify check for active datapaths
In some cases like suspend and cwb concurrencies,
the number of mixers in the sde_crtc structure
can become zero. Add support to get the number
of mixers from topology in those cases to
avoid incorrect resource allocation request.

Change-Id: Id9b82e805ff50a107ad06514b4e41c0917abdf33
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2020-05-08 13:48:49 -04:00
qctecmdr
7116441b24 Merge "disp: msm: set voltage to min before disable" 2020-05-08 04:03:50 -07:00
qctecmdr
403ee1f6f8 Merge "disp: msm: add inverted display brightness value property" 2020-05-07 08:13:50 -07:00
qctecmdr
774b8376e3 Merge "msm: sde: update histogram buffer submission for ltm" 2020-05-07 08:13:49 -07:00
Wenjun Zhang
b55a29b194 disp: msm: add inverted display brightness value property
In general the brightness value, the first parameter is low byte and
the second is high byte, but some DDIC invert, so add inverted display
brightness value property.

Change-Id: I8bf5631bb66096bd28529c53643e358afffce18e
Signed-off-by: Wenjun Zhang <wjzhan@codeaurora.org>
2020-05-07 05:37:52 -07:00
qctecmdr
d6a60b7262 Merge "disp: msm: reduce complexity in _get_rc_table_index" 2020-05-07 04:03:52 -07:00
Gopikrishnaiah Anandan
8033050f92 msm: sde: update histogram buffer submission for ltm
When histogram buffer is queued by driver client, during the display
commit buffer has to be submitted to hardware. Currently driver is
waiting for previous histogram to finish before submitting the new
buffer. This can cause the histogram to be invalid, change updates the
submission logic of buffer.

Change-Id: I76b595fa96d1c2dd01c841de3cf228d4fa7fd75d
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2020-05-07 01:25:52 -07:00
qctecmdr
2e3e5cb274 Merge "disp: msm: sde: avoid resource reservations clean up leak" 2020-05-06 23:27:07 -07:00
qctecmdr
f1450d87f1 Merge "disp: msm: queue vblank work on disp thread during modeset" 2020-05-06 20:18:04 -07:00
qctecmdr
eab14f2e35 Merge "disp: msm: enable DP MST compilation" 2020-05-06 18:16:18 -07:00