]> git.itanic.dy.fi Git - linux-stable/commit
drm: renesas: shmobile: Wait for page flip when turning CRTC off
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 15 Sep 2023 08:53:47 +0000 (10:53 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 16 Oct 2023 09:47:47 +0000 (11:47 +0200)
commitb1ce7fe4c4368886db5b838ee53a253e60b5abbf
tree9cce5036ebafb364543a0350959f28ce498c728a
parenta87e3159d488a125838eb6b8694549afca5e03be
drm: renesas: shmobile: Wait for page flip when turning CRTC off

Turning a CRTC off will prevent a queued page flip from ever completing,
potentially confusing userspace.  Wait for queued page flips to complete
before turning the CRTC off to avoid this.

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/c97d5859c43fa36043c61de28d67688ebe345092.1694767209.git.geert+renesas@glider.be
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.h