[PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory

Daniel Drake ddrake at baylibre.com
Thu Dec 3 13:46:17 PST 2026


With only the lower 8 bits of the HHI_NANOQ_MEM_PD registers being used
to control NPU SRAM power, most of the SRAM was left powered down, and
jobs on the NPU would never complete.

Assign all 32 bits here, matching the khadas-vims-5.15.y vendor kernel,
and also matching G12A since commit b131329b9bfb ("pmdomain: amlogic:
Fix mask for the second NNA mem PD domain"). NPU jobs on the Khadas
VIM3L can now run to completion.

Link: https://github.com/khadas/linux/commit/26880f8932f5a03fce5481ddda29b2ec7ef45c1d
Signed-off-by: Daniel Drake <ddrake at baylibre.com>
---
 drivers/pmdomain/amlogic/meson-ee-pwrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pmdomain/amlogic/meson-ee-pwrc.c b/drivers/pmdomain/amlogic/meson-ee-pwrc.c
index 338f70d77bf0..7560603cab4c 100644
--- a/drivers/pmdomain/amlogic/meson-ee-pwrc.c
+++ b/drivers/pmdomain/amlogic/meson-ee-pwrc.c
@@ -199,8 +199,8 @@ static const struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_vpu[] = {
 };
 
 static const struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_nna[] = {
-	{ HHI_NANOQ_MEM_PD_REG0, 0xff },
-	{ HHI_NANOQ_MEM_PD_REG1, 0xff },
+	{ HHI_NANOQ_MEM_PD_REG0, GENMASK(31, 0) },
+	{ HHI_NANOQ_MEM_PD_REG1, GENMASK(31, 0) },
 };
 
 static const struct meson_ee_pwrc_mem_domain sm1_pwrc_mem_usb[] = {

---
base-commit: 8d7fe9885c62fc9a95bf55d9db244d9672a8aadc
change-id: 20261203-vim3l-npu-pmdomain-dd27e997791b

Best regards,
-- 
Daniel Drake <ddrake at baylibre.com>




More information about the linux-arm-kernel mailing list