From b32cd59f5d839b129f140dbacb4c657e6fb4a7c1 Mon Sep 17 00:00:00 2001 From: Hariharan Sreedhar Date: Mon, 6 Jul 2026 10:14:42 +0530 Subject: [PATCH 1/2] WORKAROUND: arm64: dts: qcom: monaco: add PCIe IOMMU mappings in staging dtso Add the iommu-map entries to the Monaco PCIe staging DTSO file to support SMMUv2. Signed-off-by: Hariharan Sreedhar --- arch/arm64/boot/dts/qcom/monaco-staging.dtso | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/monaco-staging.dtso b/arch/arm64/boot/dts/qcom/monaco-staging.dtso index fc44741b8caab..9e74a5600cc0a 100644 --- a/arch/arm64/boot/dts/qcom/monaco-staging.dtso +++ b/arch/arm64/boot/dts/qcom/monaco-staging.dtso @@ -25,3 +25,49 @@ clock-names = "apb_pclk"; }; }; + +&pcie0 { + iommu-map = <0x0 &pcie_smmu 0x00 0x1>, + <0x100 &pcie_smmu 0x01 0x1>, + <0x101 &pcie_smmu 0x02 0x1>, + <0x208 &pcie_smmu 0x03 0x1>, + <0x210 &pcie_smmu 0x04 0x1>, + <0x218 &pcie_smmu 0x05 0x1>, + <0x280 &pcie_smmu 0x06 0x1>, + <0x282 &pcie_smmu 0x07 0x1>, + <0x284 &pcie_smmu 0x08 0x1>, + <0x286 &pcie_smmu 0x09 0x1>, + <0x288 &pcie_smmu 0x0a 0x1>, + <0x28a &pcie_smmu 0x0b 0x1>, + <0x28c &pcie_smmu 0x0c 0x1>, + <0x28e &pcie_smmu 0x0d 0x1>, + <0x290 &pcie_smmu 0x0e 0x1>, + <0x292 &pcie_smmu 0x0f 0x1>, + <0x300 &pcie_smmu 0x10 0x1>, + <0x400 &pcie_smmu 0x11 0x1>, + <0x500 &pcie_smmu 0x12 0x1>, + <0x501 &pcie_smmu 0x13 0x1>; +}; + +&pcie1 { + iommu-map = <0x0 &pcie_smmu 0x80 0x1>, + <0x100 &pcie_smmu 0x81 0x1>, + <0x101 &pcie_smmu 0x82 0x1>, + <0x208 &pcie_smmu 0x83 0x1>, + <0x210 &pcie_smmu 0x84 0x1>, + <0x218 &pcie_smmu 0x85 0x1>, + <0x280 &pcie_smmu 0x86 0x1>, + <0x282 &pcie_smmu 0x87 0x1>, + <0x284 &pcie_smmu 0x88 0x1>, + <0x286 &pcie_smmu 0x89 0x1>, + <0x288 &pcie_smmu 0x8a 0x1>, + <0x28a &pcie_smmu 0x8b 0x1>, + <0x28c &pcie_smmu 0x8c 0x1>, + <0x28e &pcie_smmu 0x8d 0x1>, + <0x290 &pcie_smmu 0x8e 0x1>, + <0x292 &pcie_smmu 0x8f 0x1>, + <0x300 &pcie_smmu 0x90 0x1>, + <0x400 &pcie_smmu 0x91 0x1>, + <0x500 &pcie_smmu 0x92 0x1>, + <0x501 &pcie_smmu 0x93 0x1>; +}; From 4de28d7006870be9acf41af0fb4c3066991216df Mon Sep 17 00:00:00 2001 From: Hariharan Sreedhar Date: Mon, 6 Jul 2026 10:18:40 +0530 Subject: [PATCH 2/2] WORKAROUND: arm64: dts: qcom: lemans: add PCIe IOMMU mappings in staging dtso Add the iommu-map entries to the Lemans staging DTSO file to support SMMUv2. Signed-off-by: Hariharan Sreedhar --- arch/arm64/boot/dts/qcom/lemans-staging.dtso | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/lemans-staging.dtso b/arch/arm64/boot/dts/qcom/lemans-staging.dtso index d09d8dba42a37..70add6fc7f9fb 100644 --- a/arch/arm64/boot/dts/qcom/lemans-staging.dtso +++ b/arch/arm64/boot/dts/qcom/lemans-staging.dtso @@ -64,3 +64,49 @@ bias-disable; }; }; + +&pcie0 { + iommu-map = <0x0 &pcie_smmu 0x00 0x1>, + <0x100 &pcie_smmu 0x01 0x1>, + <0x101 &pcie_smmu 0x02 0x1>, + <0x208 &pcie_smmu 0x03 0x1>, + <0x210 &pcie_smmu 0x04 0x1>, + <0x218 &pcie_smmu 0x05 0x1>, + <0x280 &pcie_smmu 0x06 0x1>, + <0x282 &pcie_smmu 0x07 0x1>, + <0x284 &pcie_smmu 0x08 0x1>, + <0x286 &pcie_smmu 0x09 0x1>, + <0x288 &pcie_smmu 0x0a 0x1>, + <0x28a &pcie_smmu 0x0b 0x1>, + <0x28c &pcie_smmu 0x0c 0x1>, + <0x28e &pcie_smmu 0x0d 0x1>, + <0x290 &pcie_smmu 0x0e 0x1>, + <0x292 &pcie_smmu 0x0f 0x1>, + <0x300 &pcie_smmu 0x10 0x1>, + <0x400 &pcie_smmu 0x11 0x1>, + <0x500 &pcie_smmu 0x12 0x1>, + <0x501 &pcie_smmu 0x13 0x1>; +}; + +&pcie1 { + iommu-map = <0x0 &pcie_smmu 0x80 0x1>, + <0x100 &pcie_smmu 0x81 0x1>, + <0x101 &pcie_smmu 0x82 0x1>, + <0x208 &pcie_smmu 0x83 0x1>, + <0x210 &pcie_smmu 0x84 0x1>, + <0x218 &pcie_smmu 0x85 0x1>, + <0x280 &pcie_smmu 0x86 0x1>, + <0x282 &pcie_smmu 0x87 0x1>, + <0x284 &pcie_smmu 0x88 0x1>, + <0x286 &pcie_smmu 0x89 0x1>, + <0x288 &pcie_smmu 0x8a 0x1>, + <0x28a &pcie_smmu 0x8b 0x1>, + <0x28c &pcie_smmu 0x8c 0x1>, + <0x28e &pcie_smmu 0x8d 0x1>, + <0x290 &pcie_smmu 0x8e 0x1>, + <0x292 &pcie_smmu 0x8f 0x1>, + <0x300 &pcie_smmu 0x90 0x1>, + <0x400 &pcie_smmu 0x91 0x1>, + <0x500 &pcie_smmu 0x92 0x1>, + <0x501 &pcie_smmu 0x93 0x1>; +};