From 54aa902c3a3e7c3c427450b54271fb92190625e4 Mon Sep 17 00:00:00 2001 From: Anthony Rabbito Date: Sun, 26 Dec 2021 10:44:05 -0500 Subject: [PATCH] feat: enable amdgpu in kernel Enable amdgpu in the kernel in order to support https://github.com/RadeonOpenCompute/k8s-device-plugin Considering i915 support is present there should be no reason why AMDGPU isn't enabled? Signed-off-by: Anthony Rabbito Signed-off-by: Andrey Smirnov --- kernel/build/config-amd64 | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/kernel/build/config-amd64 b/kernel/build/config-amd64 index 860b33b93..0a9397ad3 100644 --- a/kernel/build/config-amd64 +++ b/kernel/build/config-amd64 @@ -939,6 +939,7 @@ CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ZONE_DMA=y CONFIG_ZONE_DMA32=y +CONFIG_HMM_MIRROR=y CONFIG_VMAP_PFN=y CONFIG_ARCH_USES_HIGH_VMA_FLAGS=y CONFIG_ARCH_HAS_PKEYS=y @@ -3694,7 +3695,9 @@ CONFIG_DRM_FBDEV_OVERALLOC=100 # CONFIG_DRM_LOAD_EDID_FIRMWARE is not set # CONFIG_DRM_DP_CEC is not set CONFIG_DRM_TTM=y +CONFIG_DRM_TTM_HELPER=m CONFIG_DRM_GEM_SHMEM_HELPER=y +CONFIG_DRM_SCHED=m # # I2C encoder or helper chips @@ -3711,7 +3714,28 @@ CONFIG_DRM_GEM_SHMEM_HELPER=y # end of ARM devices # CONFIG_DRM_RADEON is not set -# CONFIG_DRM_AMDGPU is not set +CONFIG_DRM_AMDGPU=m +CONFIG_DRM_AMDGPU_SI=y +CONFIG_DRM_AMDGPU_CIK=y +CONFIG_DRM_AMDGPU_USERPTR=y + +# +# ACP (Audio CoProcessor) Configuration +# +# CONFIG_DRM_AMD_ACP is not set +# end of ACP (Audio CoProcessor) Configuration + +# +# Display Engine Configuration +# +CONFIG_DRM_AMD_DC=y +CONFIG_DRM_AMD_DC_DCN=y +# CONFIG_DRM_AMD_DC_HDCP is not set +# CONFIG_DRM_AMD_DC_SI is not set +# CONFIG_DRM_AMD_SECURE_DISPLAY is not set +# end of Display Engine Configuration + +# CONFIG_HSA_AMD is not set # CONFIG_DRM_NOUVEAU is not set CONFIG_DRM_I915=y CONFIG_DRM_I915_FORCE_PROBE=""