Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/meson: hold 32 lines after vsync to give time for AFBC start

When using an AFBC encoded frame, the AFBC Decoder must be reset,
configured and enabled at each vsync IRQ.

To leave time for that, use the maximum lines hold time to give time
for AFBC setup and avoid visual glitches.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
[narmstrong: fix typo in commit log]
Link: https://patchwork.freedesktop.org/patch/msgid/20191021091509.3864-9-narmstrong@baylibre.com

+1 -1
+1 -1
drivers/gpu/drm/meson/meson_viu.c
··· 438 438 439 439 /* Initialize OSD1 fifo control register */ 440 440 reg = VIU_OSD_DDR_PRIORITY_URGENT | 441 - VIU_OSD_HOLD_FIFO_LINES(4) | 441 + VIU_OSD_HOLD_FIFO_LINES(31) | 442 442 VIU_OSD_FIFO_DEPTH_VAL(32) | /* fifo_depth_val: 32*8=256 */ 443 443 VIU_OSD_WORDS_PER_BURST(4) | /* 4 words in 1 burst */ 444 444 VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */