Skip to content

Commit 5be73b6

Browse files
Jérôme GlisseBen Skeggs
authored andcommitted
drm/nouveau/dmem: device memory helpers for SVM
Device memory can be use in SVM, in which case we do not have any of the existing buffer object. This commit add infrastructure to allow use of device memory without nouveau_bo. Again this is a temporary solution until a rework of GPU memory management. Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
1 parent eeaf06a commit 5be73b6

File tree

7 files changed

+983
-0
lines changed

7 files changed

+983
-0
lines changed

drivers/gpu/drm/nouveau/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ nouveau-y += nouveau_vga.o
3131
nouveau-y += nouveau_bo.o
3232
nouveau-y += nouveau_gem.o
3333
nouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_svm.o
34+
nouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_dmem.o
3435
nouveau-y += nouveau_mem.o
3536
nouveau-y += nouveau_prime.o
3637
nouveau-y += nouveau_sgdma.o

drivers/gpu/drm/nouveau/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ config DRM_NOUVEAU_SVM
7878
depends on DRM_NOUVEAU
7979
depends on STAGING
8080
select HMM_MIRROR
81+
select DEVICE_PRIVATE
8182
default n
8283
help
8384
Say Y here if you want to enable experimental support for

0 commit comments

Comments
 (0)