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>
Thu, 13 Jun 2019 10:54:28 +0000 (11:54 +0100)
commit6da63d9e4bd78b9db8fcf07c7322d0a92696f0b1
tree9627abac0d842f2e1b9b3be271fc14ee10c862e8
parentc8d87d2bc5b53c89174cff52cf045eb5e76547bc
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