iommu/arm-smmu: Add interconnect bandwidth voting support
Subsystems (6)
v5 cover iommu/arm-smmu: Add interconnect bandwidth voting support
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/
---
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,
Signature · 1 line
Bibek Kumar Patro <[email protected]>
PATCH v5 1/21 dt-bindings: iommu: arm,smmu: Document interconnects property
On Qualcomm platforms using the ARM MMU-500 (qcom,smmu-500) as the adreno SMMU, starting from SM8150 (Snapdragon 855), an active bandwidth vote is required on the interconnect path before the SMMU register space is accessible.
On these platforms 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. This means the TCU can be active during wakeup while the GPU data path is idle, leaving GEM_NOC without any other voter and causing intermittent SMMU register access failures.
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.
Add the optional 'interconnects' property and allow it for all qcom,smmu-500 + qcom,adreno-smmu combinations.
--- .../devicetree/bindings/iommu/arm,smmu.yaml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+)
Documentation/devicetree/bindings/iommu/arm,smmu.yaml +25 -0
@@ -252,6 +252,13 @@ properties: minItems: 1 maxItems: 3 + interconnects: + maxItems: 1 + description: + Interconnect path to the SMMU register space. Required on SoCs + where the SMMU registers are only accessible after a bandwidth + vote has been placed on the interconnect fabric. + nvidia,memory-controller: description: | A phandle to the memory controller on NVIDIA Tegra186 and later SoCs.
@@ -656,6 +663,24 @@ allOf: clock-names: false clocks: false + - if: + allOf: + - properties: + compatible: + contains: + const: qcom,smmu-500 + - properties: + compatible: + contains: + const: qcom,adreno-smmu + then: + properties: + interconnects: + maxItems: 1 + else: + properties: + interconnects: false + - if: properties: compatible:
Signature · 1 line
2.34.1
PATCH v5 2/21 iommu/arm-smmu: Add interconnect bandwidth voting support
In reply to Bibek Kumar PatroOn Qualcomm SoCs using the ARM MMU-500 as the adreno SMMU, the GPU TCU sits on GEM_NOC as an independent AXI master and requires an active interconnect bandwidth vote for its registers to be accessible. While other clients typically satisfy this requirement implicitly, certain corner cases (e.g. during sleep/wakeup transitions) can leave the SMMU without a vote, causing intermittent register access failures.
Add support for an optional interconnect path to the arm-smmu driver and vote for bandwidth while the SMMU is active. The path is acquired from DT if present and ignored otherwise.
The bandwidth vote is enabled before accessing SMMU registers during probe and runtime resume, and released during runtime suspend and on error paths.
Generally, from an architectural perspective, GEM_NOC and DDR are expected to have an active vote whenever the adreno_smmu block is powered on. In most common use cases, this requirement is implicitly satisfied because other GPU-related clients (for example, the GMU device) already hold a GEM_NOC vote when adreno_smmu is enabled.
However, there are certain corner cases, such as during sleep/wakeup transitions, where the GEM_NOC vote can be removed before adreno_smmu is powered down. If adreno_smmu is then accessed while the interconnect vote is missing, it can lead to the observed failures. Because of the precise ordering involved, this scenario is difficult to reproduce consistently. Additionally, GDSC power state transitions in adreno use cases can independently drop the interconnect vote, further contributing to this race.
The design difference between QSMMU (SMMU-v2) and SMMU-500 explains why an explicit ICC vote is needed only for the latter:
QSMMU (SMMU-v2) — SM6250 / SDM845 era: The TCU is NOT a separate hardware master. It is integrated INSIDE the SMMU-v2 block itself.
GPU SS
+----------------------------------+
| QSMMU (SMMU-v2 @ 0x5040000) |
| +----------------------------+ |
| | TCU (integrated, no | |
| | separate AXI master port) | |
| +------------+---------------+ |
| | page table walk |
| | issued on same |
| | AXI port as GPU |
+---------------+------------------+
|
| qxm_gpu0 / qxm_gpu1
| (GPU data + TCU walks share same NOC master)
v
GEM_NOC -> LLCC -> MC -> DDROn SMMU-v2 platforms the TCU never needs an independent vote because it physically cannot be active without the GPU data path also being active.
SMMU-500 — SM8150+ / SA8775P / SC7280 etc.: The TCU is a SEPARATE hardware block with its OWN AXI master.
GPU SS
+----------------------------------+
| +-------------+ +-----------+ |
| | GPU Core | | GPU TCU | | <- distinct HW block
| | (rendering)| | + DVM | |
| +------+------+ +-----+-----+ |
+---------+---------------+--------+
| |
qnm_gpu0/1 alm_gpu_tcu <- separate NOC master port
| |
+-------+-------+
v
GEM_NOC -> LLCC -> MC -> DDROn SMMU-500 the TCU has its own master port — it can be active (e.g. page table walks during wakeup) while the GPU data path is idle, leaving GEM_NOC without any other voter. Hence the explicit MASTER_GPU_TCU -> SLAVE_EBI1 vote is required.
--- 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 + 4 files changed, 106 insertions(+), 11 deletions(-)
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c +50 -0
@@ -6,6 +6,7 @@#include <linux/acpi.h> #include <linux/adreno-smmu-priv.h> #include <linux/delay.h> +#include <linux/interconnect.h> #include <linux/of_device.h> #include <linux/firmware/qcom/qcom_scm.h> #include <linux/platform_device.h>
@@ -608,6 +609,45 @@ static int qcom_sdm845_smmu500_reset(struct arm_smmu_device *smmu)return ret; } +static int qcom_adreno_smmu_icc_init (struct arm_smmu_device *smmu) +{ + struct qcom_smmu *qsmmu = container_of(smmu, struct qcom_smmu, smmu); +int err; + + qsmmu->icc_path =devm_of_icc_get (smmu->dev,NULL ); +if (!IS_ERR (qsmmu->icc_path)) +return 0 ; + + err =PTR_ERR (qsmmu->icc_path); + +if (err == -ENODEV ) { + qsmmu->icc_path =NULL ; +return 0 ; + } +return dev_err_probe (smmu->dev, err, +"failed to get interconnect path\n" ); +} + +static int qcom_adreno_smmu_runtime_resume (struct arm_smmu_device *smmu) +{ + struct qcom_smmu *qsmmu = container_of(smmu, struct qcom_smmu, smmu); +int ret; + + ret =icc_set_bw (qsmmu->icc_path,0 ,1 ); +WARN_ON_ONCE (ret); +return ret; +} + +static int qcom_adreno_smmu_runtime_suspend (struct arm_smmu_device *smmu) +{ + struct qcom_smmu *qsmmu = container_of(smmu, struct qcom_smmu, smmu); +int ret; + + ret =icc_set_bw (qsmmu->icc_path,0 ,0 ); +WARN_ON_ONCE (ret); +return ret; +} +static const struct arm_smmu_impl qcom_smmu_v2_impl = { .init_context = qcom_smmu_init_context, .cfg_probe = qcom_smmu_cfg_probe,
@@ -659,6 +699,8 @@ static const struct arm_smmu_impl qcom_adreno_smmu_500_impl = { .alloc_context_bank = qcom_adreno_smmu_alloc_context_bank, .write_sctlr = qcom_adreno_smmu_write_sctlr, .tlb_sync = qcom_smmu_tlb_sync, + .runtime_resume = qcom_adreno_smmu_runtime_resume, + .runtime_suspend = qcom_adreno_smmu_runtime_suspend, .context_fault_needs_threaded_irq = true, };
@@ -668,6 +710,7 @@ static struct arm_smmu_device *qcom_smmu_create(struct arm_smmu_device *smmu,const struct device_node *np = smmu->dev->of_node;const struct arm_smmu_impl *impl;struct qcom_smmu *qsmmu; +int ret;if (!data)return ERR_PTR (-EINVAL );
@@ -692,6 +735,12 @@ static struct arm_smmu_device *qcom_smmu_create(struct arm_smmu_device *smmu, qsmmu->smmu.impl = impl; qsmmu->data = data; +if (data->icc_init) { + ret = data->icc_init (&qsmmu->smmu); +if (ret) +return ERR_PTR (ret); + } +return &qsmmu->smmu; }
@@ -734,6 +783,7 @@ static const struct qcom_smmu_match_data qcom_smmu_500_impl0_data = { .adreno_impl = &qcom_adreno_smmu_500_impl, .cfg = &qcom_smmu_impl0_cfg, .client_match = qcom_smmu_actlr_client_of_match, + .icc_init = qcom_adreno_smmu_icc_init, };/*
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.h +4 -0
@@ -6,12 +6,15 @@#ifndef _ARM_SMMU_QCOM_H#define _ARM_SMMU_QCOM_H +struct icc_path ; +struct qcom_smmu {struct arm_smmu_device smmu;const struct qcom_smmu_match_data *data;bool bypass_quirk;u8 bypass_cbndx;u32 stall_enabled; +struct icc_path *icc_path; }; enum qcom_smmu_impl_reg_offset {
@@ -29,6 +32,7 @@ struct qcom_smmu_match_data {const struct arm_smmu_impl *impl;const struct arm_smmu_impl *adreno_impl;const struct of_device_id *const client_match; +int (*icc_init)(struct arm_smmu_device *smmu); };irqreturn_t qcom_smmu_context_fault (int irq,void *dev);
drivers/iommu/arm/arm-smmu/arm-smmu.c +50 -11
124 lines not on this page · raw message
drivers/iommu/arm/arm-smmu/arm-smmu.h +2 -0
@@ -455,6 +455,8 @@ struct arm_smmu_impl {void (*write_s2cr)(struct arm_smmu_device *smmu,int idx);void (*write_sctlr)(struct arm_smmu_device *smmu,int idx,u32 reg);void (*probe_finalize)(struct arm_smmu_device *smmu,struct device *dev); +int (*runtime_resume)(struct arm_smmu_device *smmu); +int (*runtime_suspend)(struct arm_smmu_device *smmu); };#define INVALID_SMENDX -1
Signature · 1 line
2.34.1
PATCH v5 3/21 arm64: dts: qcom: kodiak: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Kodiak platforms, the Adreno SMMU requires a bandwidth vote on the GEM_NOC path (MASTER_GPU_TCU -> SLAVE_EBI1) before its registers are accessible. Without this vote, the SMMU may become unreachable, leading to intermittent probe failures and runtime issues.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/kodiak.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/kodiak.dtsi +2 -0
@@ -3413,6 +3413,8 @@ adreno_smmu: iommu@3da0000 { power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; gfx_0_tbu: tbu@3dd9000 {
Signature · 1 line
2.34.1
PATCH v5 4/21 arm64: dts: qcom: lemans: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Lemans platforms, the Adreno SMMU requires a bandwidth vote on the GEM_NOC path (MASTER_GPU_TCU -> SLAVE_EBI1) before its registers are accessible. Without this vote, the SMMU may become unreachable, leading to intermittent probe failures and runtime issues.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/lemans-embedded.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/lemans-embedded.dtsi +2 -0
@@ -239,6 +239,8 @@ &adreno_smmu { "gpu_cc_cx_gmu_clk", "gpu_cc_hub_cx_int_clk", "gpu_cc_hub_aon_clk"; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; &camss {
Signature · 1 line
2.34.1
PATCH v5 5/21 arm64: dts: qcom: monaco: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Monaco platforms, the Adreno SMMU requires a bandwidth vote on the GEM_NOC path (MASTER_GPU_TCU -> SLAVE_EBI1) before its registers are accessible. Without this vote, the SMMU may become unreachable, leading to intermittent probe failures and runtime issues.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/monaco.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/monaco.dtsi +2 -0
@@ -5113,6 +5113,8 @@ adreno_smmu: iommu@3da0000 { "gpu_cc_hub_aon_clk"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; pmu@9091000 {
Signature · 1 line
2.34.1
PATCH v5 6/21 arm64: dts: qcom: talos: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Talos platforms, the Adreno SMMU requires a bandwidth vote on the GEM_NOC path (MASTER_GPU_TCU -> SLAVE_EBI1) before its registers are accessible. Without this vote, the SMMU may become unreachable, leading to intermittent probe failures and runtime issues.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/talos.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/talos.dtsi +2 -0
@@ -2102,6 +2102,8 @@ adreno_smmu: iommu@50a0000 { "iface"; power-domains = <&gpucc CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; stm@6002000 {
Signature · 1 line
2.34.1
PATCH v5 7/21 arm64: dts: qcom: sm8150: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8150 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8150.dtsi +2 -0
@@ -2396,6 +2396,8 @@ adreno_smmu: iommu@2ca0000 { clock-names = "ahb", "bus", "iface"; power-domains = <&gpucc GPU_CX_GDSC>; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>; }; tlmm: pinctrl@3100000 {
Signature · 1 line
2.34.1
PATCH v5 8/21 arm64: dts: qcom: sm8250: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8250 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8250.dtsi +2 -0
@@ -3089,6 +3089,8 @@ adreno_smmu: iommu@3da0000 { power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>; }; slpi: remoteproc@5c00000 {
Signature · 1 line
2.34.1
PATCH v5 9/21 arm64: dts: qcom: sm8350: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8350 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8350.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8350.dtsi +2 -0
@@ -2566,6 +2566,8 @@ adreno_smmu: iommu@3da0000 { power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; lpass_ag_noc: interconnect@3c40000 {
Signature · 1 line
2.34.1
PATCH v5 10/21 arm64: dts: qcom: sc8180x: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SC8180x the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc8180x.dtsi +2 -0
@@ -2410,6 +2410,8 @@ adreno_smmu: iommu@2ca0000 { clock-names = "ahb", "bus", "iface"; power-domains = <&gpucc GPU_CX_GDSC>; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI_CH0 QCOM_ICC_TAG_ALWAYS>; }; tlmm: pinctrl@3100000 {
Signature · 1 line
2.34.1
PATCH v5 11/21 arm64: dts: qcom: sc8280xp: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SC8280xp the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sc8280xp.dtsi +2 -0
@@ -3564,6 +3564,8 @@ gpu_smmu: iommu@3da0000 { power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; sdc2: mmc@8804000 {
Signature · 1 line
2.34.1
PATCH v5 12/21 arm64: dts: qcom: sm8450: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8450 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8450.dtsi +2 -0
@@ -2619,6 +2619,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; usb_1_hsphy: phy@88e3000 {
Signature · 1 line
2.34.1
PATCH v5 13/21 arm64: dts: qcom: sm8550: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8550 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8550.dtsi +2 -0
@@ -3073,6 +3073,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; ipa: ipa@3f40000 {
Signature · 1 line
2.34.1
PATCH v5 14/21 arm64: dts: qcom: sm8650: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SM8650 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sm8650.dtsi +2 -0
@@ -4413,6 +4413,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; ipa: ipa@3f40000 {
Signature · 1 line
2.34.1
PATCH v5 15/21 arm64: dts: qcom: hamoa: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn X1E80100 the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/hamoa.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/hamoa.dtsi +2 -0
@@ -4289,6 +4289,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; gem_noc: interconnect@26400000 {
Signature · 1 line
2.34.1
PATCH v5 16/21 arm64: dts: qcom: kaanapali: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Kaanapali the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/kaanapali.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/kaanapali.dtsi +2 -0
@@ -2997,6 +2997,8 @@ adreno_smmu: iommu@3da0000 { clock-names = "hlos"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; remoteproc_adsp: remoteproc@6800000 {
Signature · 1 line
2.34.1
PATCH v5 17/21 arm64: dts: qcom: glymur: Add HSC_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Glymur the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on HSC_NOC. Without an explicit interconnect bandwidth vote, the HSC_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/glymur.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/glymur.dtsi +2 -0
@@ -4497,6 +4497,8 @@ adreno_smmu: iommu@3da0000 { clock-names = "hlos"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&hsc_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; ipcc: mailbox@3e04000 {
Signature · 1 line
2.34.1
PATCH v5 18/21 arm64: dts: qcom: milos: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Milos the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/milos.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/milos.dtsi +2 -0
@@ -1988,6 +1988,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; ipa: ipa@3f40000 {
Signature · 1 line
2.34.1
PATCH v5 19/21 arm64: dts: qcom: hawi: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Hawi the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/hawi.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/hawi.dtsi +2 -0
@@ -3685,6 +3685,8 @@ adreno_smmu: iommu@3da0000 { clock-names = "hlos"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; remoteproc_mpss: remoteproc@4000000 {
Signature · 1 line
2.34.1
PATCH v5 20/21 arm64: dts: qcom: sar2130p: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn SAR2130P the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/sar2130p.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/sar2130p.dtsi +2 -0
@@ -1857,6 +1857,8 @@ adreno_smmu: iommu@3da0000 { "ahb"; power-domains = <&gpucc GPU_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; usb_1_hsphy: phy@88e3000 {
Signature · 1 line
2.34.1
PATCH v5 21/21 arm64: dts: qcom: eliza: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroOn Eliza the Adreno SMMU GPU TCU is a separate hardware block with a dedicated alm_gpu_tcu master port on GEM_NOC. Without an explicit interconnect bandwidth vote, the GEM_NOC path to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.
Add the required interconnect to ensure reliable register access.
--- arch/arm64/boot/dts/qcom/eliza.dtsi | 2 ++ 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/qcom/eliza.dtsi +2 -0
@@ -3410,6 +3410,8 @@ adreno_smmu: iommu@3da0000 { clock-names = "hlos"; power-domains = <&gpucc GPU_CC_CX_GDSC>; dma-coherent; + interconnects = <&gem_noc MASTER_GPU_TCU QCOM_ICC_TAG_ALWAYS + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>; }; gpucc: clock-controller@3d90000 {
Signature · 1 line
2.34.1
Re: [PATCH v5 21/21] arm64: dts: qcom: eliza: Add GEM_NOC interconnect for adreno SMMU
Quoted 10 lines · Bibek Kumar Patro
On Eliza the Adreno SMMU GPU TCU is a separate hardware block with a dedicated
alm_gpu_tcumaster port onGEM_NOC. Without an explicit interconnect bandwidth vote, theGEM_NOCpath to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.Add the required interconnect to ensure reliable register access.
Signed-off-by Bibek Kumar Patro <[email protected]>---
Konrad
Re: [PATCH v5 21/21] arm64: dts: qcom: eliza: Add GEM_NOC interconnect for adreno SMMU
In reply to Bibek Kumar PatroQuoted 10 lines · Bibek Kumar Patro
On Eliza the Adreno SMMU GPU TCU is a separate hardware block with a dedicated
alm_gpu_tcumaster port onGEM_NOC. Without an explicit interconnect bandwidth vote, theGEM_NOCpath to DDR can be left unvoted during sleep/wakeup transitions, causing intermittent SMMU register access failures.Add the required interconnect to ensure reliable register access.
Signed-off-by Bibek Kumar Patro <[email protected]>---
Konrad