提交線圖

113 次程式碼提交

作者 SHA1 備註 日期
qctecmdr
06f8bcc142 Merge "disp: msm: dsi: add debug support to configure clock gating" 2019-05-23 21:54:20 -07:00
qctecmdr
30b14e8caf Merge "disp: msm: dsi: block TE signal check for ESD on video mode panels" 2019-05-23 19:36:19 -07:00
qctecmdr
15959feb73 Merge "disp: msm: sde: fix logging in crtc and kms" 2019-05-23 18:17:37 -07:00
qctecmdr
d37cbd374b Merge "drm/msm/dsi-staging: update dsi clock calculations" 2019-05-23 16:40:53 -07:00
qctecmdr
bd03e365b7 Merge "disp: msm: dsi: fix out of bounds access errors" 2019-05-23 13:35:11 -07:00
Aravind Venkateswaran
dc65566994 disp: msm: dsi: add debug support to configure clock gating
Add support to selectively enable clock gating for supported
DSI clocks using a new debugfs node - config_clk_gating. This
new node would be created for every display node. See below
for usage examples:

To enable clock gating only for BYTE clock:
echo 1 > /sys/kernel/debug/<display_name>/config_clock_gating

To enable clock gating only for PIXEL clock:
echo 2 > /sys/kernel/debug/<display_name>/config_clock_gating

To enable clock gating only for PHY clock:
echo 4 > /sys/kernel/debug/<display_name>/config_clock_gating

To enable clock gating only for all clock:
echo 7 > /sys/kernel/debug/<display_name>/config_clock_gating

To disable clock gating for all clocks:
echo 8 > /sys/kernel/debug/<display_name>/config_clock_gating

To go back to default setting:
echo 0 > /sys/kernel/debug/<display_name>/config_clock_gating

Change-Id: I83713d86eb1b9675d40d51fc20de81cca0aeb1c0
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2019-05-23 12:08:22 -07:00
Linux Build Service Account
c44165dd40 Merge "disp: msm: dsi: avoid panel mode switch flag after deep sleep" into display-kernel.lnx.4.19 2019-05-23 00:27:39 -07:00
Satya Rama Aditya Pinapala
8e1a796595 disp: msm: dsi: block TE signal check for ESD on video mode panels
If we set esd check mode as TE signal check for video mode panels
the panel will be continuously reset. This change doesn't allow
TE signal check as ESD check mode.

Change-Id: I42a09d605b259d9f06c67cb126d3684ed4489699
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2019-05-22 14:38:59 -07:00
Satya Rama Aditya Pinapala
684e070ab1 disp: msm: dsi: fix out of bounds access errors
This change fixes the invalid memory access. It allocates
enough memory so that out of bounds access is avoided.

Change-Id: I0749eac54cfa91891a4377b99fbd7f24dd3bd02a
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
2019-05-22 14:38:16 -07:00
qctecmdr
80aed77020 Merge "disp: msm: sde: avoid rc lock deadlock during esd failure" 2019-05-22 12:20:00 -07:00
Samantha Tran
0cfa54e503 disp: msm: dsi: avoid panel mode switch flag after deep sleep
This change updates the checks needed before setting the flag
to enable panel switching between command and video mode.
New crtc active state remains disabled and it causes a failure
in the previous case.

Change-Id: I059731d2faa0f7844d3784fcf7694509fbba3ff7
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
2019-05-22 11:20:28 -07:00
Manoj Kumar AVM
6af277472c Revert "disp: msm: sde: turn off/on vblank callbacks as per crtc"
This reverts commit 16bfab7ddf.

Change-Id: I5c5ef6a2fcb83607acd2c737f574199c010c89fa
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2019-05-21 18:33:54 -07:00
Manoj Kumar AVM
7fc5e5d45f Revert "disp: msm: sde: remove vblank cache logic"
This reverts commit e6754ef40a.

Change-Id: If5921c6428b2b79ae5979d782138f10e4673d1fb
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2019-05-21 18:33:28 -07:00
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
Dhaval Patel
56e88a7fdc disp: msm: sde: avoid rc lock deadlock during esd failure
Each mode_set call makes sure that previous frame is triggered
and triggers the esd check if there is pp_timeout. This may
lead to deadlock between crtc commit and event threads. Crtc
commit thread acquires the rc_lock and triggers the flush_thread
API on event_thread. Event thread again tries to acquire the
rc_lock to wait for frame. This can be prevented by avoiding the
pre_kickoff call from esd_failure notification if it is generated
through pp_timeout.

Change-Id: I561fef0345976ab0cae61aab6718214c47fa1393
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
2019-05-17 15:39:16 -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
Vara Reddy
f28b596aac drm/msm/dsi-staging: update dsi clock calculations
Change updates dsi clock calculations for command mode
as per recommendation. Now dsi clocks are tied to
frame transer time. Propagate correct frame transfer
time to hal to update mdp clocks and bandwidth needed
accordingly.

Change-Id: I46f9038622ddd47cc53c5f3d54229f69a7008c8a
Signed-off-by: Vara Reddy <varar@codeaurora.org>
2019-05-15 13:06:43 -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
5fb59a73b2 disp: msm: sde: fix logging in crtc and kms
Fix the crtc status to print the formatted src
rect for all the planes and log the true inline
rotation flag. Move the event log in splash cleanup,
so that it is not logged for every frame.

Change-Id: Id2a323254f632a649c335455f5ef53b7d805c3a5
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2019-05-13 15:20:54 -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