drm/amdkfd: Add CONFIG_HSA_AMD_SVM
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 29 Mar 2021 22:49:12 +0000 (18:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:50:35 +0000 (21:50 -0400)
commit4ab159d2547c26b34a4ff4770598b72660da1461
tree7ebed7e4a926a030f93272d87e3532a376a78871
parent4c166eb95decf03cfee42d03b42145513a15554a
drm/amdkfd: Add CONFIG_HSA_AMD_SVM

Control whether to build SVM support into amdgpu with a Kconfig option.
This makes it easier to disable it in production kernels if this new
feature causes problems in production environments.

Use "depends on" instead of "select" for DEVICE_PRIVATE, as is
recommended for visible options.

Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/Kconfig
drivers/gpu/drm/amd/amdkfd/Makefile
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_migrate.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.h