From: Yaohan Li <shunsheng1218@gmail.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: Daniel Scally <dan.scally@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hverkuil@kernel.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] media: renesas: rzv2h-ivc: stop interrupt before disabling clocks on suspend
Date: Fri, 04 Dec 2026 12:21:11 +0800 [thread overview]
Message-ID: <179635807187.411924.11989264330254263148@gmail.com> (raw)
In-Reply-To: <axEyoRy2-xx3BmwU@zed>
Hi Jacopo,
On Thu, Dec 03, 2026 at 10:19:22AM +0100, Jacopo Mondi wrote:
> On Thu, Dec 03, 2026 at 04:53:19PM +0800, Yaohan Li wrote:
> > rzv2h_ivc_runtime_suspend() tears these down in the wrong order: it
> > asserts resets and disables all three clocks while RZV2H_IVC_REG_FM_INT_EN
> > is still enabled and before calling free_irq(). If an interrupt arrives
>
> How can an interrupt arrive ater the reset signal has been asserted ?
You're right -- saying a new interrupt could arrive after reset was
imprecise.
My concern is an interrupt handler that is already running on another CPU
when runtime_suspend() asserts the resets and disables the clocks. Since
free_irq() currently runs after both, nothing waits for an in-flight
handler before the clocks are gated.
Also, the driver gets shared resets via
devm_reset_control_bulk_get_optional_shared(), so asserting them does not
necessarily assert the physical reset line if another consumer still holds
it deasserted.
My QEMU test only checks the teardown order, not real RZ/V2H interrupt
behavior. Does the streaming stop path already guarantee that no handler
can still be running when runtime_suspend() is entered?
Thanks,
Yaohan
prev parent reply other threads:[~2026-12-04 4:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 8:53 [PATCH] media: renesas: rzv2h-ivc: stop interrupt before disabling clocks on suspend Yaohan Li
2026-12-03 9:19 ` Jacopo Mondi
2026-12-04 4:21 ` Yaohan Li [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=179635807187.411924.11989264330254263148@gmail.com \
--to=shunsheng1218@gmail.com \
--cc=dan.scally@ideasonboard.com \
--cc=hverkuil@kernel.org \
--cc=jacopo.mondi@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.