From: Elliott Mitchell <ehem+xen@m5p.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: xen-devel@lists.xenproject.org, Neowutran <xen@neowutran.ovh>
Subject: Re: [BUG] x2apic broken with current AMD hardware
Date: Tue, 21 Mar 2023 15:19:43 -0700 [thread overview]
Message-ID: <ZBotf4lkIog9HfJF@mattapan.m5p.com> (raw)
In-Reply-To: <1c019d72-93d5-f820-7079-2a9c3fee8822@suse.com>
On Tue, Mar 21, 2023 at 08:13:15AM +0100, Jan Beulich wrote:
> On 21.03.2023 05:19, Elliott Mitchell wrote:
>
> > The above appears about twice for each core, then I start seeing
> > "(XEN) CPU#: No irq handler for vector ?? (IRQ -2147483648, LAPIC)"
> >
> > The core doesn't vary too much with this, but the vector varies some.
> >
> > Upon looking "(XEN) Using APIC driver x2apic_cluster". Unfortunately
> > I didn't try booting with x2apic_phys forced with this setting.
>
> My guess is that this would also help. But the system should still work
> correctly in clustered mode. As a first step I guess debug key 'i', 'z',
> and 'M' output may provide some insight. But the request for a full log
> at maximum verbosity also remains (ideally with a debug hypervisor).
Needs a secure channel (PGP most likely) for everything, since there is
too much information in there. Serial numbers and MAC addresses are a
potential source of attack (or faking returns). Smaller segments can be
had more readily:
(XEN) SMBIOS 3.5 present.
(XEN) x2APIC mode is already enabled by BIOS.
(XEN) Using APIC driver x2apic_cluster
(XEN) ACPI: PM-Timer IO Port: 0x808 (32 bits)
(XEN) ACPI: v5 SLEEP INFO: control[0:0], status[0:0]
(XEN) ACPI: SLEEP INFO: pm1x_cnt[1:804,1:0], pm1x_evt[1:800,1:0]
(XEN) ACPI: 32/64X FACS address mismatch in FADT - 785a3000/0000000000000000, using 32
(XEN) ACPI: wakeup_vec[785a300c], vec_size[20]
(XEN) ACPI: Local APIC address 0xfee00000
(XEN) ACPI: IOAPIC (id[0x20] address[0xfec00000] gsi_base[0])
(XEN) IOAPIC[0]: apic_id 32, version 33, address 0xfec00000, GSI 0-23
(XEN) ACPI: IOAPIC (id[0x21] address[0xfec01000] gsi_base[24])
(XEN) IOAPIC[1]: apic_id 33, version 33, address 0xfec01000, GSI 24-55
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
(XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
(XEN) ACPI: HPET id: 0x######## base: 0xfed00000
(XEN) Using ACPI (MADT) for SMP configuration information
(XEN) IRQ limits: 56 GSI, 6600 MSI/MSI-X
(XEN) AMD-Vi: IOMMU Extended Features:
(XEN) - Peripheral Page Service Request
(XEN) - x2APIC
(XEN) - NX bit
(XEN) - Guest APIC Physical Processor Interrupt
(XEN) - Invalidate All Command
(XEN) - Guest APIC
(XEN) - Performance Counters
(XEN) - Host Address Translation Size: 0x2
(XEN) - Guest Address Translation Size: 0
(XEN) - Guest CR3 Root Table Level: 0x1
(XEN) - Maximum PASID: 0xf
(XEN) - SMI Filter Register: 0x1
(XEN) - SMI Filter Register Count: 0x1
(XEN) - Guest Virtual APIC Modes: 0x1
(XEN) - Dual PPR Log: 0x2
(XEN) - Dual Event Log: 0x2
(XEN) - Secure ATS
(XEN) - User / Supervisor Page Protection
(XEN) - Device Table Segmentation: 0x3
(XEN) - PPR Log Overflow Early Warning
(XEN) - PPR Automatic Response
(XEN) - Memory Access Routing and Control: 0x1
(XEN) - Block StopMark Message
(XEN) - Performance Optimization
(XEN) - MSI Capability MMIO Access
(XEN) - Guest I/O Protection
(XEN) - Enhanced PPR Handling
(XEN) - Invalidate IOTLB Type
(XEN) - VM Table Size: 0x2
(XEN) - Guest Access Bit Update Disable
(XEN) AMD-Vi: Disabled HAP memory map sharing with IOMMU
(XEN) AMD-Vi: IOMMU 0 Enabled.
I'm a bit concerned how all the reports so far are ASUS motherboards.
This could mean people getting the latest, greatest and using Xen tend
towards ASUS motherboards. This could also mean ASUS's engineering team
did something to their latest round. Both are possible.
Could well be the latest round from AMD include more pieces from their
server processors, which trigger x2apic_cluster as default. Yet didn't
bring some extra portion(s) which are required by x2apic_cluster.
> > So x2apic_cluster is looking like a <ahem> on recent AMD processors.
> >
> >
> > I'm unsure this qualifies as "Tested-by". Certainly it IS an
> > improvement, but the problem certainly isn't 100% solved.
>
> There simply are multiple problems; one looks to be solved now.
I agree with that assessment. Just I'm unsure whether this step is
enough to include "Tested-by". I'm concerned there could be a single
deeper problem which solves everything at once.
--
(\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/)
\BS ( | ehem+sigmsg@m5p.com PGP 87145445 | ) /
\_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
next prev parent reply other threads:[~2023-03-21 22:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-08 15:23 [BUG] x2apic broken with current AMD hardware Elliott Mitchell
2023-03-08 15:37 ` Andrew Cooper
2023-03-08 15:50 ` Jan Beulich
2023-03-08 23:08 ` Elliott Mitchell
2023-03-09 9:03 ` Jan Beulich
2023-03-10 3:25 ` Elliott Mitchell
2023-03-10 8:22 ` Jan Beulich
2023-03-11 0:09 ` Elliott Mitchell
2023-03-13 7:01 ` Jan Beulich
2023-03-16 22:03 ` Elliott Mitchell
2023-03-17 8:22 ` Jan Beulich
2023-03-17 17:26 ` Elliott Mitchell
2023-03-20 8:14 ` Jan Beulich
2023-03-20 8:28 ` Jan Beulich
2023-03-20 17:50 ` Andrew Cooper
2023-03-21 4:19 ` Elliott Mitchell
2023-03-21 7:13 ` Jan Beulich
2023-03-21 22:19 ` Elliott Mitchell [this message]
2023-03-21 14:34 ` Neowutran
2023-03-21 10:46 ` Marek Marczykowski-Górecki
2023-04-30 17:16 ` Elliott Mitchell
2023-05-02 5:59 ` Jan Beulich
2023-03-20 15:37 ` Elliott Mitchell
2023-03-20 15:52 ` 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=ZBotf4lkIog9HfJF@mattapan.m5p.com \
--to=ehem+xen@m5p.com \
--cc=jbeulich@suse.com \
--cc=xen-devel@lists.xenproject.org \
--cc=xen@neowutran.ovh \
/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.