All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dovetail: Fix interrupt re-enabling after hibernation
@ 2025-03-20 16:41 Jan Kiszka
  2025-03-20 16:50 ` Florian Bezdeka
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Jan Kiszka @ 2025-03-20 16:41 UTC (permalink / raw)
  To: Philippe Gerum, Florian Bezdeka, Xenomai

From: Jan Kiszka <jan.kiszka@siemens.com>

We had unbalanced hard_cond_local_irq_disable here so far.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Minus one hunk that is already in current 6.12.y, this needs to be 
applied to older stable versions as well.

 kernel/power/hibernate.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index 733b1a196f09e..e1c05f276a453 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -352,6 +352,7 @@ static int create_image(int platform_mode)
 	syscore_resume();
 
  Enable_irqs:
+	hard_cond_local_irq_enable();
 	system_state = SYSTEM_RUNNING;
 	local_irq_enable();
 
@@ -522,6 +523,7 @@ static int resume_target_kernel(bool platform_mode)
 	syscore_resume();
 
  Enable_irqs:
+	hard_cond_local_irq_enable();
 	system_state = SYSTEM_RUNNING;
 	local_irq_enable();
 
@@ -628,6 +630,7 @@ int hibernation_platform_enter(void)
  Power_up:
 	syscore_resume();
  Enable_irqs:
+	hard_cond_local_irq_enable();
 	system_state = SYSTEM_RUNNING;
 	local_irq_enable();
 
-- 
2.43.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-03-24 20:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-20 16:41 [PATCH] dovetail: Fix interrupt re-enabling after hibernation Jan Kiszka
2025-03-20 16:50 ` Florian Bezdeka
2025-03-20 17:04   ` Jan Kiszka
2025-03-20 18:49     ` Philippe Gerum
2025-03-20 18:51   ` Philippe Gerum
2025-03-21  7:51 ` Philippe Gerum
2025-03-21 12:51   ` Florian Bezdeka
2025-03-21 13:31     ` Philippe Gerum
2025-03-21 13:35       ` Philippe Gerum
2025-03-21 13:51         ` Philippe Gerum
2025-03-24 17:18           ` Jan Kiszka
2025-03-24 11:18 ` Florian Bezdeka
2025-03-24 11:21   ` Jan Kiszka
2025-03-24 14:19   ` Philippe Gerum
2025-03-24 20:05     ` Florian Bezdeka

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.