* [PATCH v2 0/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
@ 2026-12-03 14:53 Anurag Pateriya
2026-12-03 14:53 ` [PATCH v2 1/2] " Anurag Pateriya
2026-12-03 14:53 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay Anurag Pateriya
0 siblings, 2 replies; 5+ messages in thread
From: Anurag Pateriya @ 2026-12-03 14:53 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, linux-remoteproc,
Shawn Guo, Bibek Kumar Patro, Anurag Pateriya, Konrad Dybcio
Nord boards currently boot Linux under a hypervisor that manages the
IOMMU streams of the remote processor firmware. When Linux boots
directly at EL2 without the hypervisor, it owns the SMMU and must
describe the remoteproc firmware streams itself.
Add nord-embedded-el2.dtso and use it to build nord-ride-embedded-el2.dtb
and nord-rrd-el2.dtb. The overlay describes the firmware streams of
ADSP0/1/2, CDSP0-3 and SoCCP.
Patch 1 adds the overlay and DTB build targets.
Patch 2 adds ADSP1/ADSP2 mappings.
Dependencies :
- Nord SoCCP binding and driver support [1], and SoCCP DTS support [2].
- SoCCP EL2 binding and driver changes [3], which allow two IOMMU
entries and map the firmware carveout privileged-only.
- Shawn Guo's eight-patch ADSP cluster binding and driver series [4],
providing the ADSP1/ADSP2 compatibles and coupled boot/stop support.
- The FastRPC binding update permitting the adsp1 and adsp2 labels [5].
- All three ADSP1/ADSP2 DTS patches [6], which define remoteproc_adsp1
and remoteproc_adsp2 and enable them on RRD and Ride-Embedded.
[1] https://lore.kernel.org/all/20261014-soccp_driver_dtbinding-v2-0-09d9c1378e9e@oss.qualcomm.com/
[2] https://lore.kernel.org/all/20261112-nord-soccp-dt-v4-0-af6e44e9f397@oss.qualcomm.com/
[3] https://lore.kernel.org/all/20261113-nord_embedded_el2-v1-0-48f717e97066@oss.qualcomm.com/
[4] https://lore.kernel.org/r/20261201070137.360878-2-shengchao.guo@oss.qualcomm.com
https://lore.kernel.org/r/20261201070137.360878-9-shengchao.guo@oss.qualcomm.com
[5] https://lore.kernel.org/r/20261201090219.414376-1-shengchao.guo@oss.qualcomm.com
[6] https://lore.kernel.org/r/20261201091727.415871-2-shengchao.guo@oss.qualcomm.com
https://lore.kernel.org/r/20261201091727.415871-3-shengchao.guo@oss.qualcomm.com
https://lore.kernel.org/r/20261201091727.415871-4-shengchao.guo@oss.qualcomm.com
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konradybcio@kernel.org>
To: Abel Vesa <abelvesa@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-remoteproc@vger.kernel.org
Cc: Shawn Guo <shengchao.guo@oss.qualcomm.com>
Cc: Bibek Kumar Patro <bibek.patro@oss.qualcomm.com>
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konradybcio@kernel.org>
To: Abel Vesa <abelvesa@kernel.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
Changes in v2:
- Add ADSP1/ADSP2 SMMU mappings along with other remoteprocs.
- Document and apply the ADSP cluster, FastRPC and DTS prerequisites.
- Collect Konrad Dybcio's Reviewed-by tag for patch 1.
- Link to v1: https://lore.kernel.org/r/20261113-nord_soccp_el2_dt_change-v1-1-2a7aa55d97dd@oss.qualcomm.com
---
Anurag Pateriya (2):
arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay
arch/arm64/boot/dts/qcom/Makefile | 8 +++++
arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso | 40 +++++++++++++++++++++++++
2 files changed, 48 insertions(+)
---
base-commit: d79881de56f29eb605b879511981fb0965d40695
change-id: 20261113-nord_soccp_el2_dt_change-b2e8231deab4
Best regards,
--
Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
2026-12-03 14:53 [PATCH v2 0/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings Anurag Pateriya
@ 2026-12-03 14:53 ` Anurag Pateriya
2026-12-03 15:08 ` sashiko-bot
2026-12-03 14:53 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay Anurag Pateriya
1 sibling, 1 reply; 5+ messages in thread
From: Anurag Pateriya @ 2026-12-03 14:53 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, linux-remoteproc,
Shawn Guo, Bibek Kumar Patro, Anurag Pateriya, Konrad Dybcio
Nord boards currently boot Linux under a hypervisor that manages the
IOMMU streams of the remote processor firmware. When Linux boots
directly at EL2 without the hypervisor, it owns the SMMU and must
describe the remoteproc firmware streams itself.
Add nord-embedded-el2.dtso carrying the iommus of the ADSP, CDSPs
and SoCCP, and apply it to nord-ride-embedded and nord-rrd to build
the -el2.dtb variants.
The base DTBs are unchanged, so the existing hypervisor boot flow
is unaffected.
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/Makefile | 8 +++++++
arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso | 32 +++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 19310879349d..efd25483adcf 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -197,7 +197,15 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8998-sony-xperia-yoshino-poplar.dtb
dtb-$(CONFIG_ARCH_QCOM) += msm8998-xiaomi-sagit.dtb
dtb-$(CONFIG_ARCH_QCOM) += nord-ride.dtb
dtb-$(CONFIG_ARCH_QCOM) += nord-ride-embedded.dtb
+
+nord-ride-embedded-el2-dtbs := nord-ride-embedded.dtb nord-embedded-el2.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += nord-ride-embedded-el2.dtb
+
dtb-$(CONFIG_ARCH_QCOM) += nord-rrd.dtb
+
+nord-rrd-el2-dtbs := nord-rrd.dtb nord-embedded-el2.dtbo
+dtb-$(CONFIG_ARCH_QCOM) += nord-rrd-el2.dtb
+
dtb-$(CONFIG_ARCH_QCOM) += purwa-iot-evk.dtb
purwa-iot-evk-edp-dtbs := purwa-iot-evk.dtb purwa-iot-evk-edp.dtbo
diff --git a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
new file mode 100644
index 000000000000..50c5057f6683
--- /dev/null
+++ b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: BSD-3-Clause
+/*
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+/dts-v1/;
+/plugin/;
+
+&remoteproc_adsp {
+ iommus = <&apps_smmu_0 0x09e0 0x0>;
+};
+
+&remoteproc_cdsp0 {
+ iommus = <&apps_smmu_2 0x0360 0x0>;
+};
+
+&remoteproc_cdsp1 {
+ iommus = <&apps_smmu_2 0x0760 0x0>;
+};
+
+&remoteproc_cdsp2 {
+ iommus = <&apps_smmu_2 0x0b60 0x0>;
+};
+
+&remoteproc_cdsp3 {
+ iommus = <&apps_smmu_2 0x0f60 0x0>;
+};
+
+&remoteproc_soccp {
+ iommus = <&apps_smmu_0 0x1960 0x5>,
+ <&apps_smmu_0 0x1966 0x0>;
+};
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay
2026-12-03 14:53 [PATCH v2 0/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings Anurag Pateriya
2026-12-03 14:53 ` [PATCH v2 1/2] " Anurag Pateriya
@ 2026-12-03 14:53 ` Anurag Pateriya
2026-12-03 15:10 ` sashiko-bot
1 sibling, 1 reply; 5+ messages in thread
From: Anurag Pateriya @ 2026-12-03 14:53 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, linux-remoteproc,
Shawn Guo, Bibek Kumar Patro, Anurag Pateriya
ADSP1 and ADSP2 remoteproc nodes are now enabled on Nord boards. When
Linux boots at EL2 without the hypervisor, it owns the SMMU and has to
describe the firmware streams of these remote processors as well, just
like the ADSP, CDSPs and SoCCP already covered by the overlay.
Add the iommus for ADSP1 (SID 0x0a08) and ADSP2 (SID 0x0a30) on
apps_smmu_0.
Signed-off-by: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
---
arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
index 50c5057f6683..cd6a1531b2f2 100644
--- a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
+++ b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
@@ -10,6 +10,14 @@ &remoteproc_adsp {
iommus = <&apps_smmu_0 0x09e0 0x0>;
};
+&remoteproc_adsp1 {
+ iommus = <&apps_smmu_0 0x0a08 0x0>;
+};
+
+&remoteproc_adsp2 {
+ iommus = <&apps_smmu_0 0x0a30 0x0>;
+};
+
&remoteproc_cdsp0 {
iommus = <&apps_smmu_2 0x0360 0x0>;
};
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
2026-12-03 14:53 ` [PATCH v2 1/2] " Anurag Pateriya
@ 2026-12-03 15:08 ` sashiko-bot
0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-03 15:08 UTC (permalink / raw)
To: Anurag Pateriya; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] arm64: dts: qcom: unresolved remoteproc_soccp target in
nord-embedded-el2.dtso
- [High] arm64: dts: qcom: remoteproc_adsp iommus conflicts with
early_boot attach
- [Medium] arm64: dts: qcom: remoteproc_soccp iommus exceeds PAS binding
maxItems
--
commit 0cdd370e021f3eaaff243295f942b9061ce216ca
Author: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
This commit adds the nord-embedded-el2.dtso overlay describing IOMMU
mappings for Nord remoteprocs and wires it up in the Makefile to build
nord-ride-embedded-el2.dtb and nord-rrd-el2.dtb.
> diff --git a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
> new file mode 100644
> index 0000000000000..50c5057f6683a
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
> @@ -0,0 +1,32 @@
[ ... ]
> +&remoteproc_adsp {
> + iommus = <&apps_smmu_0 0x09e0 0x0>;
> +};
[Severity: High]
Does adding iommus to remoteproc_adsp break ADSP bringup on EL2?
nord_adsp_resource in drivers/remoteproc/qcom_q6v5_pas.c sets both
auto_boot and early_boot. If the bootloader pre-booted ADSP,
qcom,nord-adsp-pas is absent from qcom_smmu_client_of_match[], so the
IOMMU core attaches a translated domain before qcom_pas_probe() runs.
Even with passthrough default domains, qcom_pas_probe() sets
RPROC_DETACHED, so rproc_attach() -> rproc_enable_iommu() attaches an
empty paging domain while qcom_pas_attach() maps no carveouts, causing
SMMU translation faults (and unbalanced unmaps in qcom_pas_stop()).
If the bootloader did not pre-boot ADSP, qcom_pas_probe() still sets
RPROC_DETACHED, qcom_pas_attach() returns -EINVAL on !ready_state, and
rproc_boot() exits without falling back to rproc_fw_boot(), leaving
ADSP offline.
[ ... ]
> +&remoteproc_soccp {
> + iommus = <&apps_smmu_0 0x1960 0x5>,
> + <&apps_smmu_0 0x1966 0x0>;
> +};
[Severity: High]
Does &remoteproc_soccp break dtbs builds with fdtoverlay?
No remoteproc_soccp label exists in any Nord device tree file, so
fdtoverlay fails in overlay_fixup_phandle() with -FDT_ERR_NOTFOUND when
building nord-ride-embedded-el2.dtb and nord-rrd-el2.dtb with
CONFIG_ARCH_QCOM=y.
[Severity: Medium]
Do the two iommus entries on remoteproc_soccp violate the PAS binding?
Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml
restricts iommus to maxItems: 1, and qcom,nord-pas.yaml has neither a
Nord SoCCP compatible nor an iommus override, which will fail
dtbs_check.
In addition, drivers/remoteproc/qcom_q6v5_pas.c has no Nord SoCCP entry
in qcom_pas_of_match[], and qcom_pas_map_carveout() maps carveouts
without IOMMU_PRIV.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-nord_soccp_el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com?part=1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay
2026-12-03 14:53 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay Anurag Pateriya
@ 2026-12-03 15:10 ` sashiko-bot
0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-12-03 15:10 UTC (permalink / raw)
To: Anurag Pateriya; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] arm64: dts: qcom: undefined remoteproc_adsp1/2 labels break
fdtoverlay build
- [High] arm64: dts: qcom: undefined remoteproc_soccp label breaks
fdtoverlay build
- [High] arm64: dts: qcom: remoteproc_adsp iommus conflicts with
early_boot attach
--
commit d79dd601e4e5f01dda32b4f81a08cf8703569fda
Author: Anurag Pateriya <anurag.pateriya@oss.qualcomm.com>
arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay
This commit adds apps_smmu_0 iommus entries for remoteproc_adsp1 and
remoteproc_adsp2 to the Nord EL2 device tree overlay.
> ADSP1 and ADSP2 remoteproc nodes are now enabled on Nord boards. When
> Linux boots at EL2 without the hypervisor, it owns the SMMU and has to
> describe the firmware streams of these remote processors as well, just
> like the ADSP, CDSPs and SoCCP already covered by the overlay.
[Severity: High]
Does the &remoteproc_soccp fragment added by commit "arm64: dts: qcom:
nord: Add EL2 overlay for remoteproc SMMU mappings" also break the DTB
build?
No remoteproc_soccp node exists in nord.dtsi or any other Nord DTS file
(nord.dtsi only defines SoCCP reserved-memory regions). When fdtoverlay
applies nord-embedded-el2.dtbo to nord-ride-embedded.dtb and
nord-rrd.dtb, overlay_fixup_phandle() fails with -FDT_ERR_NOTFOUND.
In addition, &remoteproc_soccp lists two iommus entries, which conflicts
with Documentation/devicetree/bindings/remoteproc/qcom,pas-common.yaml
(maxItems: 1) and will fail dtbs_check once the node is added unless the
binding is updated.
> diff --git a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
> index 50c5057f6683a..cd6a1531b2f2d 100644
> --- a/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
> +++ b/arch/arm64/boot/dts/qcom/nord-embedded-el2.dtso
> @@ -10,6 +10,14 @@ &remoteproc_adsp {
> iommus = <&apps_smmu_0 0x09e0 0x0>;
> };
[Severity: High]
Will attaching an iommus entry to &remoteproc_adsp cause SMMU translation
faults on boot?
In nord.dtsi, remoteproc_adsp has compatible "qcom,nord-adsp-pas", which
uses nord_adsp_resource in qcom_q6v5_pas.c with early_boot set. Because
qcom,nord-adsp-pas is not in qcom_smmu_client_of_match[],
qcom_smmu_def_domain_type() does not assign IOMMU_DOMAIN_IDENTITY.
qcom_pas_probe() then sets rproc->has_iommu = true and RPROC_DETACHED, so
rproc_boot() -> rproc_attach() -> rproc_enable_iommu() attaches an empty
paging domain to SID 0x09e0 without mapping carveouts. That replaces the
bootloader bypass while ADSP is running (as noted in x1-el2-pas.dtso).
>
> +&remoteproc_adsp1 {
> + iommus = <&apps_smmu_0 0x0a08 0x0>;
> +};
> +
> +&remoteproc_adsp2 {
> + iommus = <&apps_smmu_0 0x0a30 0x0>;
> +};
[Severity: High]
Are remoteproc_adsp1 and remoteproc_adsp2 defined in any base Nord DTS
file?
nord.dtsi only defines remoteproc_adsp and remoteproc_cdsp0..3, and
neither new label exists anywhere in the tree. When fdtoverlay applies
nord-embedded-el2.dtbo to nord-ride-embedded.dtb and nord-rrd.dtb,
overlay_fixup_phandle() returns -FDT_ERR_NOTFOUND and breaks make dtbs.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-nord_soccp_el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com?part=2
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-12-03 15:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 14:53 [PATCH v2 0/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings Anurag Pateriya
2026-12-03 14:53 ` [PATCH v2 1/2] " Anurag Pateriya
2026-12-03 15:08 ` sashiko-bot
2026-12-03 14:53 ` [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay Anurag Pateriya
2026-12-03 15:10 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox