summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoel Fernandes <joelagnelf@nvidia.com>2026-02-06 01:52:38 +0300
committerDave Airlie <airlied@redhat.com>2026-02-06 04:34:02 +0300
commit4a9671a03f2be13acde0cb15c5208767a9cc56e4 (patch)
tree19c9b7622e3c351c7318861f6f529d1ccb66ed0f /include
parent779ec12c85c9e4547519e3903a371a3b26a289de (diff)
downloadlinux-4a9671a03f2be13acde0cb15c5208767a9cc56e4.tar.xz
gpu: Move DRM buddy allocator one level up (part one)
Move the DRM buddy allocator one level up so that it can be used by GPU drivers (example, nova-core) that have usecases other than DRM (such as VFIO vGPU support). Modify the API, structures and Kconfigs to use "gpu_buddy" terminology. Adapt the drivers and tests to use the new API. The commit cannot be split due to bisectability, however no functional change is intended. Verified by running K-UNIT tests and build tested various configurations. Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com> Reviewed-by: Dave Airlie <airlied@redhat.com> [airlied: I've split this into two so git can find copies easier. I've also just nuked drm_random library, that stuff needs to be done elsewhere and only the buddy tests seem to be using it]. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/gpu_buddy.h (renamed from include/drm/drm_buddy.h)0
1 files changed, 0 insertions, 0 deletions
diff --git a/include/drm/drm_buddy.h b/include/linux/gpu_buddy.h
index b909fa8f810a..b909fa8f810a 100644
--- a/include/drm/drm_buddy.h
+++ b/include/linux/gpu_buddy.h