From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: xenomai <xenomai@lists.linux.dev>
Subject: Re: [PATCH] x86: dovetail: Use appropriate EOI on error interrupts
Date: Tue, 08 Jul 2025 09:04:03 +0200 [thread overview]
Message-ID: <87h5zn5fks.fsf@xenomai.org> (raw)
In-Reply-To: <3cf01441-93e6-4004-a9e5-5183eb6740de@siemens.com> (Jan Kiszka's message of "Wed, 25 Jun 2025 10:16:13 +0200")
Jan Kiszka <jan.kiszka@siemens.com> writes:
> 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);
Merged (v6.1.y [__ack_APIC_irq], v6.12.y, v6.15 and upcoming v6.16), thanks.
(short log fixed up slightly to ease commit identification on my end)
--
Philippe.
prev parent reply other threads:[~2025-07-08 7:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=87h5zn5fks.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@lists.linux.dev \
/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.