drm/nouveau: separately allocate struct nouveau_uvmm
authorDanilo Krummrich <dakr@redhat.com>
Wed, 8 Nov 2023 00:12:38 +0000 (01:12 +0100)
committerDanilo Krummrich <dakr@redhat.com>
Mon, 13 Nov 2023 17:19:06 +0000 (18:19 +0100)
commit266f7618e761c8a6aa89dbfe43cda1b69cdbbf14
tree7a778482487ec9ee429f9c74b81da27e584da631
parent809ef191ee600e8bcbe2f8a769e00d2d54c16094
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
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_uvmm.c
drivers/gpu/drm/nouveau/nouveau_uvmm.h