Package: src:linux
Version: 7.3.3-1
Severity: wishlist
Dear Maintainer,
for forky please consider adding CONFIG_HSA_AMD_P2P=y to debian/config/amd64/config (next to CONFIG_PCI_P2PDMA=y, which the amd64 fragment already enables).
It enables GPU-to-GPU PCIe peer-to-peer DMA in the amdgpu driver (HSA/KFD). Without it, multi-GPU compute workloads (ROCm/HIP, RCCL, tensor-parallel inference/serving) silently fall back to host bounce-buffer copies between the cards: no /sys/module/amdgpu/parameters/pcie_p2p, no KFD p2p_links, rocm-smi --showtopoaccess reports no peer access, and there is no way to enable it at runtime (the check is compile-time in amdgpu_device_is_peer_accessible()).
Both dependencies are already enabled in the current config: CONFIG_HSA_AMD=y (debian/config/config) and CONFIG_PCI_P2PDMA=y (debian/config/amd64/config); DMABUF_MOVE_NOTIFY is built-in since 6.13.
Precedent: upstream x86_64_defconfig carries the option (AMD patch "Update defconfig with peer-to-peer configs", 2022), Ubuntu enables it (LP: #1987394 [1], "a config option AMD requested us to enable"), and third-party kernels (e.g. XanMod) ship it on.
Safety: inert on single-GPU systems (activates only when amdgpu finds a peer whose ReBAR is addressable by the requesting GPU). The upstream bug that broke the P2P addressability check under IOMMU DMA remapping ("drm/amdgpu: Take IOMMU remapping into account for p2p checks", 2024) is fixed and present in the current kernel.
[1] https://bugs.launchpad.net/ubuntu/+source/linux-oem-6.0/+bug/1987394
Best regards,
Ognyan
Bug#1155633: Please enable CONFIG_HSA_AMD_P2P (multi-GPU AMD PCIe P2P)
- From
- Ognyan Kulev <ogny…@ognyankulev.com>
- Reply-To
- Ognyan Kulev <ogny…@ognyankulev.com>, 1155…@bugs.debian.org
- Sender
- robo…@news.nic.it
- Organization
- linux.* mail to news gateway
- Message-ID
- <O4mr…@gated-at.bofh.it>
- Date
- Newsgroups
- linux.debian.bugs.dist, linux.debian.kernel
Moderated This group is moderated.