aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-05-23 21:54:42 -0400
committerBen Skeggs <bskeggs@redhat.com>2011-06-23 01:57:03 -0400
commit068da16198ad09343b0c3647d26f81683921bc84 (patch)
treed916e102a5855256af23b71296a47b79051ef4a9 /drivers/gpu/drm
parent310ff414b32e66d832307bedd99ba75908e4e36d (diff)
drm/nvc0/fifo: fix typos in unload_context
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/nouveau/nvc0_fifo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_fifo.c b/drivers/gpu/drm/nouveau/nvc0_fifo.c
index fb4f5943e01b..6f9f341c3e86 100644
--- a/drivers/gpu/drm/nouveau/nvc0_fifo.c
+++ b/drivers/gpu/drm/nouveau/nvc0_fifo.c
@@ -210,10 +210,10 @@ nvc0_fifo_unload_context(struct drm_device *dev)
210 int i; 210 int i;
211 211
212 for (i = 0; i < 128; i++) { 212 for (i = 0; i < 128; i++) {
213 if (!(nv_rd32(dev, 0x003004 + (i * 4)) & 1)) 213 if (!(nv_rd32(dev, 0x003004 + (i * 8)) & 1))
214 continue; 214 continue;
215 215
216 nv_mask(dev, 0x003004 + (i * 4), 0x00000001, 0x00000000); 216 nv_mask(dev, 0x003004 + (i * 8), 0x00000001, 0x00000000);
217 nv_wr32(dev, 0x002634, i); 217 nv_wr32(dev, 0x002634, i);
218 if (!nv_wait(dev, 0x002634, 0xffffffff, i)) { 218 if (!nv_wait(dev, 0x002634, 0xffffffff, i)) {
219 NV_INFO(dev, "PFIFO: kick ch %d failed: 0x%08x\n", 219 NV_INFO(dev, "PFIFO: kick ch %d failed: 0x%08x\n",