xref: /openbmc/linux/drivers/gpu/drm/amd/amdkfd/Kconfig (revision 6b342707)
1# SPDX-License-Identifier: MIT
2#
3# Heterogeneous system architecture configuration
4#
5
6config HSA_AMD
7	bool "HSA kernel driver for AMD GPU devices"
8	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
9	imply AMD_IOMMU_V2 if X86_64
10	select HMM_MIRROR
11	select MMU_NOTIFIER
12	select DRM_AMDGPU_USERPTR
13	help
14	  Enable this if you want to use HSA features on AMD GPU devices.
15
16config HSA_AMD_SVM
17	bool "Enable HMM-based shared virtual memory manager"
18	depends on HSA_AMD && DEVICE_PRIVATE
19	default y
20	select HMM_MIRROR
21	select MMU_NOTIFIER
22	help
23	  Enable this to use unified memory and managed memory in HIP. This
24	  memory manager supports two modes of operation. One based on
25	  preemptions and one based on page faults. To enable page fault
26	  based memory management on most GFXv9 GPUs, set the module
27	  parameter amdgpu.noretry=0.
28