summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tidss/tidss_crtc.h
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2020-02-27 15:00:52 +0300
committerJyri Sarha <jsarha@ti.com>2020-02-28 15:48:58 +0300
commitb33b54748866f7bc29696837c472f49413169d4e (patch)
tree85563d8f0987887e553b6bd537a8f55eee128490 /drivers/gpu/drm/tidss/tidss_crtc.h
parentd6b8bbca6bc83b9c57e528b28df6177b9b57e19d (diff)
downloadlinux-b33b54748866f7bc29696837c472f49413169d4e.tar.xz
drm/tidss: dispc: Fix broken plane positioning code
The old implementation of placing planes on the CRTC while configuring the planes was naive and relied on the order in which the planes were configured, enabled, and disabled. The situation where a plane's zpos was changed on the fly was completely broken. The usual symptoms of this problem was scrambled display and a flood of sync lost errors, when a plane was active in two layers at the same time, or a missing plane, in case when a layer was accidentally disabled. The rewrite takes a more straight forward approach when HW is concerned. The plane positioning registers are in the CRTC (or actually OVR) register space and it is more natural to configure them in a one go when configuring the CRTC. To do this we need make sure we have all the planes on the updated CRTCs in the new atomic state. The untouched planes on CRTCs that need plane position update are added to the atomic state in tidss_atomic_check(). Signed-off-by: Jyri Sarha <jsarha@ti.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200227120052.23168-1-jsarha@ti.com
Diffstat (limited to 'drivers/gpu/drm/tidss/tidss_crtc.h')
-rw-r--r--drivers/gpu/drm/tidss/tidss_crtc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tidss/tidss_crtc.h b/drivers/gpu/drm/tidss/tidss_crtc.h
index df9d90b1ad2d..09e773666228 100644
--- a/drivers/gpu/drm/tidss/tidss_crtc.h
+++ b/drivers/gpu/drm/tidss/tidss_crtc.h
@@ -32,6 +32,8 @@ struct tidss_crtc_state {
/* Must be first. */
struct drm_crtc_state base;
+ bool plane_pos_changed;
+
u32 bus_format;
u32 bus_flags;
};