Explorar el Código

drm/nvc0/fifo: fix typos in unload_context

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Ben Skeggs hace 14 años
padre
commit
068da16198
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      drivers/gpu/drm/nouveau/nvc0_fifo.c

+ 2 - 2
drivers/gpu/drm/nouveau/nvc0_fifo.c

@@ -210,10 +210,10 @@ nvc0_fifo_unload_context(struct drm_device *dev)
 	int i;
 	int i;
 
 
 	for (i = 0; i < 128; i++) {
 	for (i = 0; i < 128; i++) {
-		if (!(nv_rd32(dev, 0x003004 + (i * 4)) & 1))
+		if (!(nv_rd32(dev, 0x003004 + (i * 8)) & 1))
 			continue;
 			continue;
 
 
-		nv_mask(dev, 0x003004 + (i * 4), 0x00000001, 0x00000000);
+		nv_mask(dev, 0x003004 + (i * 8), 0x00000001, 0x00000000);
 		nv_wr32(dev, 0x002634, i);
 		nv_wr32(dev, 0x002634, i);
 		if (!nv_wait(dev, 0x002634, 0xffffffff, i)) {
 		if (!nv_wait(dev, 0x002634, 0xffffffff, i)) {
 			NV_INFO(dev, "PFIFO: kick ch %d failed: 0x%08x\n",
 			NV_INFO(dev, "PFIFO: kick ch %d failed: 0x%08x\n",