drm/nouveau: separately allocate struct nouveau_uvmm
Allocate struct nouveau_uvmm separately in preparation for subsequent commits introducing reference counting for struct drm_gpuvm. While at it, get rid of nouveau_uvmm_init() as indirection of nouveau_uvmm_ioctl_vm_init() and perform some minor cleanups. Reviewed-by:Dave Airlie <airlied@redhat.com> Signed-off-by:
Danilo Krummrich <dakr@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231108001259.15123-9-dakr@redhat.com
Showing
- drivers/gpu/drm/nouveau/nouveau_drm.c 4 additions, 1 deletiondrivers/gpu/drm/nouveau/nouveau_drm.c
- drivers/gpu/drm/nouveau/nouveau_drv.h 5 additions, 5 deletionsdrivers/gpu/drm/nouveau/nouveau_drv.h
- drivers/gpu/drm/nouveau/nouveau_uvmm.c 31 additions, 32 deletionsdrivers/gpu/drm/nouveau/nouveau_uvmm.c
- drivers/gpu/drm/nouveau/nouveau_uvmm.h 0 additions, 4 deletionsdrivers/gpu/drm/nouveau/nouveau_uvmm.h
Loading
Please register or sign in to comment