Commit 92b4eaaf authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau: no need to create ctxdma for push buffers on fermi and up

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 11e451e7
......@@ -163,12 +163,15 @@ nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device,
return ret;
}
chan->push.addr = chan->push.vma->addr;
if (device->info.family >= NV_DEVICE_INFO_V0_FERMI)
return 0;
args.target = NV_DMA_V0_TARGET_VM;
args.access = NV_DMA_V0_ACCESS_VM;
args.start = 0;
args.limit = cli->vmm.vmm.limit - 1;
chan->push.addr = chan->push.vma->addr;
} else
if (chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) {
if (device->info.family == NV_DEVICE_INFO_V0_TNT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment