Article View: linux.debian.bugs.dist
Article #6532Bug#1155633: Please enable CONFIG_HSA_AMD_P2P (multi-GPU AMD PCIe P2P)
From: Ognyan Kulev
Date: Sat, 28 Nov 2026 09:00
Date: Sat, 28 Nov 2026 09:00
38 lines
3454 bytes
3454 bytes
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
Technical Details
Message-ID:
<O4mrL-eDRP-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Ognyan Kulev <ognyan@ognyankulev.com> Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1155633: Please enable CONFIG_HSA_AMD_P2P (multi-GPU AMD PCIe P2P) Date: Sat, 28 Nov 2026 10:00:01 +0100 Message-ID: <O4mrL-eDRP-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 28 08:59:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Ognyan Kulev <ognyan@ognyankulev.com>, 1155633@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-kernel@lists.debian.org X-Debian-Pr-Message: report 1155633 X-Debian-Pr-Package: src:linux X-Debian-Pr-Source: linux MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Report-Abuse: Please forward a copy of this message, including all headers, to <abuse-report@smtp2go.com> Feedback-ID: 526064m:526064ahEetoV:526064sVCCUHUhsc X-Smtpcorp-Track: hPsAzjqwxatW.7QtfrgzdW-XC.Kyb2ygS0ipQ X-Greylist: delayed 901 seconds by postgrey-1.37 at buxtehude; Sat, 28 Nov 2026 08:56:37 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005564 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 38 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 28 Nov 2026 10:41:30 +0200 X-Original-Message-ID: <f81ae2b7-0501-4c03-8380-1dc5d64a4c52@ognyankulev.com>