mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: Daniel Drake <ddrake@baylibre.com>
To: Ulf Hansson <ulfh@kernel.org>,
	 Neil Armstrong <neil.armstrong@linaro.org>,
	 Kevin Hilman <khilman@baylibre.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	 linux-amlogic@lists.infradead.org,
	Daniel Drake <ddrake@baylibre.com>
Subject: [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory
Date: Thu, 03 Dec 2026 21:46:17 +0000	[thread overview]
Message-ID: <20261203-vim3l-npu-pmdomain-v1-1-a84e7b2c567e@baylibre.com> (raw)

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

             reply	other threads:[~2026-12-03 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 21:46 Daniel Drake [this message]
2026-12-03 21:54 ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203-vim3l-npu-pmdomain-v1-1-a84e7b2c567e@baylibre.com \
    --to=ddrake@baylibre.com \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=ulfh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®