]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteeee045ef80b7ddfb99b39765d8a56924873ddab
tree5c56d95fe5f958b960c0e4bd8aba536771975bfa
parent6f4b1c5f35fd1324166e2c8276372acd0a193600
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