diff options
author | Neil Armstrong <narmstrong@baylibre.com> | 2019-10-21 11:15:08 +0200 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2019-12-10 10:09:56 +0100 |
commit | 24e0d4058eff7cdf66976c66be42ac89f94d1d16 (patch) | |
tree | 592676968a66372471186784608b12fef6cc9729 /drivers/gpu/drm/meson | |
parent | 1b85270ff156d567bb4e8e235fa7069edd6c7b1f (diff) | |
download | linux-24e0d4058eff7cdf66976c66be42ac89f94d1d16.tar.gz linux-24e0d4058eff7cdf66976c66be42ac89f94d1d16.tar.bz2 linux-24e0d4058eff7cdf66976c66be42ac89f94d1d16.zip |
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
Diffstat (limited to 'drivers/gpu/drm/meson')
-rw-r--r-- | drivers/gpu/drm/meson/meson_viu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/meson/meson_viu.c b/drivers/gpu/drm/meson/meson_viu.c index fc246248226b..304f8ff1339c 100644 --- a/drivers/gpu/drm/meson/meson_viu.c +++ b/drivers/gpu/drm/meson/meson_viu.c @@ -438,7 +438,7 @@ void meson_viu_init(struct meson_drm *priv) /* Initialize OSD1 fifo control register */ reg = VIU_OSD_DDR_PRIORITY_URGENT | - VIU_OSD_HOLD_FIFO_LINES(4) | + VIU_OSD_HOLD_FIFO_LINES(31) | VIU_OSD_FIFO_DEPTH_VAL(32) | /* fifo_depth_val: 32*8=256 */ VIU_OSD_WORDS_PER_BURST(4) | /* 4 words in 1 burst */ VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */ |