drm/nouveau: nvkm/vmm: implement raw ops to manage uvmm
The new VM_BIND UAPI uses the DRM GPU VA manager to manage the VA space. Hence, we a need a way to manipulate the MMUs page tables without going through the internal range allocator implemented by nvkm/vmm. This patch adds a raw interface for nvkm/vmm to pass the resposibility for managing the address space and the corresponding map/unmap/sparse operations to the upper layers. Reviewed-by:Dave Airlie <airlied@redhat.com> Signed-off-by:
Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230804182406.5222-11-dakr@redhat.com
Showing
- drivers/gpu/drm/nouveau/include/nvif/if000c.h 25 additions, 1 deletiondrivers/gpu/drm/nouveau/include/nvif/if000c.h
- drivers/gpu/drm/nouveau/include/nvif/vmm.h 17 additions, 2 deletionsdrivers/gpu/drm/nouveau/include/nvif/vmm.h
- drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h 19 additions, 1 deletiondrivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h
- drivers/gpu/drm/nouveau/nouveau_svm.c 1 addition, 1 deletiondrivers/gpu/drm/nouveau/nouveau_svm.c
- drivers/gpu/drm/nouveau/nouveau_vmm.c 2 additions, 2 deletionsdrivers/gpu/drm/nouveau/nouveau_vmm.c
- drivers/gpu/drm/nouveau/nvif/vmm.c 97 additions, 3 deletionsdrivers/gpu/drm/nouveau/nvif/vmm.c
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c 195 additions, 18 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c 152 additions, 45 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h 25 additions, 0 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c 9 additions, 7 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c 9 additions, 7 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgp100.c
- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c 15 additions, 12 deletionsdrivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c
Please register or sign in to comment