[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Xen BUG at mce_amd.c:100 (mc_ec2type) on Zen 3; host left wedged, no reboot





Am 01.12.2026 um 08:57 schrieb Jan Beulich:
On 30.11.2026 14:13, Peter Deggendorfer wrote:
On your question why only CPU2 -- could it be that the Linux and Xen
numbering differ here?
Yes, numbering differs. But the question wasn't so much on particularly
the "2", but rather ..

If I understand correctly, Linux counts all first
threads before the second threads, so the patch's "CPU 1 (APIC ID 2)"
would be core 1, first thread. Here, xenpm get-cpu-topology shows CPU2
as core 1 (CPU0/1 being core 0), and the /dev/mcelog records Xen
produced all carry apicid 2. So might this be the same single thread in
all reports, rather than a secondary one?

The patch author also says only CPU 0 has the shared banks, with banks
4 and 7-27 unpopulated elsewhere, but that only APIC ID 2 ever returned
junk ("No other CPU ever did in over 250 million reads") -- and he
doesn't know why either.
... this aspect of it being exactly one of the threads which exhibits the
issue. If your system is single-socket with 2 threads per core, then I
have a wild guess: Cores with both threads having the bank unpopulated
aren't affected, it may be only the secondary thread of core 0 which has
this issue.

If I read the topology right, though, APIC ID 2 would be the first
thread of core 1: xenpm shows CPU0 and CPU1 as core 0 and CPU2 as
core 1, and the secondary thread of core 0 would then be CPU1 / APIC ID 1,
which never reported anything here. Or am I misreading this?

One thing I forgot to mention earlier: with CPU2 taken offline in Xen
(xen-hptool cpu-offline 2) for 5 days, no more garbage values showed up
at all, i.e. the issue did not move to another CPU.

If it would help, I could boot once with a small debug patch printing,
per CPU, which banks have MCA_IPID != 0 and MCA_CTL != 0, to see which
threads actually have the banks >= 7 populated.


Peter




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.