]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: restore cursor state when enabling crtc
authorRob Clark <robdclark@gmail.com>
Thu, 19 Oct 2017 20:00:31 +0000 (16:00 -0400)
committerRob Clark <robdclark@gmail.com>
Sat, 28 Oct 2017 18:02:55 +0000 (14:02 -0400)
commit38481a8dac74de16c3ecead55333bf3bb2d0dbc5
treee9a5e940f9ba4075cea925fd18b1b27fd2ade5f8
parent0adfaef74d19d79b9beb84b4f0f34557f3c77d5a
drm/msm/mdp5: restore cursor state when enabling crtc

Since we enabled runtime PM, we cannot count on cursor registers to
retain their values.  This can result in situations where we think the
cursor is enabled when we enable the CRTC but it is trying to scan out
null (and the rest of cursor position/size is lost), resulting in faults
and generally angering the hw when coming out of DPMS with a cursor
enabled.

stable backport note: reverting 6907001877cf is also a suitable fix

Fixes: 6907001877cf drm/msm/mdp5: Set up runtime PM for MDSS
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c