drm/vc4: Fix vblank timestamping for firmwarekms.
authorEric Anholt <eric@anholt.net>
Tue, 2 Apr 2019 20:29:00 +0000 (13:29 -0700)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:32:58 +0000 (16:32 +0100)
commitb2f105428f6d864f562274e6edcebaf3fc455e1d
tree631bf23e5304981cd9daad740b5657ee523dcb07
parent63e0a1b6985fccdafe50dfbeb22b5b835853fed2
drm/vc4: Fix vblank timestamping for firmwarekms.

The core doesn't expect a false return from the scanoutpos function in
normal usage, so we were doing the precise vblank timestamping path
and thus "immediate" vblank disables (even though firmwarekms can't
actually disable vblanks interrupts, sigh), and the kernel would get
confused when getting timestamp info when also turning vblanks back
on.

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