drm/nouveau: protect channel create/destroy and irq handler with a spinlock
authorMaarten Maathuis <madman2003@gmail.com>
Mon, 1 Feb 2010 19:58:27 +0000 (20:58 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 25 Feb 2010 05:07:53 +0000 (15:07 +1000)
commitff9e5279b14dc024599cc705ee199dadb94e90a3
tree4881498b0c5f0defdc14890783249b0514a8afde
parent6c42966768b0254f465a8f451333795283f53d22
drm/nouveau: protect channel create/destroy and irq handler with a spinlock

The nv50 pgraph handler (for example) could reenable pgraph fifo access
and that would be bad when pgraph context is being unloaded (we need the
guarantee a ctxprog isn't running).

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_irq.c
drivers/gpu/drm/nouveau/nouveau_state.c
drivers/gpu/drm/nouveau/nv04_fifo.c
drivers/gpu/drm/nouveau/nv40_fifo.c
drivers/gpu/drm/nouveau/nv50_fifo.c