summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:14 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:40:28 +1000
commit5444e770e3991ddb5a9583d622fc18bbf414b551 (patch)
tree819da72512a32e8668a95f846c94d2a417cb4c19 /drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c
parent3f532ef1e23395d7abb0eed316dd31123f87f448 (diff)
drm/nouveau/fifo: switch to gpuobj accessor macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c
index 2c38d6f36fe7..5a7b11f92684 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv10.c
@@ -86,16 +86,18 @@ nv10_fifo_chan_ctor(struct nvkm_object *parent,
nv_parent(chan)->context_attach = nv04_fifo_context_attach;
chan->ramfc = chan->base.chid * 32;
- nv_wo32(fifo->ramfc, chan->ramfc + 0x00, args->v0.offset);
- nv_wo32(fifo->ramfc, chan->ramfc + 0x04, args->v0.offset);
- nv_wo32(fifo->ramfc, chan->ramfc + 0x0c, chan->base.pushgpu->addr >> 4);
- nv_wo32(fifo->ramfc, chan->ramfc + 0x14,
+ nvkm_kmap(fifo->ramfc);
+ nvkm_wo32(fifo->ramfc, chan->ramfc + 0x00, args->v0.offset);
+ nvkm_wo32(fifo->ramfc, chan->ramfc + 0x04, args->v0.offset);
+ nvkm_wo32(fifo->ramfc, chan->ramfc + 0x0c, chan->base.pushgpu->addr >> 4);
+ nvkm_wo32(fifo->ramfc, chan->ramfc + 0x14,
NV_PFIFO_CACHE1_DMA_FETCH_TRIG_128_BYTES |
NV_PFIFO_CACHE1_DMA_FETCH_SIZE_128_BYTES |
#ifdef __BIG_ENDIAN
NV_PFIFO_CACHE1_BIG_ENDIAN |
#endif
NV_PFIFO_CACHE1_DMA_FETCH_MAX_REQS_8);
+ nvkm_done(fifo->ramfc);
return 0;
}