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=1796212502; b=w89UFBGSNPhOR0R4ZagVJIze9tAKkDBE/CB9KLBR3RDqPetgHZrFzxWsvP5ldvzvOKBd tN5DjoFULrIaZa62CaqmPX5CHcSAnXfWeTKs5ya22XCdXHqdGBrcWmi10x+Hl4RuTdpYf zkEcxehD16XoMAGvf1kACAGf/oo3x55b5nIAmxo7+6hq2/nAIAXrMw58eh1860NqGBcrT GQLQcadQ26YpzexGJ0tc59+Xtl7C44dU/tXig3zVubiLMH3VqsyDyoVK18lrBW1cPdSIM g+vq9DPWvx2hr4AJe0lnnG7/mqWdZYi35ldw6z800b04NDP7GpMfMhANSxQiqhmDkTw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796212502; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=/olfAvXFBkVE7vzAWzrQUgI4hFIqZOkeQncuzfXg1sE=; b=WtRWNRB3sBbXsL5EqCR8imi33xZcIN1NqNb+4dyapSa4ywe6VNnZJeuOw1zsMV1GatLZ IG2rjMzrtl99YFwFiOFvHNUcpwKofq3w7BfA41fZ1f6JQgsI3CB8W3K7s+5Y3l+BOO3tl NkX99G5uucn+kwInsnxgn+vjXwvaOapt/642SqSHkLa0X8nEaTW3Z2gmloxA2TaxB/KH3 jolPPvH0GmMTB97naK1XG0os3flDmL7oNDtnmIKUIXy4wCJts0FOdHI1qzm9UMmPnjepg kp4rFhoEfB9sRZyByZPq2ysMoJpYBKkfgIochclCL3VD1AfwFnLQQFF6GqpVFKN5xAw== 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=dkmMotSH; 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 D19FE606A322 for ; Wed, 2 Dec 2026 11:55:02 +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=dkmMotSH Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39B731F000C1; Wed, 2 Dec 2026 11:55:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796212502; bh=/olfAvXFBkVE7vzAWzrQUgI4hFIqZOkeQncuzfXg1sE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=dkmMotSHUZHVZL4PTCW9lwr6h/Ysr8+K3JxNZGhEPOl0YY9PhdLWv1ztgL0oJczWj e4A94ec3cgIBYb42tlmTHbQ/GhfXrTxIwc1hPhe7qUUt8l8PGDfhwKBU2S4fbixT9B Xzl3RmcDFfJ/0S8na87zOXpjS7FMQ/w1JTaJEA6r1h2qfyulUHslYVIppl55NbLxOZ 7CJ/8eoG6ti168knKa2Xc4s6/3rveiZ4kVsl/Wk8ZEhOvQtRPZSvZyIDdsPK8UCNg5 yl1yQi7Yg5n/RTibOa8P6uH3YfqgISUEGYKwHdOpZ9uMqzIzodxoD4frBfHRMIzNbJ hpzTNyk4q/u6w== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 3/3] arm64: dts: qcom: Add eFuse nvmem cells for Ethernet MAC addresses Reply-To: sashiko-reviews@lists.linux.dev To: "Hongmei Xu" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261202-nvmem-byte-mask-for-split-macaddr-v4-3-039f1b0afeca@oss.qualcomm.com> References: <20261202-nvmem-byte-mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com> <20261202-nvmem-byte-mask-for-split-macaddr-v4-3-039f1b0afeca@oss.qualcomm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 11:55:00 +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 4 potential issues to consider: - [Medium] arm64: dts: qcom: nord: efuse@360d4320 maps 8-byte register slice as qfprom - [Low] arm64: dts: qcom: unaligned 6-byte mac-addr0 cell logs dev_err() on boot - [Low] arm64: dts: qcom: efuse@360d4320 placed out of unit-address order in soc@0 - [Low] arm64: dts: qcom: unnecessary #address-cells/#size-cells on efuse@360d4320 -- commit 0e88df0ea7f12e01b6e2d01adae2774d3c1a1151 Author: Hongmei Xu arm64: dts: qcom: Add eFuse nvmem cells for Ethernet MAC addresses This commit adds a QFPROM eFuse node to nord.dtsi to expose the EMAC0 and EMAC1 Ethernet MAC addresses stored in OEM_CONFIG8/9 as nvmem cells. > diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qco= m/nord.dtsi > index fdbe290350ddd..cfe1f39648fbc 100644 > --- a/arch/arm64/boot/dts/qcom/nord.dtsi > +++ b/arch/arm64/boot/dts/qcom/nord.dtsi > @@ -1471,6 +1471,28 @@ rng: rng@10c3000 { > reg =3D <0x0 0x010c3000 0x0 0x1000>; > }; > =20 > + efuse: efuse@360d4320 { > + compatible =3D "qcom,nord-qfprom", "qcom,qfprom"; > + reg =3D <0x0 0x360d4320 0x0 0x8>; [Severity: Medium] Should this node describe the QFPROM corrected region at its block base address (0x360d4000) with the MAC address cells at offset 0x320, rather than mapping only the 8-byte OEM_CONFIG8/9 register slice at 0x360d4320? In Documentation/devicetree/bindings/nvmem/qcom,qfprom.yaml, the reg property represents the QFPROM corrected region as a whole, with individual fuses defined as child cells at their register offsets. Modeling an 8-byte fuse slice as its own qcom,nord-qfprom device prevents adding other fuse cells from the same QFPROM block later without breaking the Devicetree ABI or instantiating multiple qcom,qfprom devices for the same hardware block. > + #address-cells =3D <1>; > + #size-cells =3D <1>; [Severity: Low] Are #address-cells and #size-cells needed on efuse@360d4320 itself? Because the cells are placed inside the nvmem-layout child node (which has no reg or ranges property and defines its own #address-cells and #size-cells), building the DTB with W=3D1 triggers a dtc avoid_unnecessary_addr_size warning on efuse@360d4320. > + > + nvmem-layout { > + compatible =3D "fixed-layout"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + mac_addr0: mac-addr0@0 { > + reg =3D <0x0 0x6>; > + }; [Severity: Low] Does registering mac-addr0 log an unaligned raw_len error via dev_err() on every boot? qfprom_probe() sets word_size =3D 4, and for a word-aligned cell offset qfprom_fixup_dt_cell_info() leaves cell->nbits as 0: drivers/nvmem/qfprom.c:qfprom_fixup_dt_cell_info() { unsigned int byte_offset =3D cell->offset % sizeof(u32); cell->bit_offset +=3D byte_offset * BITS_PER_BYTE; cell->offset -=3D byte_offset; if (byte_offset && !cell->nbits) cell->nbits =3D cell->bytes * BITS_PER_BYTE; } In nvmem_cell_info_to_nvmem_cell_entry_nodup(), cell->raw_len is only rounded up to nvmem->word_size ahead of the alignment check when cell->nbits or cell->byte_mask is non-zero. Because mac-addr0 has neither bits nor byte-mask, cell->raw_len remains 6 and hits the !IS_ALIGNED() dev_err() path ("cell mac-addr0 raw len 6 unaligned to nvmem word size 4"). > + > + mac_addr1: mac-addr1@0,1 { > + reg =3D <0x0 0x6>; > + byte-mask =3D <0x5f>; > + }; > + }; > + }; > + > ufs_mem_hc: ufshc@1d44000 { > compatible =3D "qcom,nord-ufshc", > "qcom,ufshc", [Severity: Low] This isn't a bug, but efuse@360d4320 (0x360d4320) is placed between rng@10c3000 (0x010c3000) and ufshc@1d44000 (0x01d44000). To keep the nodes under soc@0 sorted by unit address, it should be placed after system-cache-controller@21800000. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-nvmem-byte= -mask-for-split-macaddr-v4-0-039f1b0afeca@oss.qualcomm.com?part=3D3