[PATCH RESEND v4 00/20] iommu/arm-smmu: Add interconnect bandwidth voting support
From: Bibek Kumar Patro
Date: Fri Nov 20 2026 - 08:42:33 EST
On Qualcomm platforms using the ARM MMU-500 as the adreno SMMU,
the GPU TCU is a separate hardware block with its own AXI master
port (alm_gpu_tcu) on GEM_NOC, independent of the GPU rendering
data ports. Without an explicit interconnect bandwidth vote, the
GEM_NOC path to DDR can be left unvoted during sleep/wakeup
transitions while the TCU is still active, causing intermittent
SMMU register access failures and SError aborts.
On earlier platforms using QSMMU (SMMU-v2), the TCU is integrated
inside the SMMU block and shares the GPU data AXI port, so no
independent vote is required.
This series adds interconnect bandwidth voting support to the
arm-smmu driver for all Qualcomm platforms using qcom,smmu-500
as the adreno SMMU, starting from SM8150 (Snapdragon 855) where
this topology was introduced.
Changes in v4 RESEND:
- Fixed accidental gfx-mem interconnect-names field removal on some
platforms during rebase.
- Link to v4: https://lore.kernel.org/all/20261120-smmu_interconnect_addition-v4-0-cab8ee8be0b3@xxxxxxxxxxxxxxxx/
Changes in v4:
- dt-bindings: Changed interconnect constraint from items:-based
compatible matching to allOf/contains: approach as requested by
Dmitry Baryshkov. The new form matches any compatible string
combination that contains both qcom,smmu-500 and qcom,adreno-smmu,
rather than enumerating specific compatible strings, making the
constraint future-proof.
- iommu/arm-smmu: Moved qcom_adreno_smmu_icc_init() into a function
pointer hook icc_init in qcom_smmu_match_data as requested by
Dmitry Baryshkov. The init is dispatched via data->icc_init() in
qcom_smmu_create(), keeping the hook architecture consistent with
other Qualcomm impl callbacks.
- iommu/arm-smmu: Replaced #include <linux/interconnect.h> in
arm-smmu-qcom.h with a forward declaration struct icc_path; as
requested by Dmitry Baryshkov, to avoid propagating the full
interconnect header to all includers.
- DTS: Extended platform coverage from 4 (kodiak, lemans, monaco,
talos) to 18 platforms, adding sm8150, sm8250, sm8350, sc8180x,
sc8280xp, sm8450, sm8550, sm8650, hamoa, kaanapali, glymur, milos,
hawi, and sar2130p. Note: glymur uses hsc_noc/MASTER_GPU_TCU
instead of gem_noc; sm8550 and sm8650 use MASTER_GFX3D instead of
MASTER_GPU_TCU.
- DTS: Kept QCOM_ICC_TAG_ALWAYS (not changed to QCOM_ICC_TAG_ACTIVE_ONLY
as initially discussed). The GPU TCU is a separate AXI master on
GEM_NOC that may fetch page tables from DDR during CPU sleep while
the GPU remains powered. Using TAG_ALWAYS ensures the interconnect
vote is held across both active and sleep states, preventing the
vote from being dropped before the SMMU is fully powered down.
- Link to v3: https://lore.kernel.org/r/20260706-smmu_interconnect_addition-v3-0-afdca0125a65@xxxxxxxxxxxxxxxx
Changes in v3:
- iommu/arm-smmu: Moved ICC voting from generic arm-smmu.c to
Qualcomm-specific arm-smmu-qcom.c via new runtime_resume and
runtime_suspend hooks in struct arm_smmu_impl, as suggested by
Konrad Dybcio.
- iommu/arm-smmu: Moved icc_path from arm_smmu_device to
qcom_smmu to keep Qualcomm-specific fields out of the generic
driver.
- iommu/arm-smmu: Restructured arm_smmu_icc_get() error path to
exit early on success as suggested by Dmitry Baryshkov.
- iommu/arm-smmu: Dropped if (smmu->icc_path) guards from
icc_enable/disable since icc_set_bw() handles NULL path safely.
- iommu/arm-smmu: Changed WARN_ON() to WARN_ON_ONCE() and
propagate error code to callers.
- iommu/arm-smmu: Changed ARM_SMMU_ICC_PEAK_BW_HIGH from 1000
to 1 kBps as a minimal keep-alive vote.
- Link to v2: https://lore.kernel.org/r/20260526-smmu_interconnect_addition-v2-0-2a6d8ca30d63@xxxxxxxxxxxxxxxx
Changes in v2:
- dt-bindings: Cleaned up 'interconnects' property description --
removed "Optional" prefix and driver implementation details as
flagged by Krzysztof Kozlowski.
- dt-bindings: Added allOf conditional using 'items' to restrict the
'interconnects' property to Adreno SMMU nodes only (qcom,adreno-smmu
with qcom,qcs615-smmu-500, qcom,qcs8300-smmu-500,
qcom,sa8775p-smmu-500 or qcom,sc7280-smmu-500 compatible), so
non-Adreno SMMU nodes on the same SoC cannot use this property.
- Added DTS patches for kodiak, lemans, monaco and talos to add
the GEM_NOC interconnect path for the adreno_smmu node on each
platform.
- Link to v1: https://lore.kernel.org/all/20260516-smmu_interconnect_addition-v1-0-f889d933f5c1@xxxxxxxxxxxxxxxx/
Signed-off-by: Bibek Kumar Patro <bibek.patro@xxxxxxxxxxxxxxxx>
---
Bibek Kumar Patro (20):
dt-bindings: iommu: arm,smmu: Document interconnects property
iommu/arm-smmu: Add interconnect bandwidth voting support
arm64: dts: qcom: kodiak: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: lemans: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: monaco: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: talos: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8150: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8250: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8350: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sc8180x: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sc8280xp: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8450: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8550: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sm8650: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: hamoa: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: kaanapali: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: glymur: Add HSC_NOC interconnect for adreno SMMU
arm64: dts: qcom: milos: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: hawi: Add GEM_NOC interconnect for adreno SMMU
arm64: dts: qcom: sar2130p: Add GEM_NOC interconnect for adreno SMMU
.../devicetree/bindings/iommu/arm,smmu.yaml | 25 +++++++++++
arch/arm64/boot/dts/qcom/glymur.dtsi | 2 +
arch/arm64/boot/dts/qcom/hamoa.dtsi | 2 +
arch/arm64/boot/dts/qcom/hawi.dtsi | 2 +
arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 +
arch/arm64/boot/dts/qcom/kodiak.dtsi | 2 +
arch/arm64/boot/dts/qcom/lemans.dtsi | 2 +
arch/arm64/boot/dts/qcom/milos.dtsi | 2 +
arch/arm64/boot/dts/qcom/monaco.dtsi | 2 +
arch/arm64/boot/dts/qcom/sar2130p.dtsi | 2 +
arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +
arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +
arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +
arch/arm64/boot/dts/qcom/talos.dtsi | 2 +
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 50 ++++++++++++++++++++++
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h | 4 ++
drivers/iommu/arm/arm-smmu/arm-smmu.c | 29 +++++++++++--
drivers/iommu/arm/arm-smmu/arm-smmu.h | 2 +
23 files changed, 143 insertions(+), 3 deletions(-)
---
base-commit: 6d582d78fad9d828e575ca0cdcff8ea47a77220b
change-id: 20260516-smmu_interconnect_addition-d9567535e9d7
Best regards,
--
Bibek Kumar Patro <bibek.patro@xxxxxxxxxxxxxxxx>