From: Sudeep Holla <sudeep.holla@kernel.org>
To: Finley Xiao <finley.xiao@rock-chips.com>
Cc: Cristian Marussi <cristian.marussi@arm.com>,
Sudeep Holla <sudeep.holla@kernel.org>,
Jassi Brar <jassisinghbrar@gmail.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v1 1/1] mailbox: arm_mhuv3: Keep the combined IRQ enabled during system suspend
Date: Wed, 30 Sep 2026 09:50:58 +0100 [thread overview]
Message-ID: <20260930-excellent-hallowed-cheetah-bfcde2@sudeepholla> (raw)
In-Reply-To: <20260930033657.312266-2-finley.xiao@rock-chips.com>
On Wed, Sep 30, 2026 at 11:36:57AM +0800, Finley Xiao wrote:
> When MHUv3 is used as the SCMI mailbox transport (arm,scmi-mailbox),
> SCMI clock and power-domain operations still need to work in the noirq
> phase of system suspend: genpd may power off a device's parent domain
> from genpd_suspend_noirq(), which issues scmi_clock_config_set() /
> scmi_power_state_set() and waits for the firmware reply via the mailbox
> RX IRQ.
>
> However, dpm_suspend_noirq() calls suspend_device_irqs() before running
> the suspend_noirq callbacks, so the combined interrupts are already
> masked at that point and the SCMI transfer times out while waiting for
> the reply.
>
> Both the PBX and MBX combined interrupts are requested as threaded
> IRQs with only IRQF_ONESHOT. The MBX combined IRQ must stay enabled so
> that firmware replies are delivered, and the PBX combined IRQ, used
> for txdone by IRQ when not in polling mode, needs the same treatment.
>
> IRQ threads are not frozen during system suspend, so with
> IRQF_NO_SUSPEND the threaded combined-IRQ handlers still run in the
> noirq phase.
>
> Add IRQF_NO_SUSPEND to the MHUv3 combined IRQ registrations so that
> SCMI remains functional throughout the suspend/resume cycle.
>
Looks good to me. Just to confirm, the expectation is to just have the
IRQs functional during suspend/resume cycle only and *not to wake up* the
system right ? If you need wakeup, you need to do more work.
For this change,
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Jassi,
Please pick this up for next cycle when you are at it. Thanks!
--
Regards,
Sudeep
next prev parent reply other threads:[~2026-09-30 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 3:36 [RFC PATCH v1 0/1] mailbox: arm_mhuv3: Keep combined IRQ enabled during system suspend Finley Xiao
2026-09-30 3:36 ` [RFC PATCH v1 1/1] mailbox: arm_mhuv3: Keep the " Finley Xiao
2026-09-30 8:50 ` Sudeep Holla [this message]
2026-09-30 9:36 ` Finley Xiao
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=20260930-excellent-hallowed-cheetah-bfcde2@sudeepholla \
--to=sudeep.holla@kernel.org \
--cc=cristian.marussi@arm.com \
--cc=finley.xiao@rock-chips.com \
--cc=jassisinghbrar@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.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