Skip to content

Commit

Permalink
drm/stm: ltdc: update planes at next vblank to avoid partial refresh
Browse files Browse the repository at this point in the history
Plane updates must be synchronized on vblank with the shadow register mechanism
to avoid partial refresh on screen.

Signed-off-by: Yannick Fertré <[email protected]>
Acked-by: Philippe Cornu <[email protected]>
Signed-off-by: Benjamin Gaignard <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
YFESTM authored and Benjamin-Gaignard committed Apr 24, 2019
1 parent c64d1cb commit 8ceb856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/stm/ltdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ static void ltdc_crtc_atomic_enable(struct drm_crtc *crtc,
/* Enable IRQ */
reg_set(ldev->regs, LTDC_IER, IER_RRIE | IER_FUIE | IER_TERRIE);

/* Immediately commit the planes */
reg_set(ldev->regs, LTDC_SRCR, SRCR_IMR);
/* Commit shadow registers = update planes at next vblank */
reg_set(ldev->regs, LTDC_SRCR, SRCR_VBR);

/* Enable LTDC */
reg_set(ldev->regs, LTDC_GCR, GCR_LTDCEN);
Expand Down

0 comments on commit 8ceb856

Please sign in to comment.