]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:21:25 +0000 (11:21 -0700)
commit45780fdb970e49d7126c249361490952bfbb1dab
tree05fb29331f212351e449f5dabca45a73754b0909
parent7e1c10796cbff75c6e8cc6699469aefe70708c0d
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