drm/nouveau/kms/nv04-nv40: fix pageflip events via special case.
authorMario Kleiner <mario.kleiner.de@gmail.com>
Mon, 12 May 2014 22:42:08 +0000 (00:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2014 18:18:24 +0000 (11:18 -0700)
commit2f47f0fabeb6a00537de011cd4d3aacdf3e8cadc
treed8fcfadae52fb2fdd7091ddbeac03e8f8a3dea28
parent2ef209f2c98db4975aed7a2aa560040b6e263099
drm/nouveau/kms/nv04-nv40: fix pageflip events via special case.

commit af4870e406126b7ac0ae7c7ce5751f25ebe60f28 upstream.

Cards with nv04 display engine can't reliably use vblank
counts and timestamps computed via drm_handle_vblank(), as
the function gets invoked after sending the pageflip events.

Fix this by defaulting to the old crtcid = -1 fallback path
on <= NV-50 cards, and only using the precise path on NV-50
and later.

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/nouveau_display.c