All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for-4.20 v3 0/5] xen/x86: prevent local APIC errors at shutdown
@ 2025-02-11 11:02 Roger Pau Monne
  2025-02-11 11:02 ` [PATCH for-4.20 v3 1/5] x86/shutdown: offline APs with interrupts disabled on all CPUs Roger Pau Monne
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Roger Pau Monne @ 2025-02-11 11:02 UTC (permalink / raw)
  To: xen-devel
  Cc: oleksii.kurochko, Roger Pau Monne, Jan Beulich, Andrew Cooper,
	Anthony PERARD, Michal Orzel, Julien Grall, Stefano Stabellini

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                        |  8 +++++
 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             | 12 +++++++
 xen/drivers/passthrough/pci.c               | 39 +++++++++++++++++++++
 xen/drivers/passthrough/vtd/iommu.c         | 19 ++++++++++
 xen/include/xen/iommu.h                     |  3 ++
 xen/include/xen/pci.h                       |  7 ++++
 15 files changed, 166 insertions(+), 29 deletions(-)

-- 
2.46.0



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

end of thread, other threads:[~2025-02-12 14:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-11 11:02 [PATCH for-4.20 v3 0/5] xen/x86: prevent local APIC errors at shutdown Roger Pau Monne
2025-02-11 11:02 ` [PATCH for-4.20 v3 1/5] x86/shutdown: offline APs with interrupts disabled on all CPUs Roger Pau Monne
2025-02-11 11:23   ` Jan Beulich
2025-02-11 14:12     ` Roger Pau Monné
2025-02-11 11:02 ` [PATCH for-4.20 v3 2/5] x86/irq: drop fixup_irqs() parameters Roger Pau Monne
2025-02-11 11:02 ` [PATCH for-4.20 v3 3/5] x86/smp: perform disabling on interrupts ahead of AP shutdown Roger Pau Monne
2025-02-11 11:02 ` [PATCH for-4.20 v3 4/5] x86/pci: disable MSI(-X) on all devices at shutdown Roger Pau Monne
2025-02-11 11:34   ` Jan Beulich
2025-02-11 14:19     ` Roger Pau Monné
2025-02-11 14:48   ` [PATCH for-4.20 v4 " Roger Pau Monne
2025-02-11 17:00     ` Jan Beulich
2025-02-11 11:02 ` [PATCH for-4.20 v3 5/5] x86/iommu: disable interrupts " Roger Pau Monne
2025-02-11 11:37   ` Jan Beulich
2025-02-11 18:39 ` [PATCH for-4.20 v3 0/5] xen/x86: prevent local APIC errors " Roger Pau Monné
2025-02-12  8:33   ` Oleksii Kurochko
2025-02-12  8:51     ` Jan Beulich
2025-02-12  9:25       ` Roger Pau Monné
2025-02-12 14:25         ` Oleksii Kurochko

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.