From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Oleksii Kurochko <oleksii.kurochko@gmail.com>,
Jan Beulich <jbeulich@suse.com>,
Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel@lists.xenproject.org,
Anthony PERARD <anthony.perard@vates.tech>,
Michal Orzel <michal.orzel@amd.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>
Subject: Re: [PATCH for-4.20? v2 0/5] xen/x86: prevent local APIC errors at shutdown
Date: Mon, 10 Feb 2025 11:02:03 +0100 [thread overview]
Message-ID: <Z6nOmwdp8iRNmkzh@macbook.local> (raw)
In-Reply-To: <20250206150615.52052-1-roger.pau@citrix.com>
Hello,
This should have had a 'for-4.20?' tag in the subject name, as
otherwise we will need to add an errata to the release notes to notice
that reboot can sometimes fail on AMD boxes.
Also adding Oleksii.
Thanks, Roger.
On Thu, Feb 06, 2025 at 04:06:10PM +0100, Roger Pau Monne wrote:
> Hello,
>
> The following series aims to prevent local APIC errors from stalling the
> shtudown process. On XenServer testing we have seen reports of AMD
> boxes sporadically getting stuck in a spam of:
>
> APIC error on CPU0: 00(08), Receive accept error
>
> Messages during shutdown, as a result of device interrupts targeting
> CPUs that are offline (and have the local APIC disabled).
>
> First patch strictly solves the issue of shutdown getting stuck, further
> patches aim to quiesce interrupts from all devices (known by Xen) as an
> attempt to prevent a spurious "APIC error on CPU0: 00(00)" plus also
> make kexec more reliable.
>
> Thanks, Roger.
>
> Roger Pau Monne (5):
> x86/shutdown: offline APs with interrupts disabled on all CPUs
> x86/irq: drop fixup_irqs() parameters
> x86/smp: perform disabling on interrupts ahead of AP shutdown
> x86/pci: disable MSI(-X) on all devices at shutdown
> x86/iommu: disable interrupts at shutdown
>
> xen/arch/x86/crash.c | 2 ++
> xen/arch/x86/include/asm/irq.h | 4 +--
> xen/arch/x86/include/asm/msi.h | 1 +
> xen/arch/x86/irq.c | 30 ++++++++-----------
> xen/arch/x86/msi.c | 18 +++++++++++
> xen/arch/x86/smp.c | 33 +++++++++++++++------
> xen/arch/x86/smpboot.c | 2 +-
> xen/drivers/passthrough/amd/iommu.h | 1 +
> xen/drivers/passthrough/amd/iommu_init.c | 17 +++++++++++
> xen/drivers/passthrough/amd/pci_amd_iommu.c | 1 +
> xen/drivers/passthrough/iommu.c | 6 ++++
> xen/drivers/passthrough/pci.c | 33 +++++++++++++++++++++
> xen/drivers/passthrough/vtd/iommu.c | 19 ++++++++++++
> xen/include/xen/iommu.h | 3 ++
> xen/include/xen/pci.h | 4 +++
> 15 files changed, 145 insertions(+), 29 deletions(-)
>
> --
> 2.46.0
>
next prev parent reply other threads:[~2025-02-10 10:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-06 15:06 [PATCH v2 0/5] xen/x86: prevent local APIC errors at shutdown Roger Pau Monne
2025-02-06 15:06 ` [PATCH v2 1/5] x86/shutdown: offline APs with interrupts disabled on all CPUs Roger Pau Monne
2025-02-10 10:20 ` Jan Beulich
2025-02-10 10:46 ` Roger Pau Monné
2025-02-10 11:09 ` Jan Beulich
2025-02-06 15:06 ` [PATCH v2 2/5] x86/irq: drop fixup_irqs() parameters Roger Pau Monne
2025-02-06 15:06 ` [PATCH v2 3/5] x86/smp: perform disabling on interrupts ahead of AP shutdown Roger Pau Monne
2025-02-10 10:24 ` Jan Beulich
2025-02-10 10:47 ` Roger Pau Monné
2025-02-06 15:06 ` [PATCH v2 4/5] x86/pci: disable MSI(-X) on all devices at shutdown Roger Pau Monne
2025-02-10 10:41 ` Jan Beulich
2025-02-06 15:06 ` [PATCH v2 5/5] x86/iommu: disable interrupts " Roger Pau Monne
2025-02-10 11:04 ` Jan Beulich
2025-02-10 10:02 ` Roger Pau Monné [this message]
2025-02-10 18:29 ` [PATCH for-4.20? v2 0/5] xen/x86: prevent local APIC errors " Oleksii Kurochko
2025-02-11 8:38 ` Roger Pau Monné
2025-02-11 9:26 ` Jan Beulich
2025-02-11 6:39 ` [PATCH " Jan Beulich
2025-02-11 8:50 ` Roger Pau Monné
2025-02-11 9:20 ` Jan Beulich
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=Z6nOmwdp8iRNmkzh@macbook.local \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=oleksii.kurochko@gmail.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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.