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)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 10 Jun 2014 06:08:09 +0000 (16:08 +1000)
commitaf4870e406126b7ac0ae7c7ce5751f25ebe60f28
tree07629acfa493c9b2342db28a73b083f19cf6e7aa
parentdcfb1009df3b4ad8d2e0779dd45b438629d6858a
drm/nouveau/kms/nv04-nv40: fix pageflip events via special case.

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>
Cc: <stable@vger.kernel.org> # 3.13+
drivers/gpu/drm/nouveau/nouveau_display.c