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=1796461516; b=w1G3KD5zU9VY44IllsqfW2MBkwkCDP0GQS0BZ6RrrrnAPF85TKgrLwgL/SvA4DPOkyjw kGR4LRkUH/rSSe54iBPOBrvaM055Nh7Zt4MKs/9M+KhW92KLUSOzb7wrU578mVA9LAo2E Th/3X+Z1B0sewb5Kl/PzVl5R1XOFVspZqWnjMLIpmiiBOtCwL8R0WQGsS/tevVrNSC17k JTE+5Td/txZzG5U4/IIvzsF3DSvVvCZQen8mqSz0FmVCWTvXRAxbTs5/fHYQC+w0Z8bFx 1s7AwwBcgjTVqQB0FybD9CrXNZLD4SK6p2RKx6eaoJezeXqzTBxsEGvhiXWOoohJAgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796461516; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=zNogymc+25Nm+headI/ybHpJchwn3G5FiT+jsB1q7GA=; b=ZU3D00KqtDLVieSVCzEDxApolSIhKqDj1t/RUhl+OFCd8s7Jqrcyt3NjY36jCfqySKfz li5BB+cz3YUwveKXQUmq8aIsiyRvUGR2PRnUIdRgoFQvs2A/iUIyppWMf9bu9k5FpRrwv miv+E8DeiKyUycV9bGbgmIaLdD7crANtdys0MiUmm7AOMnVRvoU11KDALxaq+P7siiwyc /mmUwOVy5NaBnML0OXH+58eYdxmfwqyF5GaAjYJSjVUQ4RjsESB4Qzd3R8zP/fAsE42+H M3KfKYm/Yi9r5yTsKsXRnr4rM7Hprmdyi0e/zuMGrlXSubMO+eVwQ7wglZubAlPqtoQ== 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=BKI4PB8z; 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 40D6B606A322 for ; Sat, 5 Dec 2026 09:05:15 +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=BKI4PB8z Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CD981F0092B; Sat, 5 Dec 2026 09:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796461515; bh=zNogymc+25Nm+headI/ybHpJchwn3G5FiT+jsB1q7GA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=BKI4PB8z6mYHQ0FlulPvRx5E55mJ9znNIFKpSsdrxcqgLEFBzD3evrlL/CIPnU6wV WE1Qag5DZztY5ljCBMi2JAvWiyK78XW7jzCyNTCz24MKfVSRqVD7QyDE3jeyewTIU4 ZjS8v1pfgxymthBm4h4H6JlhMNmB9vkWs33evxkY3Rgoh+8GDMh/xFQRJmCgAy4Oue 8Sb6b5X7XGrjX49mJhghGgtaYUmnUqVimblEj33hR9KdIjHmCy3RAI/n8ELrROfWDv Y9sQnu7Tq8/S8b01pfpSXIyNH5S6UKjtP4rmxt3CAspxvb0cbcnrk/FIgHHF+2JKym AatONhbnjU4qw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 5/5] ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox Reply-To: sashiko-reviews@lists.linux.dev To: "Ho Jie Feng" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205084221.1564842-6-hjf3108@gmail.com> References: <20261205084221.1564842-1-hjf3108@gmail.com> <20261205084221.1564842-6-hjf3108@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 09:05:15 +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: - [Medium] ARM: dts: bcm47622: PDC and SPU-M drivers unselectable under ARCH_BCMBCA - [Medium] dts: bcm47622: brcm,rx-status-len set to 4 instead of 32 for SPU-M PDC - [Low] dts: bcm47622: MMIO mailbox and crypto nodes placed directly under root -- commit 9b37dffc02320c47556912541d2497ae711c3692 Author: Ho Jie Feng ARM: dts: bcm47622: Add SPU-M crypto engine and PDC mailbox This commit adds the iProc PDC mailbox and SPU-M symmetric crypto engine nodes to the BCM47622 devicetree include file. > diff --git a/arch/arm/boot/dts/broadcom/bcm47622.dtsi b/arch/arm/boot/dts= /broadcom/bcm47622.dtsi > index 182ec9bcd3411..60e1f556a1654 100644 > --- a/arch/arm/boot/dts/broadcom/bcm47622.dtsi > +++ b/arch/arm/boot/dts/broadcom/bcm47622.dtsi > @@ -102,6 +102,21 @@ psci { > method =3D "smc"; > }; > =20 > + pdc: mailbox@8001c000 { > + compatible =3D "brcm,iproc-pdc-mbox"; > + reg =3D <0x8001c000 0x448>; > + interrupts =3D ; > + #mbox-cells =3D <1>; > + brcm,rx-status-len =3D <4>; > + brcm,use-bcm-hdr; [Severity: Medium] Should brcm,rx-status-len be 32 instead of 4 here? Every other in-tree PDC/FA2 node paired with brcm,spum-crypto and brcm,use-bcm-hdr (in ns2.dtsi, bcm-nsp.dtsi, and the binding example) uses 32, matching PDC_SPUM_RESP_HDR_LEN in bcm-pdc-mailbox.c rather than the 4-byte trailing SPU_RX_STATUS_LEN. With 4, pdc_rx_buf_pool_create() sizes pdc_resp_hdr_len to 12 bytes instead of 40 and pdc_ring_init() programs RcvOffset to 4. If BCM47622 hardware prepends a 32-byte DMA RX status header like other SPU-M PDC integrations, RX metadata will spill into dst_sg and corrupt responses. > + }; > + > + crypto@8001d000 { > + compatible =3D "brcm,spum-crypto"; > + reg =3D <0x8001d000 0x64>; > + mboxes =3D <&pdc 0>; > + }; [Severity: Medium] Can the matching drivers for these nodes be selected on ARCH_BCMBCA? bcm947622.dtb is built under ARCH_BCMBCA, which does not select ARCH_BCM_IPROC. CRYPTO_DEV_BCM_SPU depends on ARCH_BCM_IPROC and BCM_PDC_MBOX depends on ARCH_BCM_IPROC || COMPILE_TEST, so a standalone ARCH_BCMBCA build cannot enable these drivers without Kconfig updates. > + > axi@81000000 { > compatible =3D "simple-bus"; > #address-cells =3D <1>; [Severity: Low] Would it be better to place mailbox@8001c000 and crypto@8001d000 inside a simple-bus container node rather than directly under the root node? Documentation/devicetree/bindings/writing-bindings.rst recommends placing all MMIO devices under a bus node, matching axi@81000000 and the other BCMBCA SoC DTSI files. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205084221.1564= 842-1-hjf3108@gmail.com?part=3D5