Commit Graph

97 Commits

Author SHA1 Message Date
qctecmdr
51e46a53a0 Merge "disp: msm: sde: add per_pipe_bw_high option" 2019-05-21 11:20:01 -07:00
qctecmdr
1adffe8c6e Merge "disp: msm: dp: use extended DPCD fields to configure dp link rate" 2019-05-21 10:03:56 -07:00
qctecmdr
ab3c7fdd80 Merge "disp: pll: update SSC offset value" 2019-05-21 07:34:58 -07:00
qctecmdr
dcfc57ce16 Merge "drm/msm: avoid unmapping the buffer twice during msm_release" 2019-05-21 05:50:25 -07:00
qctecmdr
82ff7e3a57 Merge "drm/msm: Only add available components" 2019-05-21 02:50:07 -07:00
qctecmdr
3f35432626 Merge "disp: msm: avoid vbif and wb register dumps in secure mode" 2019-05-21 01:20:03 -07:00
qctecmdr
e9cf18686e Merge "disp: msm: dsi: remove reg dump sub range" 2019-05-20 23:52:43 -07:00
qctecmdr
366415bb0a Merge "disp: pll: fix TRACE_INCLUDE_FILE path issue" 2019-05-20 22:20:02 -07:00
qctecmdr
d47e3af033 Merge "disp: msm: dp: perform mst phy operations during suspend resume" 2019-05-20 20:50:00 -07:00
qctecmdr
b08df2e6a6 Merge "disp: msm: sde: add rev check for LITO target" 2019-05-20 16:35:06 -07:00
Samantha Tran
c423e14b22 disp: msm: sde: add per_pipe_bw_high option
This change populates values for per_pipe_bw_high
from the device tree. This value is exposed to userspace
as the bandwidth per pipe available in the no VFE
scenario.

Change-Id: I61346ee55dfd4b6b0736ecf0b96e061f4f3934c3
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-05-20 15:42:06 -07:00
qctecmdr
a8d58b7c0d Merge "disp: msm: sde: update min prefill lines to 35 for kona" 2019-05-20 13:06:00 -07:00
qctecmdr
3638af7654 Merge "disp: msm: sde: log pp-line count in event logs" 2019-05-20 11:33:55 -07:00
qctecmdr
118d196a8d Merge "disp: msm: sde: reduce log level for invalid encoder master" 2019-05-19 20:49:35 -07:00
qctecmdr
89a6e5d512 Merge "disp: msm: fix out-of-bound access and NULL dereference" 2019-05-19 16:45:53 -07:00
Samantha Tran
0cbfaf1a4b disp: msm: fix out-of-bound access and NULL dereference
Fix possible out-of-bound access and NULL pointer
dereference in SDE and PLL driver.

Change-Id: Ic5c34b3b4c3e983413a0351c38206cf3f3ab3b1f
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-05-17 11:30:48 -07:00
Dhaval Patel
627f4335aa disp: msm: sde: update min prefill lines to 35 for kona
Update minimum prefill ines to 35 lines for kona
target.

Change-Id: Ib37304024947c581a2a29f820eef881d6db984f9
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2019-05-16 20:44:13 -07:00
Veera Sundaram Sankaran
1e3d105dc0 disp: msm: sde: log pp-line count in event logs
Log ping-pong current line count during ctl-start
and rd-ptr interrupt. This will help in debugging
ping-pong timeout issues.

Change-Id: I58185330fe9e8a64f48d6da60c974b23a9e68b44
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-15 15:36:06 -07:00
Veera Sundaram Sankaran
ef68f9d670 disp: msm: sde: reduce log level for invalid encoder master
Reduce the log level from error to debug for invalid
master encoder in encoder restore path during idle
power-collapse. This would avoid unnecessary logging
when concurrent writeback gets enabled after a
power-collapse event, the restore happens based on
encoder_mask attached in the crtc before the actual
enable call for the cwb encoder.

Change-Id: I54cd7de62f1a9030f68a963c8ed27ff098302e04
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-15 14:34:19 -07:00
Fuad Hossain
ac1149d273 disp: msm: dp: perform mst phy operations during suspend resume
Perform mst phy operations during suspend/resume
to allow sinks to be in a correct state. A usbpd
api must also be called before and after the phy
operations to allow the system to go into deep
suspend and resume in a timely manner.

