drm/nouveau: uvmm: remove dedicated VM pointer from VMAs
authorDanilo Krummrich <dakr@redhat.com>
Mon, 7 Aug 2023 16:32:26 +0000 (18:32 +0200)
committerDanilo Krummrich <dakr@redhat.com>
Tue, 8 Aug 2023 02:47:19 +0000 (04:47 +0200)
commita3540b46e92549092a9a4f70197ac6b95a0d4e71
treef75aaf3877384d7f165a9727bceef8e8b42b3b99
parent3cbc772107af4d57a2e2a7eb7fe711c334fd008a
drm/nouveau: uvmm: remove dedicated VM pointer from VMAs

VMAs can find their corresponding VM through their embedded struct
drm_gpuva which already carries a pointer to a struct drm_gpuva_manager
which the VM is based on. Hence, remove the struct nouveau_uvmm pointer
from struct nouveau_uvma to save a couple of bytes per mapping.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230807163238.2091-6-dakr@redhat.com
drivers/gpu/drm/nouveau/nouveau_uvmm.c
drivers/gpu/drm/nouveau/nouveau_uvmm.h