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)
commit9d9ea7a9c6005a42e9837da96ff138a6ddcd593c
treee9a5e940f9ba4075cea925fd18b1b27fd2ade5f8
parent3c352b66905b29689bbf1c8e3722c26de65f086d
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 774e39ee3572 is also a suitable fix

Fixes: 774e39ee3572 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