CRs-Fixed: 2363921
Change-Id: Ie21ef9b1caf2044e598466373a6059d2a1e5e58c
Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
2019-05-15 14:39:37 -04:00
Narendra Muppalla
4e0078b8cf disp: pll: fix TRACE_INCLUDE_FILE path issue
This change address incorrect TRACE_INCLUDE_FILE issue
in pll driver.

Change-Id: I8d8d83f5cc93eb4700557d8b8564a949d0421caa
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
2019-05-14 12:44:55 -07:00
Jayaprakash
f0bc6e4683 disp: msm: sde: add rev check for LITO target
Add required revision checks for lito target.

Change-Id: I53b4bace46b0e8c99b7765e0f2a7b625ee08b38c
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
2019-05-14 13:15:16 +05:30
Veera Sundaram Sankaran
bbd12dee59 disp: msm: avoid vbif and wb register dumps in secure mode
VBIF and WB register HLOS access is revoked during
secure-display session. Dumping those registers at
ping pong done timeout causes access violation.
Hence avoid vbif and wb register space dumping in secure mode.

Change-Id: I5d327178e9f6232257b3d2fbfef8ca7ef78db2e1
Signed-off-by: Lakshmi Narayana Kalavala <lkalaval@codeaurora.org>
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-13 15:22:41 -07:00
Veera Sundaram Sankaran
4d353d556e disp: msm: dsi: remove reg dump sub range
Remove the redundant register dump sub range
registration for DSI ctl/phy as it needs only
the base registration, since it is considered
as a single block.

Change-Id: I11546bfcde05d02849c53577c4546dcfa9203539
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-13 14:04:39 -07:00
qctecmdr
74f328561e Merge "drm/msm/dp: add extra 100ms sleep when MSTM_CTRL is not cleared" 2019-05-11 00:27:58 -07:00
qctecmdr
e8a6afa265 Merge "disp: msm: dp: add operation to free the mst port object" 2019-05-10 22:35:57 -07:00
qctecmdr
21e71b998a Merge "drm/msm/sde: Add global dither memory dump range" 2019-05-10 20:50:24 -07:00
qctecmdr
3cc8b0cd16 Merge "disp: snapshot of offline rotator" 2019-05-10 18:52:56 -07:00
Douglas Anderson
9455b48fbb drm/msm: Only add available components
When trying to get the display up on my sdm845 board I noticed that
the display wouldn't probe if I had the dsi1 node marked as "disabled"
even though my board doesn't use dsi1.  It looks like the msm code
adds all nodes to its list of components even if they are disabled.  I
believe this doesn't work because all registered components need to
come up before we finish probing.  Let's do like other DRM code and
only add available components.

Change-Id: I00738a7f9fa572f12067066e86ea7974693b3aab
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Link: https://patchwork.kernel.org/patch/10712329/
Git-commit: d1d9d0e1724d6a7123b4280fdf6630ae70f96c9c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org>
2019-05-09 14:04:18 -04:00
Xiaowen Wu
162fff1195 drm/msm/dp: add extra 100ms sleep when MSTM_CTRL is not cleared
Add extra sleep between SST and MST mode if MSTM_CTRL is not cleared
at hpd to make sure dongle exit from previous MST state.

CRs-Fixed: 2411911
Change-Id: I5b1785c71a91df95167bf5083e9d752a275872a8
Signed-off-by: Xiaowen Wu <wxiaowen@codeaurora.org>
Signed-off-by: Fuad Hossain <fhossain@codeaurora.org>
2019-05-09 13:26:08 -04:00
Ajay Singh Parmar
76837da1a9 disp: msm: dp: use extended DPCD fields to configure dp link rate
Use the EXTENDED_RECEIVER_CAPABILITY DPCD register fields,
if present, for enabling HBR3 link rate on supported targets.

CRs-Fixed: 2438457
Change-Id: I505d998f31f79162dc290fc47fd9fbba51527982
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2019-05-08 22:05:27 -07:00
Samantha Tran
d76c3a72ec disp: msm: dp: add operation to free the mst port object
Add a release operation to free the mst port object when
the object refcount becomes zero.

Change-Id: If628e6da7ccf90d334574ed0f627788fb0a1fa2f
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-05-08 08:47:44 -07:00
Jayaprakash
6fc9ddcc07 makefile: add LITO config support for display techpack
Add required changes to makefile and enable the configs
for LITO support.

