mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: Neil Armstrong <neil.armstrong@linaro.org>
To: Daniel Drake <ddrake@baylibre.com>, Ulf Hansson <ulfh@kernel.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
Subject: Re: [PATCH] pmdomain: amlogic: meson-ee-pwrc: Power up all SM1 NNA memory
Date: Fri, 4 Dec 2026 09:16:12 +0100	[thread overview]
Message-ID: <4c2d9ea3-e083-4492-8136-c1128424e6b9@linaro.org> (raw)
In-Reply-To: <20261203-vim3l-npu-pmdomain-v1-1-a84e7b2c567e@baylibre.com>

On 12/3/26 22:46, Daniel Drake wrote:
> 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,

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

Thanks,
Neil

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

      parent reply	other threads:[~2026-12-04  8:16 UTC|newest]

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

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=4c2d9ea3-e083-4492-8136-c1128424e6b9@linaro.org \
    --to=neil.armstrong@linaro.org \
    --cc=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=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®