]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/nouveau/uvmm: Prepare for larger pages
authorMary Guillemard <mary@mary.zone>
Mon, 10 Nov 2025 15:32:56 +0000 (16:32 +0100)
committerLyude Paul <lyude@redhat.com>
Wed, 12 Nov 2025 17:23:38 +0000 (12:23 -0500)
commit6d13495325930d6a5ccf53e150b6c3f61f4b9a63
tree7888a3537202d2273aee82930d59ac50e1f902d1
parent86db652fc22f5674ffe3b1f7c91c397c69d26d94
drm/nouveau/uvmm: Prepare for larger pages

Currently memory allocated by VM_BIND uAPI can only have a  granuality
matching PAGE_SIZE (4KiB in common case)

To have a better memory management and to allow big (64KiB) and huge
(2MiB) pages later in the series, we are now passing the page shift all
around the internals of UVMM.

Signed-off-by: Mary Guillemard <mary@mary.zone>
Co-developed-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com>
Signed-off-by: Mohamed Ahmed <mohamedahmedegypt2001@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: James Jones <jajones@nvidia.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20251110-nouveau-compv6-v6-1-83b05475f57c@mary.zone
drivers/gpu/drm/nouveau/nouveau_uvmm.c
drivers/gpu/drm/nouveau/nouveau_uvmm.h