Change-Id: If6da5a5c139220680b0892d0cc8d408a296f1635
Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
2019-05-07 23:35:59 -07:00
qctecmdr
d54b69e258 Merge "disp: msm: Add support for seamless panel operating mode switch" 2019-05-07 21:32:43 -07:00
qctecmdr
8b3b1d3f4d Merge "disp: msm: fix dsc parameters related to 10 bpc 10 bpp" 2019-05-06 22:50:17 -07:00
qctecmdr
e683dcbce3 Merge "disp: msm: Ensure clean slate when starting and stopping HDCP" 2019-05-06 21:06:29 -07:00
Lei Chen
21edecd3b1 disp: msm: Add support for seamless panel operating mode switch
DSI display may support video mode and command mode both and it may
support transition between these two modes.
This change adds seamless transition between these two modes for DSI
display by avoiding crtc enable/disable and panel power on/off
during modeset.

Change-Id: Id7ddaef7d1f0f7cc7d52283755bad53a246adec6
Signed-off-by: Lei Chen <chenlei@codeaurora.org>
2019-05-06 18:45:44 -07:00
Christopher Braga
7e9b80092b disp: msm: Ensure clean slate when starting and stopping HDCP
The DP HDCP layer fails to wait on and clear its internal thread
upon an HDCP stop or failure. This can result in use after free
failures if a read or write over aux channel operation is already
queued.

Update the DP HDCP layer to stop and wait on kthread completion
upon HDCP failures, and clear the kthread command queue before
resuming kthread execution. Additionally, ensure the SDE HDCP
worker thread correctly starts and stops execution upon HDCP
enablement and disablement respectively.

Change-Id: I4218d7935f89416b5e5d74afd8f5d22e031b9a38
Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
2019-05-06 14:56:26 -04:00
qctecmdr
e6933ff2dc Merge "disp: msm: sde: remove vblank cache logic" 2019-05-05 21:21:19 -07:00
qctecmdr
8205140d9c Merge "disp: msm: sde: turn off/on vblank callbacks as per crtc" 2019-05-05 19:42:43 -07:00
qctecmdr
8c8fad0d91 Merge "disp: msm: dp: Update sink sync check to be disabled by default" 2019-05-03 11:36:05 -07:00
Krishna Manikandan
da4c79c55b drm/msm: avoid unmapping the buffer twice during msm_release
The dma buffer associated with the gem object is already
unmapped during put_iova. Avoid unmapping it again in
put_pages.

Change-Id: Iac57e164dde6f3e5913070acbe74b42691049913
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2019-05-03 11:29:59 -07:00
qctecmdr
f8090586ac Merge "disp: msm: dp: Avoid double authentication if first is still in progress" 2019-05-03 09:51:06 -07:00
qctecmdr
32c581ff56 Merge "disp: pll: fix divider clock flags for DSI PLL clocks" 2019-05-03 08:01:00 -07:00
qctecmdr
16282cc5e4 Merge "disp: msm: Check QSEECOM response only if message length is not 0" 2019-05-03 02:04:50 -07:00
qctecmdr
c0035372e5 Merge "disp: msm: dp: Prevent disconnect from stopping HDCP" 2019-05-03 02:04:49 -07:00
Veera Sundaram Sankaran
476f37c2bb disp: msm: fix dsc parameters related to 10 bpc 10 bpp
Fix few DSC parameters related to 10 bits-per-component
10 bits-per-pixel configuration according to HW programming
guide.

Change-Id: I3ceb1eb9b1247440ef68800e9b62e9ffb7ec5b57
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-01 17:13:58 -07:00
Satya Rama Aditya Pinapala
2f3a90b47d disp: pll: update SSC offset value
This change updates SSC offset value according to recent
hardware recommendation.

Change-Id: Ie822ed6ae8e383f93ca91615617dad4b4324b8a0
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2019-05-01 14:06:44 -07:00
Aravind Venkateswaran
664040053b disp: pll: fix divider clock flags for DSI PLL clocks
The divider clocks in the DSI PLL are 1-based and can accept
a value of 0. Set the flags accordingly in the PLL driver.

CRs-Fixed: 2433864
Change-Id: I82361ae3e2119f9e1922153bd5aba6354e8c5442
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2019-05-01 12:53:51 -07:00
qctecmdr
4be499df4b Merge "disp: msm: sde: handle cont-splash & check only rm reserve" 2019-04-30 16:37:22 -07:00