Devicetree
 help / color / mirror / Atom feed
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 1/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings
Date: Thu, 03 Dec 2026 15:08:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-248072@kernel.org> (raw)
In-Reply-To: <20261203-nord_soccp_el2_dt_change-v2-1-93a7dfcae3e0@oss.qualcomm.com>

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

  reply	other threads:[~2026-12-03 15:08 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 [this message]
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

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-248072@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