Skip to content

Commit

Permalink
drm/nv50: prevent (IB_PUT == IB_GET) for occurring unless idle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Skeggs committed Oct 4, 2010
1 parent cd2fb2e commit 62841ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ nv50_dma_push_wait(struct nouveau_channel *chan, int count)

chan->dma.ib_free = get - chan->dma.ib_put;
if (chan->dma.ib_free <= 0)
chan->dma.ib_free += chan->dma.ib_max + 1;
chan->dma.ib_free += chan->dma.ib_max;
}

return 0;
Expand Down

0 comments on commit 62841ab

Please sign in to comment.