]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: nv84+: fix fence context seqno's
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 22 Sep 2014 09:08:48 +0000 (11:08 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Sep 2014 05:49:06 +0000 (15:49 +1000)
commit46303045309bbdfa15e0b7ddc9ec478a08eeb48d
treefcbf9c7ba8033e56585a4c8f977fe09a1a21ba36
parentaa3adeeaf4d81efa68ed42c96b66986a17433f5d
drm/nouveau: nv84+: fix fence context seqno's

This fixes a regression introduced by "drm/nouveau: rework to new fence interface"
(commit 3a2c3af7de37f01).

The fence sequence should not be reset after creation, the old value is used instead.
On destruction the final value is written, to prevent another source of accidental
wraparound in case of a channel being destroyed after a hang, and unblocking any other
channel that may wait on the about-to-be-deleted channel to signal.

I'm nothing if not optimistic about any hope of recovery from that. ;-)

Reported-by: Ted Percival <ted@tedp.id.au>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Tested-by: Ted Percival <ted@tedp.id.au>
Acked-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nv84_fence.c