xref: /openbmc/linux/drivers/gpu/drm/amd/amdkfd/Kconfig (revision 4ab159d2547c26b34a4ff4770598b72660da1461)
1bd95c144SAlex Deucher# SPDX-License-Identifier: MIT
24a488a7aSOded Gabbay#
3b4bc9d95SColin Ian King# Heterogeneous system architecture configuration
44a488a7aSOded Gabbay#
54a488a7aSOded Gabbay
64a488a7aSOded Gabbayconfig HSA_AMD
704d5e276SAmber Lin	bool "HSA kernel driver for AMD GPU devices"
8c38402feSTimothy Pearson	depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
9d1c234e2SFelix Kuehling	imply AMD_IOMMU_V2 if X86_64
1019fef554SFelix Kuehling	select HMM_MIRROR
117bbc0b95SRandy Dunlap	select MMU_NOTIFIER
1219fef554SFelix Kuehling	select DRM_AMDGPU_USERPTR
134a488a7aSOded Gabbay	help
144a488a7aSOded Gabbay	  Enable this if you want to use HSA features on AMD GPU devices.
15*4ab159d2SFelix Kuehling
16*4ab159d2SFelix Kuehlingconfig HSA_AMD_SVM
17*4ab159d2SFelix Kuehling	bool "Enable HMM-based shared virtual memory manager"
18*4ab159d2SFelix Kuehling	depends on HSA_AMD && DEVICE_PRIVATE
19*4ab159d2SFelix Kuehling	default y
20*4ab159d2SFelix Kuehling	select HMM_MIRROR
21*4ab159d2SFelix Kuehling	select MMU_NOTIFIER
22*4ab159d2SFelix Kuehling	help
23*4ab159d2SFelix Kuehling	  Enable this to use unified memory and managed memory in HIP. This
24*4ab159d2SFelix Kuehling	  memory manager supports two modes of operation. One based on
25*4ab159d2SFelix Kuehling	  preemptions and one based on page faults. To enable page fault
26*4ab159d2SFelix Kuehling	  based memory management on most GFXv9 GPUs, set the module
27*4ab159d2SFelix Kuehling	  parameter amdgpu.noretry=0.
28