Kconfig 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # SPDX-License-Identifier: MIT
  2. #
  3. # Heterogeneous system architecture configuration
  4. #
  5. config HSA_AMD
  6. bool "HSA kernel driver for AMD GPU devices"
  7. depends on DRM_AMDGPU && (X86_64 || ARM64 || PPC64)
  8. imply AMD_IOMMU_V2 if X86_64
  9. select HMM_MIRROR
  10. select MMU_NOTIFIER
  11. select DRM_AMDGPU_USERPTR
  12. help
  13. Enable this if you want to use HSA features on AMD GPU devices.
  14. config HSA_AMD_SVM
  15. bool "Enable HMM-based shared virtual memory manager"
  16. depends on HSA_AMD && DEVICE_PRIVATE
  17. default y
  18. select HMM_MIRROR
  19. select MMU_NOTIFIER
  20. help
  21. Enable this to use unified memory and managed memory in HIP. This
  22. memory manager supports two modes of operation. One based on
  23. preemptions and one based on page faults. To enable page fault
  24. based memory management on most GFXv9 GPUs, set the module
  25. parameter amdgpu.noretry=0.
  26. config HSA_AMD_P2P
  27. bool "HSA kernel driver support for peer-to-peer for AMD GPU devices"
  28. depends on HSA_AMD && PCI_P2PDMA && DMABUF_MOVE_NOTIFY
  29. help
  30. Enable peer-to-peer (P2P) communication between AMD GPUs over
  31. the PCIe bus. This can improve performance of multi-GPU compute
  32. applications and libraries by enabling GPUs to access data directly
  33. in peer GPUs' memory without intermediate copies in system memory.
  34. This P2P feature is only enabled on compatible chipsets, and between
  35. GPUs with large memory BARs that expose the entire VRAM in PCIe bus
  36. address space within the physical address limits of the GPUs.