From: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
To: Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
"Joerg Roedel (AMD)" <joro@8bytes.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Rob Clark <robin.clark@oss.qualcomm.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>,
Abel Vesa <abelvesa@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org,
Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>,
Val Packett <val@packett.cool>,
Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>,
Abel Vesa <abel.vesa@oss.qualcomm.com>
Subject: [PATCH v5 00/21] iommu/arm-smmu: Add interconnect bandwidth voting support
Date: Tue, 01 Dec 2026 21:01:30 +0530 [thread overview]
Message-ID: <20261201-smmu_interconnect_addition-v5-0-4d22c4b85e30@oss.qualcomm.com> (raw)
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 v5:
- arm-smmu: Fix runtime_suspend() clock ordering: call impl->runtime_suspend()
before clk_bulk_disable() so that if icc_set_bw() fails the clocks remain
enabled and the device stays in a consistent active state. Mirror fix
applied to the shutdown path. (sashiko-bot)
- arm-smmu: Fix probe error paths after impl->runtime_resume() succeeds:
convert bare 'return err' exits to 'goto err_impl_suspend' so that probe
failures cleanly release the ICC vote and disable+unprepare clocks. (sashiko-bot)
- arm64: dts: qcom: lemans: Move interconnects to lemans-embedded.dtsi
where gem_noc and mc_virt are defined; fixes build failures for targets
using lemans-gearvm.dtsi (SCMI-managed, RPMh interconnect absent). (sashiko-bot)
- arm64: dts: qcom: eliza: Add GEM_NOC interconnect for adreno SMMU (Abel).
- Link to v4 RESEND: https://lore.kernel.org/all/20261120-smmu_interconnect_addition-v4-0-be30526391d9@oss.qualcomm.com/
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@oss.qualcomm.com/
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@oss.qualcomm.com
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@oss.qualcomm.com
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@oss.qualcomm.com/
Signed-off-by: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
---
Bibek Kumar Patro (21):
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
arm64: dts: qcom: eliza: Add GEM_NOC interconnect for adreno SMMU
.../devicetree/bindings/iommu/arm,smmu.yaml | 25 +++++++++
arch/arm64/boot/dts/qcom/eliza.dtsi | 2 +
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-embedded.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 | 61 ++++++++++++++++++----
drivers/iommu/arm/arm-smmu/arm-smmu.h | 2 +
24 files changed, 169 insertions(+), 11 deletions(-)
---
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
change-id: 20260516-smmu_interconnect_addition-d9567535e9d7
Best regards,
--
Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
next reply other threads:[~2026-12-01 15:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 15:31 Bibek Kumar Patro [this message]
2026-12-01 15:31 ` [PATCH v5 01/21] dt-bindings: iommu: arm,smmu: Document interconnects property Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 02/21] iommu/arm-smmu: Add interconnect bandwidth voting support Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 03/21] arm64: dts: qcom: kodiak: Add GEM_NOC interconnect for adreno SMMU Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 04/21] arm64: dts: qcom: lemans: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 05/21] arm64: dts: qcom: monaco: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 06/21] arm64: dts: qcom: talos: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 07/21] arm64: dts: qcom: sm8150: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 08/21] arm64: dts: qcom: sm8250: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 09/21] arm64: dts: qcom: sm8350: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 10/21] arm64: dts: qcom: sc8180x: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 11/21] arm64: dts: qcom: sc8280xp: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 12/21] arm64: dts: qcom: sm8450: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 13/21] arm64: dts: qcom: sm8550: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 14/21] arm64: dts: qcom: sm8650: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 15/21] arm64: dts: qcom: hamoa: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 16/21] arm64: dts: qcom: kaanapali: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 17/21] arm64: dts: qcom: glymur: Add HSC_NOC " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 18/21] arm64: dts: qcom: milos: Add GEM_NOC " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 19/21] arm64: dts: qcom: hawi: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 20/21] arm64: dts: qcom: sar2130p: " Bibek Kumar Patro
2026-12-01 15:31 ` [PATCH v5 21/21] arm64: dts: qcom: eliza: " Bibek Kumar Patro
2026-12-01 15:46 ` Konrad Dybcio
2026-12-01 16:42 ` Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201-smmu_interconnect_addition-v5-0-4d22c4b85e30@oss.qualcomm.com \
--to=bibek.patro@oss.qualcomm.com \
--cc=abel.vesa@oss.qualcomm.com \
--cc=abelvesa@kernel.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=konrad.dybcio@oss.qualcomm.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=robin.clark@oss.qualcomm.com \
--cc=robin.murphy@arm.com \
--cc=val@packett.cool \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®