Patch "soc/tegra: pmc: Fix unsafe generic_handle_irq() call" has been added to the 6.19-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines · Sasha Levin
Author: Prathamesh Shete <[email protected]> Date: Thu Jan 8 05:01:03 2026 +0000soc/tegra: pmc: Fix unsafe
generic_handle_irq()call[ Upstream commit
e6d96073af681780820c94079b978474a8a44413]Currently, when resuming from system suspend on Tegra platforms, the following warning is observed:
WARNING: CPU: 0 PID: 14459 at
kernel/irq/irqdesc.c:666Call trace:
handle_irq_desc+0x20/0x58(P)tegra186_pmc_wake_syscore_resume+0xe4/0x15csyscore_resume+0x3c/0xb8suspend_devices_and_enter+0x510/0x540pm_suspend+0x16c/0x1d8The warning occurs because
generic_handle_irq()is being called from a non-interrupt context which is considered as unsafe.Fix this warning by deferring
generic_handle_irq()call to an IRQ work which gets executed in hard IRQ context wheregeneric_handle_irq()can be called safely.When
PREEMPT_RTkernels are used, regular IRQ work (initialized withinit_irq_work) is deferred to run in per-CPU kthreads in preemptible context rather than hard IRQ context. Hence, use theIRQ_WORK_INIT_HARDvariant so that withPREEMPT_RTkernels, the IRQ work is processed in hardirq context instead of being deferred to a thread which is required for callinggeneric_handle_irq().
Quoted 3 lines
On non-PREEMPT_RT kernels, both
init_irq_work()andIRQ_WORK_INIT_HARD()execute in IRQ context, so this change has no functional impact for standard kernel configurations.
sorry for not noticing this earlier: Instead of irq_work() and all this, I would suggest to revert this and simply switch to generic_handle_irq_safe() instead.
Sebastian
Greg KH
maintainerQuoted 33 lines · Sebastian Andrzej Siewior
Quoted 32 lines · Sasha Levin
Author: Prathamesh Shete <[email protected]> Date: Thu Jan 8 05:01:03 2026 +0000soc/tegra: pmc: Fix unsafe
generic_handle_irq()call[ Upstream commit
e6d96073af681780820c94079b978474a8a44413]Currently, when resuming from system suspend on Tegra platforms, the following warning is observed:
WARNING: CPU: 0 PID: 14459 at
kernel/irq/irqdesc.c:666Call trace:
handle_irq_desc+0x20/0x58(P)tegra186_pmc_wake_syscore_resume+0xe4/0x15csyscore_resume+0x3c/0xb8suspend_devices_and_enter+0x510/0x540pm_suspend+0x16c/0x1d8The warning occurs because
generic_handle_irq()is being called from a non-interrupt context which is considered as unsafe.Fix this warning by deferring
generic_handle_irq()call to an IRQ work which gets executed in hard IRQ context wheregeneric_handle_irq()can be called safely.When
PREEMPT_RTkernels are used, regular IRQ work (initialized withinit_irq_work) is deferred to run in per-CPU kthreads in preemptible context rather than hard IRQ context. Hence, use theIRQ_WORK_INIT_HARDvariant so that withPREEMPT_RTkernels, the IRQ work is processed in hardirq context instead of being deferred to a thread which is required for callinggeneric_handle_irq().
Quoted 7 lines
Quoted 3 lines
On non-PREEMPT_RT kernels, both
init_irq_work()andIRQ_WORK_INIT_HARD()execute in IRQ context, so this change has no functional impact for standard kernel configurations.sorry for not noticing this earlier: Instead of
irq_work()and all this, I would suggest to revert this and simply switch togeneric_handle_irq_safe()instead.
Can you send a patch upstream for this and tag it for stable?
thanks,
greg k-h
Quoted 5 lines · Greg KH
Quoted 3 lines
sorry for not noticing this earlier: Instead of
irq_work()and all this, I would suggest to revert this and simply switch togeneric_handle_irq_safe()instead.Can you send a patch upstream for this and tag it for stable?
This was meant for the developer and maintainer of the patch, not for the stable team.
I will follow up if they don't respond…
Quoted 3 lines
thanks,
greg k-h
Sebastian