summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/meson/meson_viu.h
diff options
context:
space:
mode:
authorNeil Armstrong2018-11-28 11:07:34 +0100
committerNeil Armstrong2018-12-03 11:12:09 +0100
commit3a936bc2869667d7768f2266d14c4c49a849ffbe (patch)
treebc0306a5f2d02ed1a1db41587f7b57a59dc45f8a /drivers/gpu/drm/meson/meson_viu.h
parentdrm/v3d: Fix prime imports of buffers from other drivers. (diff)
downloadkernel-qcow2-linux-3a936bc2869667d7768f2266d14c4c49a849ffbe.tar.gz
kernel-qcow2-linux-3a936bc2869667d7768f2266d14c4c49a849ffbe.tar.xz
kernel-qcow2-linux-3a936bc2869667d7768f2266d14c4c49a849ffbe.zip
drm/meson: Fix an Alpha Primary Plane bug on Meson GXL/GXM SoCs
On the Amlogic GXL & GXM SoCs, a bug occurs on the primary plane when alpha is used where the alpha is not aligned with the pixel content. The workaround Amlogic implemented is to reset the OSD1 plane hardware block each time the plane is (re)enabled, solving the issue. In the reset, we still need to save the content of 2 registers which depends on the status of the plane, in addition to reload the scaler conversion matrix at the same time. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Tested-by: Maxime Jourdan <mjourdan@baylibre.com> Reviewed-by: Maxime Jourdan <mjourdan@baylibre.com> [narmstrong: fixed typo in commit log] Link: https://patchwork.freedesktop.org/patch/msgid/20181128100734.6536-1-narmstrong@baylibre.com
Diffstat (limited to 'drivers/gpu/drm/meson/meson_viu.h')
-rw-r--r--drivers/gpu/drm/meson/meson_viu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/meson/meson_viu.h b/drivers/gpu/drm/meson/meson_viu.h
index 073b1910bd1b..0f84bddd2ff0 100644
--- a/drivers/gpu/drm/meson/meson_viu.h
+++ b/drivers/gpu/drm/meson/meson_viu.h
@@ -59,6 +59,7 @@
#define OSD_REPLACE_EN BIT(14)
#define OSD_REPLACE_SHIFT 6
+void meson_viu_osd1_reset(struct meson_drm *priv);
void meson_viu_init(struct meson_drm *priv);
#endif /* __MESON_VIU_H */