drm/vc4: Fix sending of page flip completion events in FKMS mode.
authorEric Anholt <eric@anholt.net>
Thu, 2 Feb 2017 17:42:18 +0000 (09:42 -0800)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:43 +0000 (16:32 +0100)
commitb237a7a6fb9192de1a8c29bd62c0bd78a1da1d2c
tree5c6a254052457d625dbf9684071b64fcd9aafd86
parente3d40cf54528b38921660e7becb78f39e3d23402
drm/vc4: Fix sending of page flip completion events in FKMS mode.

In the rewrite of vc4_crtc.c for fkms, I dropped the part of the
CRTC's atomic flush handler that moved the completion event from the
proposed atomic state change to the CRTC's current state.  That meant
that when full screen pageflipping happened (glxgears -fullscreen in
X, compton, por weston), the app would end up blocked firever waiting
to draw its next frame.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_firmware_kms.c