Kconfig 1.4 KB

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