2019-12-11 10:09:03 -05:00
|
|
|
# SPDX-License-Identifier: MIT
|
2014-07-16 21:08:55 +03:00
|
|
|
#
|
2020-12-15 10:56:51 +00:00
|
|
|
# Heterogeneous system architecture configuration
|
2014-07-16 21:08:55 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
config HSA_AMD
|
2018-08-22 16:48:50 -04:00
|
|
|
bool "HSA kernel driver for AMD GPU devices"
|
2019-11-24 13:15:16 -06:00
|
|
|
depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
|
2019-01-02 14:52:13 -05:00
|
|
|
imply AMD_IOMMU_V2 if X86_64
|
2021-01-15 13:21:18 -05:00
|
|
|
select HMM_MIRROR
|
2018-04-13 19:49:28 -07:00
|
|
|
select MMU_NOTIFIER
|
2021-01-15 13:21:18 -05:00
|
|
|
select DRM_AMDGPU_USERPTR
|
2014-07-16 21:08:55 +03:00
|
|
|
help
|
|
|
|
|
Enable this if you want to use HSA features on AMD GPU devices.
|
2021-03-29 18:49:12 -04:00
|
|
|
|
|
|
|
|
config HSA_AMD_SVM
|
|
|
|
|
bool "Enable HMM-based shared virtual memory manager"
|
|
|
|
|
depends on HSA_AMD && DEVICE_PRIVATE
|
|
|
|
|
default y
|
|
|
|
|
select HMM_MIRROR
|
|
|
|
|
select MMU_NOTIFIER
|
|
|
|
|
help
|
|
|
|
|
Enable this to use unified memory and managed memory in HIP. This
|
|
|
|
|
memory manager supports two modes of operation. One based on
|
|
|
|
|
preemptions and one based on page faults. To enable page fault
|
|
|
|
|
based memory management on most GFXv9 GPUs, set the module
|
|
|
|
|
parameter amdgpu.noretry=0.
|