aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_dma.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-02-15 18:10:20 -0500
committerBen Skeggs <bskeggs@redhat.com>2011-02-24 15:45:37 -0500
commita67047883410ee37d27806bb8415a84673934b4f (patch)
tree03dfd0e94e4a78d54dc171dbdccbb3982eefd7e1 /drivers/gpu/drm/nouveau/nouveau_dma.c
parentd550c41e4ff11fe69b5f92868157253d27937d1f (diff)
drm/nv50: simplify bo moves now that they're all through the vm
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dma.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_dma.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c b/drivers/gpu/drm/nouveau/nouveau_dma.c
index 65699bfaaaea..1ef39be996ed 100644
--- a/drivers/gpu/drm/nouveau/nouveau_dma.c
+++ b/drivers/gpu/drm/nouveau/nouveau_dma.c
@@ -96,13 +96,15 @@ nouveau_dma_init(struct nouveau_channel *chan)
96 OUT_RING(chan, 0); 96 OUT_RING(chan, 0);
97 97
98 /* Initialise NV_MEMORY_TO_MEMORY_FORMAT */ 98 /* Initialise NV_MEMORY_TO_MEMORY_FORMAT */
99 ret = RING_SPACE(chan, 4); 99 ret = RING_SPACE(chan, 6);
100 if (ret) 100 if (ret)
101 return ret; 101 return ret;
102 BEGIN_RING(chan, NvSubM2MF, NV_MEMORY_TO_MEMORY_FORMAT_NAME, 1); 102 BEGIN_RING(chan, NvSubM2MF, NV_MEMORY_TO_MEMORY_FORMAT_NAME, 1);
103 OUT_RING(chan, NvM2MF); 103 OUT_RING (chan, NvM2MF);
104 BEGIN_RING(chan, NvSubM2MF, NV_MEMORY_TO_MEMORY_FORMAT_DMA_NOTIFY, 1); 104 BEGIN_RING(chan, NvSubM2MF, NV_MEMORY_TO_MEMORY_FORMAT_DMA_NOTIFY, 3);
105 OUT_RING(chan, NvNotify0); 105 OUT_RING (chan, NvNotify0);
106 OUT_RING (chan, chan->vram_handle);
107 OUT_RING (chan, chan->gart_handle);
106 108
107 /* Sit back and pray the channel works.. */ 109 /* Sit back and pray the channel works.. */
108 FIRE_RING(chan); 110 FIRE_RING(chan);