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=1796336507; b=FQ/XcmpA98QCShHE6sdRreEFWtzGCHLr7hU/hWBmET0Hb67dUWs+Vwemaj4YfYvVg5QS ZRFAHKnSmVQSBBIoRUVVXuXMwu+hdtZj4cLu1J6fYAMwEklqZBEoq9YkklNZCyZndQs1k y6r0MY2GXyQ3df4D0MLgl3hP7m/XdUysWaisoIx7NtWRS7J7RP95w9OJFsm6WViihG951 YJ//SBUbarWfFnCMgpWjhv6ost/4PMELDyvz9d4XZv6ZKxsLiWBMSDkOwT/XaSo+mV8Or cuur6QnZ4hC9zGk15A5LQwRu8SQYSorCkXCTVC2Z3JfJnpP3fAmdgYMqL1USNi0WVvw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796336507; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=x3qQQCC2DttjMM3mR39NaXZwVgG1lABISditHszmPCE=; b=Budb7qf/781Rz3pgum9TZIV8FkfZDQQHHRv6/lGjORlXP56jRquph3TYGb03HunkQFel qW1rWnSj7UG/I35L1pSADeoZ8X4IoOA8kmIkKzbOGOfWzsvtTuISJFy9w+NW4hC/y7d7V 4+EqiCgwwsYdGCt7N+XcMsj+PyZpog4OV3pWUvVCXaAeNJt0KokEuEeL4AoGMQpJ4nWVU 5tuPu+MLBrJLfSGoUHBU/UP/J7I9gzKZLzytpJNQZ29eoXWKC6AlxFtsA88UHL2IZZ1QF lgw9ihjUQlhrq5GNHnp4q+kVJ6IidSIwWsGPFec05RwuV3MDY96CP2dafGXm8QxS20Q== 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=BNFRrSHN; 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 C7769606A322 for ; Thu, 3 Dec 2026 22:21: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=BNFRrSHN Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27D441F000C2; Thu, 3 Dec 2026 22:21:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796336507; bh=x3qQQCC2DttjMM3mR39NaXZwVgG1lABISditHszmPCE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=BNFRrSHNHD/tsC4skU6t8hGKaji04Exm4912O0f3tQ/CbeVAF4LqGOgPyQK1E1DQv 4j/jOljFCzFn4n0g7aeZmufKUv2hgnYyB4jaF6IY3o/yy6xsv9nI9wcZJDdIK1kiip Y4vMCIJTLHrsOvGQVHhkKjzhRsBFkT8VlI89Zby7VLQ+0tayVIt2PVGz2WT/1XC0mt 4By6/hNqx9mEEagESc+3sHvnPFayAcLCdPyv3IggU0gPvFjV7AIu1PzgbzwRpFEmZH B1xjgSuxE26VoR5zrYf3RlyY6j/mYyo8FmezptLsvBacOiDfoVNSIkyvPBBAVloe9+ ysLhgPOgWyMcg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] arm64: dts: amlogic: meson-sm1-khadas-vim3l: Enable NPU Reply-To: sashiko-reviews@lists.linux.dev To: "Daniel Drake" Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, robh@kernel.org, conor+dt@kernel.org, neil.armstrong@linaro.org In-Reply-To: <20261203-vim3l-npu-dts-v1-2-66070d7ff83e@baylibre.com> References: <20261203-vim3l-npu-dts-v1-0-66070d7ff83e@baylibre.com> <20261203-vim3l-npu-dts-v1-2-66070d7ff83e@baylibre.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 22:21: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 1 potential issue to consider: - [Medium] pmdomain: meson-ee-pwrc: sm1_pwrc_mem_nna only masks 0xff in NANOQ regs -- commit a3044788ce55542c20bfaad8827c7dd78056cc92 Author: Daniel Drake arm64: dts: amlogic: meson-sm1-khadas-vim3l: Enable NPU This commit enables the VIPPico v3 NPU node on the Khadas VIM3L board. > diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts b/arc= h/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts > index 4e1e9a5026666..fbf5136c56311 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts > +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dts > @@ -97,3 +97,7 @@ &usb { > &sd_emmc_a { > sd-uhs-sdr50; > }; > + > +&npu { > + status =3D "okay"; > +}; [Severity: Medium] Are the 0xff masks in sm1_pwrc_mem_nna sufficient for the S905D3 NPU? Enabling npu on Khadas VIM3L is the first in-tree SM1 user of PWRC_SM1_NNA_ID. Unlike every other table entry in drivers/pmdomain/amlogic/meson-ee-pwrc.c, sm1_pwrc_mem_nna uses raw 0xff masks instead of GENMASK(): drivers/pmdomain/amlogic/meson-ee-pwrc.c: static const struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_nna[] =3D { { HHI_NANOQ_MEM_PD_REG0, 0xff }, { HHI_NANOQ_MEM_PD_REG1, 0xff }, }; meson_ee_pwrc_on() and meson_ee_pwrc_off() only touch the masked bits, leaving bits 31:8 unchanged. On g12a_pwrc_mem_nna, leaving upper bits unmasked caused NPU hangs until commit b131329b9bfb ("pmdomain: amlogic: Fix mask for the second NNA mem PD domain") set both to GENMASK(31, 0). If S905D3 uses bits 31:8 for NNA SRAM power-down, meson_ee_pwrc_on() will leave those banks powered down and cause NPU hangs or faults, while meson_ee_pwrc_off() will fail to power them down. Should the masks be verified against the S905D3 documentation or vendor BSP? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-vim3l-npu-= dts-v1-0-66070d7ff83e@baylibre.com?part=3D2