]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdkfd: Enable userptr support when KFD is enabled
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 15 Jan 2021 18:21:18 +0000 (13:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 Jan 2021 14:55:16 +0000 (09:55 -0500)
ROCm user mode depends on userptr support. Without it, KFD is basically
useless.

Make sure HSA_AMD selects the same options as DRM_AMDGPU_USERPTR to avoid
broken configurations where userptr gets enabled but its dependencies are
disabled.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/Kconfig

index e8fb10c41f16710e0383411e03e2b9539d526888..f02c938f75dad1b712a1f8a8818ef889bf2fc7c7 100644 (file)
@@ -7,6 +7,8 @@ config HSA_AMD
        bool "HSA kernel driver for AMD GPU devices"
        depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
        imply AMD_IOMMU_V2 if X86_64
+       select HMM_MIRROR
        select MMU_NOTIFIER
+       select DRM_AMDGPU_USERPTR
        help
          Enable this if you want to use HSA features on AMD GPU devices.