Commit fe7acaa7 authored by Danilo Krummrich's avatar Danilo Krummrich

drm/gpuvm: allow building as module

Currently, the DRM GPUVM does not have any core dependencies preventing
a module build.

Also, new features from subsequent patches require helpers (namely
drm_exec) which can be built as module.
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarDanilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230920144343.64830-3-dakr@redhat.com
parent f72c2db4
...@@ -216,6 +216,13 @@ config DRM_EXEC ...@@ -216,6 +216,13 @@ config DRM_EXEC
help help
Execution context for command submissions Execution context for command submissions
config DRM_GPUVM
tristate
depends on DRM
help
GPU-VM representation providing helpers to manage a GPUs virtual
address space
config DRM_BUDDY config DRM_BUDDY
tristate tristate
depends on DRM depends on DRM
......
...@@ -45,7 +45,6 @@ drm-y := \ ...@@ -45,7 +45,6 @@ drm-y := \
drm_vblank.o \ drm_vblank.o \
drm_vblank_work.o \ drm_vblank_work.o \
drm_vma_manager.o \ drm_vma_manager.o \
drm_gpuvm.o \
drm_writeback.o drm_writeback.o
drm-$(CONFIG_DRM_LEGACY) += \ drm-$(CONFIG_DRM_LEGACY) += \
drm_agpsupport.o \ drm_agpsupport.o \
...@@ -81,6 +80,7 @@ obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o ...@@ -81,6 +80,7 @@ obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
# #
# #
obj-$(CONFIG_DRM_EXEC) += drm_exec.o obj-$(CONFIG_DRM_EXEC) += drm_exec.o
obj-$(CONFIG_DRM_GPUVM) += drm_gpuvm.o
obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o
......
...@@ -1723,3 +1723,6 @@ drm_gpuva_ops_free(struct drm_gpuvm *gpuvm, ...@@ -1723,3 +1723,6 @@ drm_gpuva_ops_free(struct drm_gpuvm *gpuvm,
kfree(ops); kfree(ops);
} }
EXPORT_SYMBOL_GPL(drm_gpuva_ops_free); EXPORT_SYMBOL_GPL(drm_gpuva_ops_free);
MODULE_DESCRIPTION("DRM GPUVM");
MODULE_LICENSE("GPL");
...@@ -11,6 +11,7 @@ config DRM_NOUVEAU ...@@ -11,6 +11,7 @@ config DRM_NOUVEAU
select DRM_TTM select DRM_TTM
select DRM_TTM_HELPER select DRM_TTM_HELPER
select DRM_EXEC select DRM_EXEC
select DRM_GPUVM
select DRM_SCHED select DRM_SCHED
select I2C select I2C
select I2C_ALGOBIT select I2C_ALGOBIT
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment