From: Thomas Gleixner <tglx@kernel.org>
To: Zhu Ling <zhuling0805@qq.com>
Cc: Zhu Ling <zhuling0805@qq.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Radu Rendec <radu@rendec.net>, Pavel Machek <pavel@kernel.org>,
Len Brown <lenb@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Danilo Krummrich <dakr@kernel.org>,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
driver-core@lists.linux.dev
Subject: Re: [PATCH] genirq/PM: Re-enable chained interrupts after hibernation
Date: Tue, 08 Sep 2026 22:07:25 +0200 [thread overview]
Message-ID: <87mrtr1p8i.ffs@fw13> (raw)
In-Reply-To: <tencent_EB4BC71944911E53F173CF6B5D92EB1AA908@qq.com>
On Sat, Sep 05 2026 at 23:27, Zhu Ling wrote:
> Chained interrupts remain enabled across suspend because they can be part
> of a wakeup path. Consequently, suspend_device_irq() does not set
> IRQS_SUSPENDED for them, and they do not have IRQF_FORCE_RESUME accounting.
>
> After restoring a hibernation image, the interrupt controller can have a
> chained parent interrupt masked while the restored descriptor still marks
> it started and enabled. For example, the restore kernel may initialize the
> controller without probing the driver that installs the chained handler.
> resume_irq() skips the parent in this state, leaving interrupts from the
> devices below it blocked.
>
> Pass the hibernation restore context from dpm_resume_noirq() to the IRQ PM
> code and force active chained interrupts through the existing force-resume
> path. Set the disabled and masked state before enabling the interrupt so
> that cached descriptor state cannot suppress the irqchip callback. Calling
> irq_startup() alone on an already started and enabled interrupt can skip
> the hardware access when the descriptor also records it as unmasked.
>
> Leave disabled and unstarted chained interrupts alone. Keep the existing
> behavior for ordinary resume, hibernation thaw and recovery, and the early
> syscore resume pass.
>
> Fixes: 0a0c5168df27 ("PM: Introduce functions for suspending and resuming device interrupts")
This fixes nothing than a theoretical problem hallucinated by a LLM and
we don't fix hallucinations.
If that would be a real world problem then this change would cure the
symptom and not the root cause.
Thanks,
tglx
next prev parent reply other threads:[~2026-09-08 20:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-05 15:27 [PATCH] genirq/PM: Re-enable chained interrupts after hibernation Zhu Ling
2026-09-08 20:07 ` Thomas Gleixner [this message]
2026-10-24 14:46 ` Zhu Ling
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=87mrtr1p8i.ffs@fw13 \
--to=tglx@kernel.org \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=radu@rendec.net \
--cc=rafael@kernel.org \
--cc=zhuling0805@qq.com \
/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.