39438 Commits

Author SHA1 Message Date
qctecmdr Service
9529c84b09 Merge "drm/msm/dp: return number of displays as 0 if dp node is disabled" 2018-08-10 20:08:49 -07:00
Sankeerth Billakanti
683d46d569 drm/msm/dp: return number of displays as 0 if dp node is disabled
When DP node is disabled in the DT file, dp driver is returning
incorrect number of displays connected

Change-Id: I94655ee40cb3785f8186f0eef5f88d3ec4020b09
Signed-off-by: Sankeerth Billakanti <sbillaka@codeaurora.org>
2018-08-09 23:43:58 -07:00
Linux Build Service Account
dd9acb7d10 Merge "drm/msm/sde: increase ahb bus vote on first frame" into dev/msm-4.14-display 2018-08-09 13:14:44 -07:00
Linux Build Service Account
69a9e5c94c Merge "drm/msm/sde: add traces to track display kickoff" into dev/msm-4.14-display 2018-08-09 13:14:35 -07:00
Linux Build Service Account
04b45a660a Merge "drm/msm/sde: handle pm_resume commit correctly" into dev/msm-4.14-display 2018-08-09 13:14:33 -07:00
Linux Build Service Account
2293c40404 Merge "drm/msm/dsi-staging: handoff backlight level for cont splash" into dev/msm-4.14-display 2018-08-09 13:03:34 -07:00
Linux Build Service Account
499595c6ee Merge "drm/msm: handle link failure in hdcp" into dev/msm-4.14-display 2018-08-09 13:03:25 -07:00
Linux Build Service Account
a949307d84 Merge changes Id28f8025,Idccaa794,I4c92f3cf into dev/msm-4.14-display
* changes:
  drm/msm/sde: Fix 32-bit compilation issues
  drm/msm/sde: prevent clearing multirect flags during validate failure
  drm/msm/sde: Increase command mode idle timeout in early wake-up
2018-08-06 11:44:18 -07:00
Linux Build Service Account
06e40f512f Merge "drm/msm/dsi-staging: add software simulation states to esd check mode" into dev/msm-4.14-display 2018-08-06 11:44:16 -07:00
Linux Build Service Account
b2b2ac7129 Merge "drm/msm/sde: avoid lock while dumping fence status" into dev/msm-4.14-display 2018-08-06 11:44:13 -07:00
Linux Build Service Account
ce026cfcd5 Merge "drm/msm/sde: avoid secure-camera/secure-ui concurrency with other displays" into dev/msm-4.14-display 2018-08-06 11:44:03 -07:00
Abhijit Kulkarni
21d8ba6abc drm/msm/sde: handle pm_resume commit correctly
PM_suspend/resume functionality needs atomic state to be saved during
suspend and needs to be reapplied at resume time. But the state saved
during suspend is partially invalid, so we need to fix it before commit.
Use helper function fom the framework to take care of this.

Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
Change-Id: I83471c95114c5852d252c866fc4c21aaf4044893
2018-08-03 15:15:45 -07:00
Amine Najahi
e9805228db drm/msm/sde: add traces to track display kickoff
Add traces to help diagnose performance issues in
display pipeline

Change-Id: I9bfd067c1d986df5b2a8b9eb5ab2c4969d182aec
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2018-08-02 15:23:22 -04:00
Linux Build Service Account
47ec6b636b Merge "drm/msm/sde: print debugfs input for command transfer" into dev/msm-4.14-display 2018-08-01 22:04:29 -07:00
Linux Build Service Account
7709d0a770 Merge "drm/msm/sde: program color fill in planes in failure at commit stage" into dev/msm-4.14-display 2018-08-01 22:04:19 -07:00
Linux Build Service Account
5290ac6f2a Merge "drm/msm/dsi-staging: add logs for debugfs nodes" into dev/msm-4.14-display 2018-08-01 22:04:18 -07:00
Shashank Babu Chinta Venkata
8dc69c932a drm/msm/dsi-staging: add software simulation states to esd check mode
Add software simulate success/failure modes to debugfs node
esd_check_mode while reading current mode.

Change-Id: I7534083c87855cd248d141788f20cdcf3ef8dc78
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2018-08-01 15:54:35 -07:00
Veera Sundaram Sankaran
4a5ab2fd23 drm/msm/sde: avoid secure-camera/secure-ui concurrency with other displays
Add checks to fail secure-camera/secure-ui updates on
other displays. Fail updates on primary with
secure-camera/secure-ui layers when other display
session is in-progress. This would avoid all the
concurrency during secure updates.

Change-Id: I7cba4d41e3a0c719e18e27689e48d58c16336fa9
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2018-08-01 10:52:03 -07:00
Kalyan Thota
88bf65ae3c drm/msm/sde: avoid lock while dumping fence status
while crtc_commit is in progress last_close can be triggered
which accquires mode config locks, hence avoid using lock while
dumping the fence status on connector when lock is already taken.

