drm/meson: crtc: add OSD1 plane AFBC commit
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 21 Oct 2019 09:15:09 +0000 (11:15 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 10 Dec 2019 09:10:29 +0000 (10:10 +0100)
commitc96bcb635a5ed9bc072c3efcda70dfd24a771749
tree4a20a91e5984bf6a5c3effd24b5582e57f773906
parent24e0d4058eff7cdf66976c66be42ac89f94d1d16
drm/meson: crtc: add OSD1 plane AFBC commit

Finally, setup the VIU registers and start the AFBC decoder to support
displaying AFBC encoded buffers on Amlogic GXM and G12A SoCs.

The RDMA is used here to reset and program the AFBC decoder unit
on each vsync without involving the interrupt handler that can
be masked for a long period of time, producing display glitches.

The vsync irq must still be left enabled otherwise the RDMA modules isn't
trigerred when the interrupt line is masked.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021091509.3864-10-narmstrong@baylibre.com
drivers/gpu/drm/meson/meson_crtc.c