* [PATCH] genirq/manage: Fix lock in irq_set_irq_wake()
@ 2025-05-14 9:50 Jon Hunter
2025-05-14 10:15 ` [tip: irq/core] genirq/manage: Use the correct lock guard " tip-bot2 for Jon Hunter
0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2025-05-14 9:50 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: linux-kernel, linux-tegra, Jon Hunter
Commit 8589e325ba4f ("genirq/manage: Rework irq_set_irq_wake()") updated
the irq_set_irq_wake() to use the new guards for locking the interrupt
descriptor. However, in doing so inadvertently changed irq_set_irq_wake()
such that the 'chip_bus_lock' is no longer acquired. This has caused
system suspend tests to fail on some Tegra platforms. Fix this by
correcting the guard used in irq_set_irq_wake() to ensure the
'chip_bus_lock' is held.
Fixes: 8589e325ba4f ("genirq/manage: Rework irq_set_irq_wake()")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
I know that this is in -next and so I am not sure if the commit hash
will get updated before it is actually merged to mainline. Please advise
if you want me to adjust the commit message.
kernel/irq/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 2861e11acf3a..c94837382037 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -846,7 +846,7 @@ static int set_irq_wake_real(unsigned int irq, unsigned int on)
*/
int irq_set_irq_wake(unsigned int irq, unsigned int on)
{
- scoped_irqdesc_get_and_lock(irq, IRQ_GET_DESC_CHECK_GLOBAL) {
+ scoped_irqdesc_get_and_buslock(irq, IRQ_GET_DESC_CHECK_GLOBAL) {
struct irq_desc *desc = scoped_irqdesc;
int ret = 0;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* [tip: irq/core] genirq/manage: Use the correct lock guard in irq_set_irq_wake()
2025-05-14 9:50 [PATCH] genirq/manage: Fix lock in irq_set_irq_wake() Jon Hunter
@ 2025-05-14 10:15 ` tip-bot2 for Jon Hunter
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot2 for Jon Hunter @ 2025-05-14 10:15 UTC (permalink / raw)
To: linux-tip-commits; +Cc: Jon Hunter, Thomas Gleixner, x86, linux-kernel, maz
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 58eb5721a445ea0af310d1410d7117a1910627bc
Gitweb: https://git.kernel.org/tip/58eb5721a445ea0af310d1410d7117a1910627bc
Author: Jon Hunter <jonathanh@nvidia.com>
AuthorDate: Wed, 14 May 2025 10:50:41 +01:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Wed, 14 May 2025 12:05:58 +02:00
genirq/manage: Use the correct lock guard in irq_set_irq_wake()
Commit 8589e325ba4f ("genirq/manage: Rework irq_set_irq_wake()") updated
the irq_set_irq_wake() to use the new guards for locking the interrupt
descriptor.
However, in doing so it inadvertently changed irq_set_irq_wake() such that
the 'chip_bus_lock' is no longer acquired. This has caused system suspend
tests to fail on some Tegra platforms.
Fix this by correcting the guard used in irq_set_irq_wake() to ensure the
'chip_bus_lock' is held.
Fixes: 8589e325ba4f ("genirq/manage: Rework irq_set_irq_wake()")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250514095041.1109783-1-jonathanh@nvidia.com
---
kernel/irq/manage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
index 2861e11..c948373 100644
--- a/kernel/irq/manage.c
+++ b/kernel/irq/manage.c
@@ -846,7 +846,7 @@ static int set_irq_wake_real(unsigned int irq, unsigned int on)
*/
int irq_set_irq_wake(unsigned int irq, unsigned int on)
{
- scoped_irqdesc_get_and_lock(irq, IRQ_GET_DESC_CHECK_GLOBAL) {
+ scoped_irqdesc_get_and_buslock(irq, IRQ_GET_DESC_CHECK_GLOBAL) {
struct irq_desc *desc = scoped_irqdesc;
int ret = 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-14 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-14 9:50 [PATCH] genirq/manage: Fix lock in irq_set_irq_wake() Jon Hunter
2025-05-14 10:15 ` [tip: irq/core] genirq/manage: Use the correct lock guard " tip-bot2 for Jon Hunter
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®