Change-Id: I4e2032a65b3483dd276a2c82f339016fc2f3a93f
Signed-off-by: Kalyan Thota <kalyant@codeaurora.org>
Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
2018-08-01 12:32:06 +05:30
Aravind Venkateswaran
15e83efb7d drm/msm/dsi-staging: handoff backlight level for cont splash
When continuous splash screen feature is enabled, the display panel
is left on from the bootloader. As part of the transition to kernel,
the backlight level also needs to be handed off. Otherwise, it is
possible that the kernel can inadvertently set the backlight level
to zero and result in what appears like a black screen during
the transition from splash screen to boot animation. Add this support to
read the current backlight level for WLED backlight type and set it
during handoff. For other backlight types, set it to a default
value.

CRs-Fixed: 2248169
Change-Id: Ic003a1432eefbf8b9a34457440f995bbe29f5c9b
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2018-07-31 17:34:40 -07:00
Ajay Singh Parmar
6eab8e682b drm/msm: handle link failure in hdcp
In case sink issues a link failure or re-authentication request,
tear down the session and re-authenticate to avoid going into
dormant state.

CRs-Fixed: 2292768
Change-Id: I2400188d55ddebcf4dc628412d5832290cfb82c8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2018-07-31 15:45:58 -07:00
Linux Build Service Account
9327317f43 Merge "drm/msm/sde: Use kthread API to initialize idle delay work" into dev/msm-4.14-display 2018-07-31 15:22:38 -07:00
Linux Build Service Account
6c6d4b2469 Merge "drm/msm/sde: ensure qsync settings are properly flushed" into dev/msm-4.14-display 2018-07-31 15:22:36 -07:00
Linux Build Service Account
ef44336969 Merge "drm/msm/sde: set the qsync/avr mode during encoder enable" into dev/msm-4.14-display 2018-07-31 15:22:25 -07:00
Raviteja Tamatam
fcdad7a616 drm/msm/sde: program color fill in planes in failure at commit stage
During secure transition, failure in _sde_plane_set_scanout at
atomic commit stage can lead to unsecure buffer address being
programmed to secure pipe and lead to stage 2 smmu faults.
These failure cases are taken care by inducing solid fill color
on such planes.

Change-Id: I3ba19b040b5a71b7d7f3629de650037f6027b656
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2018-07-31 06:02:07 -07:00
Jayant Shekhar
0a3bfd672b drm/msm/sde: Fix 32-bit compilation issues
Fix 32 bit compilation issues in display DRM driver.

1) Fix issues of casting integer to pointer of incompatible type.
   (Used uintptr_t and u64_to_userptr)

2) Fix stack frame overflow in DP driver.
   (Reduce size of variables allocated on stack)

3) Fix Incorrect type used for printing size_t and unsigned long

4) Fix issues with mult_frac and roundup macro due to u64 division.

5) Rework histogram data in PP driver to fix stack frame overflow

Change-Id: Id28f8025f0d2ac49ef3ce3f4a9ba11dff03da0ea
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Signed-off-by: Ch Ganesh Kumar <chganesh@codeaurora.org>
Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
2018-07-31 11:17:58 +05:30
Shashank Babu Chinta Venkata
a130990bf3 drm/msm/sde: print debugfs input for command transfer
Print command requested for transfer to panel from
debugfs node.

Change-Id: I7f33d7554ebd725a5e735245116c4028ef551aa5
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2018-07-30 16:17:57 -07:00
Shashank Babu Chinta Venkata
f92cc23378 drm/msm/dsi-staging: add logs for debugfs nodes
Add pr_info logs for user altered/triggered ESD events.

Change-Id: Idcc260ccde59a29e7c9a88e5af9f9f9f79e5c99d
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
2018-07-30 16:17:37 -07:00
Linux Build Service Account
d5c5435323 Merge changes Id72d529e,I6ccd1a96,I125004c7,Icebe7fa2 into dev/msm-4.14-display
* changes:
  drm/msm/sde: deprecate force panel dead from connector
  drm/msm/dsi-staging: add software simulation of esd failure
  ARM: dts: msm: enable ulps for various displays on SM8150
  drm/msm/dsi-staging: avoid ulps entry while esd recovery is pending
