Linux-Amlogic Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory
@ 2026-12-03 21:46 Daniel Drake
  2026-12-03 21:54 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2026-12-03 21:46 UTC (permalink / raw)
  To: Ulf Hansson, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl
  Cc: linux-pm, linux-arm-kernel, linux-amlogic, Daniel Drake

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@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@baylibre.com>


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory
  2026-12-03 21:46 [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory Daniel Drake
@ 2026-12-03 21:54 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-12-03 21:54 UTC (permalink / raw)
  To: Daniel Drake; +Cc: linux-amlogic, neil.armstrong

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] pmdomain: amlogic: missing Fixes trailer referencing commit
  eef3c2ba0a42
--

commit fd98211e53d764eed57b7a58fe5db08adf005df5
Author: Daniel Drake <ddrake@baylibre.com>

> pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory
>
> 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@baylibre.com>

[Severity: Low]
This fixes the 0xff register masks in sm1_pwrc_mem_nna originally
introduced with SM1 support.  Should this include:

  Fixes: eef3c2ba0a42 ("soc: amlogic: Add support for Everything-Else power domains controller")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-vim3l-npu-pmdomain-v1-1-a84e7b2c567e@baylibre.com?part=1

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 21:46 [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory Daniel Drake
2026-12-03 21:54 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox