[PATCH 03/13] PCI/P2PDMA: Document the Address Type assumption
Leon Romanovsky <[email protected]> Sun, 2 Aug 2026 18:09:41 +0300
| Newsgroups | org.kernel.vger.linux-pci,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Leon Romanovsky <[email protected]> P2PDMA selects a mapping from the ACS controls that govern Requests carrying an Untranslated address. PCIe r7.0, sec 6.12.3 routes a Request carrying a Translated address directly to the peer whenever ACS Direct Translated P2P is enabled, regardless of P2P Request Redirect and P2P Egress Control. An ATS capable client can therefore reach the peer on the direct path whichever mapping is selected. Record that assumption. Signed-off-by: Leon Romanovsky <[email protected]> --- Documentation/driver-api/pci/p2pdma.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/driver-api/pci/p2pdma.rst b/Documentation/driver-api/pci/p2pdma.rst index d3f406cca694..192e9717b62d 100644 --- a/Documentation/driver-api/pci/p2pdma.rst +++ b/Documentation/driver-api/pci/p2pdma.rst @@ -15,6 +15,12 @@ then based on the ACS settings the transaction can route entirely within the PCIe hierarchy and never reach the root port. The kernel will evaluate the PCIe topology and always permit P2P in these well-defined cases. +This evaluation covers the ACS controls that govern Requests carrying an +Untranslated address. A Port with ACS Direct Translated P2P enabled routes +a Request carrying a Translated address directly to the peer regardless of +those controls, so an ATS capable client may reach the peer on the direct +path whichever mapping the kernel selects. + However, if the P2P transaction reaches the host bridge then it might have to hairpin back out the same root port, be routed inside the CPU SOC to another PCIe root port, or routed internally to the SOC. -- 2.55.0