2018-07-30 15:13:51 -07:00
Linux Build Service Account
f26e399584 Merge "drm/msm/sde: add sde_hw_ctl ops for peripheral flush" into dev/msm-4.14-display 2018-07-30 15:05:28 -07:00
Linux Build Service Account
a9afab716f Merge "drm/msm/sde: add pending retire fence count to event logs" into dev/msm-4.14-display 2018-07-30 15:05:15 -07:00
Linux Build Service Account
a42d6acd6e Merge "drm/msm/dp: fix timeslot programming error for mst streams" into dev/msm-4.14-display 2018-07-30 15:05:09 -07:00
Linux Build Service Account
a8aadbbd70 Merge "drm/msm: extract compression ratio and widebus mode from connector" into dev/msm-4.14-display 2018-07-30 15:05:04 -07:00
Linux Build Service Account
dba5a82b00 Merge "drm/msm/sde: decouple sde_fence_context from sde_connector" into dev/msm-4.14-display 2018-07-30 15:05:03 -07:00
Linux Build Service Account
6bb3730530 Merge "drm/msm/sde: move UBWC error logging to frame event callback" into dev/msm-4.14-display 2018-07-30 14:26:16 -07:00
Amine Najahi
3d67ea0a71 drm/msm/sde: increase ahb bus vote on first frame
Increase ahb bus vote on first frame after idle
pc because that will program the complete mdss
register space.

Change-Id: I360d43656f753c70acb51395a978998412354b64
Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
2018-07-30 13:01:11 -04:00
Raviteja Tamatam
2944cd6b15 drm/msm/sde: prevent clearing multirect flags during validate failure
In corner case where crtc->planemask and atomic state->planes[]
do not match, driver clears the multirect_index/multirect_mode
in the plane->state during validate failure case. This can lead
to multirect_index/multirect_mode mismatch for next commits during
failure condition.

Change-Id: Idccaa79431469e185ca46c1e40b040427d02a96d
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2018-07-30 13:07:34 +05:30
Jayant Shekhar
ad71dac9eb drm/msm/sde: Increase command mode idle timeout in early wake-up
Sometimes updates from framework comes with slight delay after
early wake up. In such case prevent clock switch off to avoid
frame miss or jank in next update. So, increase the command
mode idle timeout sufficiently to prevent such issue.

Change-Id: I4c92f3cfca5402ee9f6ee29beaf7a32506ac92c7
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2018-07-30 13:04:03 +05:30
Jayant Shekhar
521ae68c30 drm/msm/sde: Use kthread API to initialize idle delay work
Prevent initializing delayed work during variable refresh
rate trigger. Avoid setting kthread kernel struct variable
directly. Use kthread API instead.

Change-Id: Iac3865ead22fbb2278c4da2df144d353da279d99
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2018-07-28 07:01:54 +05:30
Steve Cohen
c003bd74d0 drm/msm/sde: ensure qsync settings are properly flushed
Ensure the correct block is flushed when QSYNC settings are
updated.  Depending on the HW version, the location of the
Tear Effect module, and the interface mode, either the layer
mixer or the interface must be flushed when QSYNC settings
are changed.

Change-Id: I89b654ec03cbb5df459918a1b9ab345fe5a756ea
Signed-off-by: Steve Cohen <cohens@codeaurora.org>
2018-07-27 19:00:55 -04:00
Linux Build Service Account
19f6ab6922 Merge "drm/msm/dp: Add gpio hpd support for DP" into dev/msm-4.14-display 2018-07-27 15:20:17 -07:00
Linux Build Service Account
bf0fd5ea36 Merge "drm/msm/sde: fix pp_4 and pp_5 done irq register enable" into dev/msm-4.14-display 2018-07-27 13:37:14 -07:00
Linux Build Service Account
9bd2e57e7d Merge "drm/msm/dp: disable back-pressure before starting stream" into dev/msm-4.14-display 2018-07-27 13:37:07 -07:00
Linux Build Service Account
03467e41fa Merge "dmr/msm/sde: propagate correct fence_event to sde_fence_signal" into dev/msm-4.14-display 2018-07-27 13:37:02 -07:00
Linux Build Service Account
53864662ec Merge "drm/msm/dp: reset post_open flag on cable disconnect" into dev/msm-4.14-display 2018-07-27 12:21:25 -07:00
Linux Build Service Account
4ec5e03bed Merge "drm/msm: update msg log level for edid cea ext check" into dev/msm-4.14-display 2018-07-27 12:21:17 -07:00
Linux Build Service Account
4b2a78ec99 Merge "drm/msm/sde: remove thread flush request for same thread" into dev/msm-4.14-display 2018-07-27 12:21:12 -07:00
Linux Build Service Account
3d8bbf36ef Merge "drm/msm/dsi-staging: tie up dsi irq control to core clock" into dev/msm-4.14-display 2018-07-27 12:21:08 -07:00
Linux Build Service Account
4bbf5f3df2 Merge "drm/msm/sde: Add rev checks for sm6150 target" into dev/msm-4.14-display 2018-07-27 12:21:02 -07:00
Linux Build Service Account
35fea8642a Merge "drm/msm/sde: update CWB detection logic" into dev/msm-4.14-display 2018-07-27 12:21:01 -07:00