Skip to content

Commit 40929e8

Browse files
jpbruckerwilldeacon
authored andcommitted
dt-bindings: PCI: generic: Add ats-supported property
Add a way for firmware to tell the OS that ATS is supported by the PCI root complex. An endpoint with ATS enabled may send Translation Requests and Translated Memory Requests, which look just like Normal Memory Requests with a non-zero AT field. So a root controller that ignores the AT field may simply forward the request to the IOMMU as a Normal Memory Request, which could end badly. In any case, the endpoint will be unusable. The ats-supported property allows the OS to only enable ATS in endpoints if the root controller can handle ATS requests. Only add the property to pcie-host-ecam-generic for the moment. For non-generic root controllers, availability of ATS can be inferred from the compatible string. Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Liviu Dudau <[email protected]> Signed-off-by: Jean-Philippe Brucker <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 83a7eef commit 40929e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/pci/host-generic-pci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ properties:
110110
iommu-map-mask: true
111111
msi-parent: true
112112

113+
ats-supported:
114+
description:
115+
Indicates that a PCIe host controller supports ATS, and can handle Memory
116+
Requests with Address Type (AT).
117+
type: boolean
118+
113119
required:
114120
- compatible
115121
- reg

0 commit comments

Comments
 (0)