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=1796310647; b=dtc3rZdgQOTKtbLve7VTAVqtBxyKefUCBB1czNYfmTsE1UVjWrHbYEW+Xs0sCdF8fnhv vZtgVr2qrLntMNmM7ywf0cwX3tBZXMPzrKp8v3xdFiDX8e0fs+g7fTEKpv4gymAFhSxGp e6/8V3D0gju/mfNz8EzD+SBf7LyHU57ofr6u8zKR6pzAZFvGZmUq5lzzJ1dgPPHNQcYLA UQzX4x50UR7C7hLVuSfMb+JB+qDPL57OcRSufyj3Wy46SgaxYMq9GZabefUvF7V2SK5Ij r8HDqM1skialJLe6WQasGWUptF224WHlXtKfOwbtRKzfOgzi66yOg5UmR9VIym5hS4Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796310647; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=O503OwQ1SNxn8x3Lq0cpYXv0pHl6+STv1+IfRq3VmJk=; b=Q7oDLMqoNfwrqYGTQlhyQRwhbeXrQ0UwYKcKwuGbj9hsx2/VPjN+T6ws3A5nUOZ25hnF nTEMkFeB+80UKdAibqbnAlOGeJ+5PiSgHOCZId6278W1oO1IIsy7OuLWGS6CGPYGl9Ilm 6saE4faGrnACBaYb/jjn+312+MIsG71FqvQ5kClhQkjoruVY/oudQP6wB0twAOMoc7dMl 7ernRtUeZ5yFUtzojU3PxUoQhiyd6JLz3+L2LekZ5zQK1fu7tbiPsP11kRqIsch6BkG/l j0ybEtfmvpeql15dxFCfOK2t6ni5eHnnzAe6iiGddWZACkui6BH5f3jbrKuctLI0tLw== 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=LfiW2a1P; 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 5E245606A322 for ; Thu, 3 Dec 2026 15:10:47 +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=LfiW2a1P Received: by smtp.kernel.org (Postfix) with ESMTPSA id 860AF1F0089B; Thu, 3 Dec 2026 15:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796310646; bh=O503OwQ1SNxn8x3Lq0cpYXv0pHl6+STv1+IfRq3VmJk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=LfiW2a1Pj7PB8Ff+IeuA0HLcOk70u2ZC2VYv7JlczW52PnbEUyfVj80wkf0WB0DDB rQ5iyNs5Nn2l+kxIFX/KxIXcT0Vhqbmkxa8Wg0BWJkOwyjelEtX+To9fIRRRCfxhOe JqAAONg8+QtTc+jb8PAcRa/RWZ2E5wjHIKw4oeVqv4kxwFiuCj90qYOWABRLgeqvy2 OfKtlVDHdKSDAGF0bQIwzqhkWOeDBfmuYygChMf/TqfwnkC1wU4wiXZ2nVBBoJZMn1 aRe0E884GQT0EQ2+ZAKqlKK/gZrpiiBbnv7MkD+Ik2LoFbvuYIrBe1g3Ps00gtOYui mqeKWg+6xBQEQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: nord: Add ADSP1/2 SMMU mappings to EL2 overlay 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-2-93a7dfcae3e0@oss.qualcomm.com> References: <20261203-nord_soccp_el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com> <20261203-nord_soccp_el2_dt_change-v2-2-93a7dfcae3e0@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 15:10:46 +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: 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 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 =3D <&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 =3D 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). > =20 > +&remoteproc_adsp1 { > + iommus =3D <&apps_smmu_0 0x0a08 0x0>; > +}; > + > +&remoteproc_adsp2 { > + iommus =3D <&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. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-nord_soccp= _el2_dt_change-v2-0-93a7dfcae3e0@oss.qualcomm.com?part=3D2