All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: dovetail: Use appropriate EOI on error interrupts
@ 2025-06-25  8:16 Jan Kiszka
  2025-06-25 11:16 ` Florian Bezdeka
  2025-07-08  7:04 ` Philippe Gerum
  0 siblings, 2 replies; 4+ messages in thread
From: Jan Kiszka @ 2025-06-25  8:16 UTC (permalink / raw)
  To: Philippe Gerum, xenomai

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

Just like for the non-pipelined spurious interrupt, we need to invoke
the non-pipelined __apic_eoi while handling error interrupts. Otherwise,
the local APIC will stop receiving further interrupts, and the system
will stall.

Given that it takes very special conditions to actually trigger an error
interrupt, this issue was very likely not relevant for most deployments.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 arch/x86/kernel/apic/apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index 1cd5f59f7962f..278e28c5290d3 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -2217,7 +2217,7 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_error_interrupt)
 	if (lapic_get_maxlvt() > 3)	/* Due to the Pentium erratum 3AP. */
 		apic_write(APIC_ESR, 0);
 	v = apic_read(APIC_ESR);
-	apic_eoi();
+	__apic_eoi();
 	atomic_inc(&irq_err_count);
 
 	apic_pr_debug("APIC error on CPU%d: %02x", smp_processor_id(), v);
-- 
2.43.0

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

end of thread, other threads:[~2025-07-08  7:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25  8:16 [PATCH] x86: dovetail: Use appropriate EOI on error interrupts Jan Kiszka
2025-06-25 11:16 ` Florian Bezdeka
2025-06-25 11:44   ` Jan Kiszka
2025-07-08  7:04 ` Philippe Gerum

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.