drm/nouveau: Use the software object for fencing.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 26 Dec 2009 01:09:36 +0000 (02:09 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 11 Jan 2010 04:41:12 +0000 (14:41 +1000)
commita5027ccd3c1abe190d2b84a2d7e40d5f099e48a7
tree5c56d95fe5f958b960c0e4bd8aba536771975bfa
parentca4362adb4c01807dfcf3f2b3152a7ee36f0d1ca
drm/nouveau: Use the software object for fencing.

This should avoid a race condition on nv0x, if we're doing it with
actual PGRAPH objects and a there's a fence within the FIFO DMA fetch
area when a context switch kicks in.

In that case we get an ILLEGAL_MTHD interrupt as expected, but the
values in PGRAPH_TRAPPED_ADDR aren't calculated correctly and they're
almost useless (e.g. you can see ILLEGAL_MTHDs for the now inactive
channel, with a wrong offset/data pair).

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
drivers/gpu/drm/nouveau/nouveau_fence.c
drivers/gpu/drm/nouveau/nv04_graph.c