drm/nouveau: no need to create ctxdma for push buffers on fermi and up
authorBen Skeggs <bskeggs@redhat.com>
Tue, 8 May 2018 10:39:47 +0000 (20:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 18 May 2018 05:01:26 +0000 (15:01 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_chan.c

index 67950a5c56ce99aca526782e26384a61827c8c42..97900e9cfe3f56f87e80986916b5570319ddbe65 100644 (file)
@@ -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) {