drm/vc4: Fix race between page flip completion event and clean-up
authorDerek Foreman <derekf@osg.samsung.com>
Thu, 24 Nov 2016 18:11:55 +0000 (12:11 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:43:39 +0000 (12:43 +0100)
commit6b3306706733cc98bf14e30ff54fa9084b76cd55
treec8b5e8895c3a1e1f76ef038cf6075d9b2b7f040d
parentf4d40cfd61ea6e99f965576d19b76b42fd371365
drm/vc4: Fix race between page flip completion event and clean-up

commit 26fc78f6fef39b9d7a15def5e7e9826ff68303f4 upstream.

There was a small window where a userspace program could submit
a pageflip after receiving a pageflip completion event yet still
receive EBUSY.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Cc: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_kms.c