From: Matt Coster <Matt.Coster@imgtec.com>
To: Alessio Belle <Alessio.Belle@imgtec.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Frank Binns <Frank.Binns@imgtec.com>,
Brajesh Gupta <Brajesh.Gupta@imgtec.com>,
Alexandru Dadu <Alexandru.Dadu@imgtec.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>
Subject: Re: [PATCH] drm/imagination: Fix deadlock in soft reset sequence
Date: Wed, 11 Mar 2026 12:03:09 +0000 [thread overview]
Message-ID: <e6e362c5-c923-494a-9744-509bbbb3f814@imgtec.com> (raw)
In-Reply-To: <20260309-fix-soft-reset-v1-1-121113be554f@imgtec.com>
[-- Attachment #1.1: Type: text/plain, Size: 1903 bytes --]
On 09/03/2026 15:23, Alessio Belle wrote:
> The soft reset sequence is currently executed from the threaded IRQ
> handler, hence it cannot call disable_irq() which internally waits
> for IRQ handlers, i.e. itself, to complete.
>
> Use disable_irq_nosync() during a soft reset instead.
>
> Fixes: cc1aeedb98ad ("drm/imagination: Implement firmware infrastructure and META FW support")
> Cc: stable@vger.kernel.org
> Signed-off-by: Alessio Belle <alessio.belle@imgtec.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
I'll apply to drm-misc-fixes tomorrow.
> ---
> drivers/gpu/drm/imagination/pvr_power.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/imagination/pvr_power.c b/drivers/gpu/drm/imagination/pvr_power.c
> index 7a8765c0c1ed..046cce76498a 100644
> --- a/drivers/gpu/drm/imagination/pvr_power.c
> +++ b/drivers/gpu/drm/imagination/pvr_power.c
> @@ -510,7 +510,16 @@ pvr_power_reset(struct pvr_device *pvr_dev, bool hard_reset)
> }
>
> /* Disable IRQs for the duration of the reset. */
> - disable_irq(pvr_dev->irq);
> + if (hard_reset) {
> + disable_irq(pvr_dev->irq);
> + } else {
> + /*
> + * Soft reset is triggered as a response to a FW command to the Host and is
> + * processed from the threaded IRQ handler. This code cannot (nor needs to)
> + * wait for any IRQ processing to complete.
> + */
> + disable_irq_nosync(pvr_dev->irq);
> + }
>
> do {
> if (hard_reset) {
>
> ---
> base-commit: d2e20c8951e4bb5f4a828aed39813599980353b6
> change-id: 20260309-fix-soft-reset-8f32c3783d3d
>
> Best regards,
> --
> Alessio Belle <alessio.belle@imgtec.com>
>
--
Matt Coster
E: matt.coster@imgtec.com
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2026-03-11 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 15:23 Alessio Belle
2026-03-11 12:03 ` Matt Coster [this message]
2026-03-18 15:59 ` Matt Coster
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=e6e362c5-c923-494a-9744-509bbbb3f814@imgtec.com \
--to=matt.coster@imgtec.com \
--cc=Alessio.Belle@imgtec.com \
--cc=Alexandru.Dadu@imgtec.com \
--cc=Brajesh.Gupta@imgtec.com \
--cc=Frank.Binns@imgtec.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=stable@vger.kernel.org \
--cc=tzimmermann@suse.de \
/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®