Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250665
b: refs/heads/master
c: 7a5c23d
h: refs/heads/master
i:
  250663: bf624bf
v: v3
  • Loading branch information
Ben Skeggs committed May 16, 2011
1 parent 8ac8a92 commit 5dec88c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe799114e2f0de37c3ddf900d15fa5e85936deba
refs/heads/master: 7a5c23de36002d611609650e49ef0ebd46f5c141
16 changes: 16 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nvc0_fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,22 @@ nvc0_fifo_load_context(struct nouveau_channel *chan)
int
nvc0_fifo_unload_context(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
int i;

for (i = 0; i < 128; i++) {
if (!(nv_rd32(dev, 0x003004 + (i * 4)) & 1))
continue;

nv_mask(dev, 0x003004 + (i * 4), 0x00000001, 0x00000000);
nv_wr32(dev, 0x002634, i);
if (!nv_wait(dev, 0x002634, 0xffffffff, i)) {
NV_INFO(dev, "PFIFO: kick ch %d failed: 0x%08x\n",
i, nv_rd32(dev, 0x002634));
return -EBUSY;
}
}

return 0;
}

Expand Down

0 comments on commit 5dec88c

Please sign in to comment.