drm/nouveau/disp/nv04-nv40: abort scanoutpos query on vga analog.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Wed, 28 May 2014 03:22:18 +0000 (05:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:18:24 +0000 (11:18 -0700)
commit4091d550aa42321436e3e995baf0b410dd30aaaa
tree8967d564c88e3196525b603fdbfd3abe5269aafc
parent2f47f0fabeb6a00537de011cd4d3aacdf3e8cadc
drm/nouveau/disp/nv04-nv40: abort scanoutpos query on vga analog.

commit e291af3f2259e9e105dfd72416fd5796513791a4 upstream.

nv04_disp_scanoutpos() must abort to trigger simple timestamping
fallback if vtotal/htotal regs return zero. This happens if the
output isn't a digital output, but a vga analog output, as the
regs don't get initialized in that case.

Fixes timestamping failure on nv-40 and earlier with vga output.

Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/core/engine/disp/nv04.c