OSDN Git Service

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)
commit19fef554bd3e9d530ba38d9e48ef6f791acaa81d
tree22927b6d537ab6a86cce3369116fc8d1e9c6674b
parente484de44b1ae626dd61e577cbc841606be5a7982
drm/amdkfd: Enable userptr support when KFD is enabled

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