]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c
drm/nouveau/mmu: remove old vmm frontend
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / nouveau / nvkm / subdev / instmem / gk20a.c
index 2f60f0d18aeb15d3ba715eb7422c6d515745ce55..985f2990ab0dda4c8f7d0cbc6610f95d13286fb5 100644 (file)
@@ -44,9 +44,7 @@
 #include "priv.h"
 
 #include <core/memory.h>
-#include <core/mm.h>
 #include <core/tegra.h>
-#include <subdev/fb.h>
 #include <subdev/ltc.h>
 #include <subdev/mmu.h>
 
@@ -290,15 +288,6 @@ gk20a_instobj_map(struct nvkm_memory *memory, u64 offset, struct nvkm_vmm *vmm,
                .mem = node->mn,
        };
 
-       if (vma->vm) {
-               struct nvkm_mem mem = {
-                       .mem = node->mn,
-                       .memory = &node->memory,
-               };
-               nvkm_vm_map_at(vma, 0, &mem);
-               return 0;
-       }
-
        return nvkm_vmm_map(vmm, vma, argv, argc, &map);
 }