Enable CONFIG_DMABUF_MOVE_NOTIFY=y and CONFIG_HSA_AMD_P2P=y in the TrueNAS kernel

Version: TrueNAS 26.0.0-MASTER-20260902-020152, kernel 6.18.48-production+truenas
Hardware: 2x AMD Radeon AI PRO R9700 (gfx1201) on one host bridge, ASRock Rack GENOAD8X-2T/BCM (EPYC Genoa)

Problem: ROCm multi-GPU workloads cannot use peer-to-peer between the two cards.

Evidence:

  • dmesg on every ROCm process start:
    amdgpu 0000:83:00.0: Failed to map peer:0000:86:00.0 mem_domain:4 (and the reverse)
  • amd-smi topology: peer ACCESS DISABLED between the GPUs, link type PCIE, 2 hops
  • Both cards: 32G large BAR, 44-bit dma_mask_bits, same PCI root bus (pci0000:80),
    no ACS request-redirect set anywhere on the paths
  • Kernel config: CONFIG_HSA_AMD=y, CONFIG_PCI_P2PDMA=y,
    “# CONFIG_DMABUF_MOVE_NOTIFY is not set”, CONFIG_HSA_AMD_P2P absent
    (the amdgpu.pcie_p2p module parameter does not exist either)

Impact/User Story
Any truenas users that want to use multiple AMD GPUs for LLM server hosting. Who wants to pay Anthropic/OpenAI when they can self host, which is the spirit of TrueNAS.