From: sashiko-bot@kernel.org
To: "Anurag Pateriya" <anurag.pateriya@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay
Date: Thu, 03 Dec 2026 15:10:46 +0000 [thread overview]
Message-ID: <sashiko-outbox-248075@kernel.org> (raw)
In-Reply-To: <20261203-nord_soccp_el2_dt_change-v2-2-93a7dfcae3e0@oss.qualcomm.com>
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
prev parent reply other threads:[~2026-12-03 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=sashiko-outbox-248075@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=anurag.pateriya@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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