drm/nv50: prevent (IB_PUT == IB_GET) for occurring unless idle
authorBen Skeggs <bskeggs@redhat.com>
Wed, 29 Sep 2010 23:09:42 +0000 (09:09 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 4 Oct 2010 23:58:47 +0000 (09:58 +1000)
commit62841ab726def838472dfaaee571a0d30a2ce1e0
tree85bf5324d0235c96f1bb65db68a79217dae305ad
parentcd2fb2e9e0a6a3273d353b18e4bdd21cc0482724
drm/nv50: prevent (IB_PUT == IB_GET) for occurring unless idle

Should fix a DMA race condition I've never seen myself, but could be
the culprit in some random hangs that have been reported.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_dma.c