From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796310511; b=h3t0GbEr/K6bF+ghsNTXLWrfCClDhz94Hesgcr4CDRRlyPmUmlo96mdt5gTSrdI214sq MyQoB2d7RRoxNSGtsSwdG3UaTNU67DaaXTTntgvgwQgxWR8OX5pIO48yasDXtAsw+nD2p +EvM+FN6217KuOJd24+NjtvpXw9ZQrm3X6q0tQEI92IAwys4AqUv3XqmHVh8B9NoM7QLb QisBcG7HchM8/4WyPN5fUNwsFuChqqLJ38SDchXi9I4ZolOu9G6yfz5u4V5eKhbNPvjDp EK9hcZfM4qCx0PljFIDUAmOvmemSGqmWbOCaiafTQ06E9tlYNZ3jjMwjiphYdkotlxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310511; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=L49LeoEYlvhUlwnJfaloFmwuKI0q1t+iUFxl9u9ayqE=; b=qzCcbdkELYn5JaTWvBY/P4lBNwue8O7hsPgD3tcejg/WR1l/y47NBOKw0+7/8Ha9n305 jzyHTQln5Q7ULuyRpYO1icoYOVQde4EzJG03HyIqE1Ofsc6fEOl4kPtw/7fCZaS7CcYes zBz/qWKbtoWVQTTYbfZ1enniwSaVaZy4ZXV4xuPqPSej55pCyrwxwkK1eBs2BC6S5SjF5 HVH2L166DRxbn1cpl+WPsLudgy3ykzqvlm4N6RssFM6r3U2YDmfFxyzPH7BEiyGG6cOdt VjBowTp5RT+FWzYDzYQV8ltLd2lb8/j1wtyZF0tAIluBD2k6ngMYfc3rIZyK9gCZSiA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="E0Oc/Bjm"; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C641606A336 for ; Thu, 3 Dec 2026 15:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=E0Oc/Bjm Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE6D11F00896; Thu, 3 Dec 2026 15:08:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310510; bh=L49LeoEYlvhUlwnJfaloFmwuKI0q1t+iUFxl9u9ayqE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=E0Oc/BjmLeeZ58gD8RnEBJGnXWdOg8ZBNyA+cqkN2Sqfqyo48ePsVR9lpYpPOEeNl JOTVMuACXZ/IIliqKQuBtbSRlLRpNr2XJWk6aEpMGvEgceSZpscb5ZIQj4tIwPgAfK IHg5M2PIeGJeVma2SzRm3892+czEwRBgBrZmlN50o0Ud3GVX82H8eeZX9HTMkKekx4 cqRqiLhlD7Mf7lV1a9/3m9tgTQhAAk99PMsbVuYvNE8kNiDUYUPhwVUlZY4cfTOd4L 3E4XDXr+ld5YXfxdIZmXbSU8Waruzv3u3cImeKcQcX+zV49ing3EH66DpVOOwlwegP /AscAjzmQ7p9w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 1/2] arm64: dts: qcom: nord: Add EL2 overlay for remoteproc SMMU mappings Reply-To: sashiko-reviews@lists.linux.dev To: "Anurag Pateriya" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-nord_soccp_el2_dt_change-v2-1-93a7dfcae3e0@oss.qualcomm.com> References: <20261203-nord_soccp_el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com> <20261203-nord_soccp_el2_dt_change-v2-1-93a7dfcae3e0@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:08:30 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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 =3D <&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 =3D <&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=3Dy. [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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-nord_soccp= _el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com?part=3D1