From: Kevin Hilman <khilman@kernel.org>
To: Jerome Brunet <jbrunet@baylibre.com>,
Lucas Stach <l.stach@pengutronix.de>,
Russell King <linux+etnaviv@armlinux.org.uk>,
Christian Gmeiner <christian.gmeiner@gmail.com>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Philipp Zabel <p.zabel@pengutronix.de>,
Simon Lenain <simon.lenain@thalesgroup.com>,
LECOINTRE Philippe <philippe.lecointre@thalesgroup.com>
Cc: Tomeu Vizoso <tomeu@tomeuvizoso.net>,
etnaviv@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org,
Jerome Brunet <jbrunet@baylibre.com>
Subject: Re: [PATCH] drm/etnaviv: hold the core in reset while runtime suspended
Date: Wed, 02 Dec 2026 10:15:19 -0800 [thread overview]
Message-ID: <7hik1bo8g8.fsf@baylibre.com> (raw)
In-Reply-To: <20261030-etnaviv-rpm-reset-v1-1-f45761846329@baylibre.com>
Jerome Brunet <jbrunet@baylibre.com> writes:
> The reset is asserted at probe and released once, in etnaviv_gpu_init(),
> and is never asserted again. Runtime suspend only stops the clocks, and the
> power domain may then cut power to the core. On the next runtime resume,
> the domain powers the core up again while the reset is still deasserted.
>
> On the Amlogic A311D NPU, the power domain lifts isolation on a core that
> is out of reset, which locks up the SoC on the first runtime resume after
> a runtime suspend. Toggling the reset again solves the problem.
>
> From an existing comment in the driver, the reset must be deasserted with
> the clock running, so handle it together with the clocks. Rename the clock
> helpers accordingly, as they now handle the reset as well. This way the
> reset is properly handled whether or not CONFIG_PM is enabled.
>
> Fixes: 6bde14ba5f7e ("drm/etnaviv: add optional reset support")
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> ---
> This was found while running the MobileNetV1 demo with Teflon on the
> Khadas VIM3 (Amlogic A311D).
Tested-by: Kevin Hilman <khilman@baylibre.com>
Also tested on a Khadas VIM3 (A311D) with mainline (v7.4-rc5+).
Without this patch the board hard-locks on the first NPU runtime resume,
whether triggered by a job or by writing "on" to power/control; with it,
the NPU suspends and resumes cleanly (RESET_NNA held while the NNA
domain is off) and Mesa's Teflon test suite completes under runtime PM.
Kevin
prev parent reply other threads:[~2026-12-02 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-30 11:20 [PATCH] drm/etnaviv: hold the core in reset while runtime suspended Jerome Brunet
2026-12-02 18:15 ` Kevin Hilman [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=7hik1bo8g8.fsf@baylibre.com \
--to=khilman@kernel.org \
--cc=airlied@gmail.com \
--cc=christian.gmeiner@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=etnaviv@lists.freedesktop.org \
--cc=jbrunet@baylibre.com \
--cc=l.stach@pengutronix.de \
--cc=linux+etnaviv@armlinux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=philippe.lecointre@thalesgroup.com \
--cc=simon.lenain@thalesgroup.com \
--cc=simona@ffwll.ch \
--cc=tomeu@tomeuvizoso.net \
/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