]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Jun 2014 06:08:08 +0000 (16:08 +1000)
commite291af3f2259e9e105dfd72416fd5796513791a4
tree1b4c9a1f16d33f0840cf8312e6beeb8a877b10c8
parent56d237d2683bc0ba403148697260dd9499c40949
drm/nouveau/disp/nv04-nv40: abort scanoutpos query on vga analog.

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>
Cc: <stable@vger.kernel.org> # 3.14+
drivers/gpu/drm/nouveau/core/engine/disp/nv04.c