Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90D32606A31A for ; Tue, 1 Dec 2026 13:07:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=cortex-media.de header.i=@cortex-media.de header.a=rsa-sha256 header.s=20250930 header.b=tdUvRCtl Received: from list by lists.xenproject.org with outflank-mailman.1508569.1701475 (Exim 4.92) (envelope-from ) id 1xYNZs-0002e1-Hs; Tue, 01 Dec 2026 13:07:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1508569.1701475; Tue, 01 Dec 2026 13:07:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYNZs-0002du-Dv; Tue, 01 Dec 2026 13:07:24 +0000 Received: by outflank-mailman (input) for mailman id 1508569; Tue, 01 Dec 2026 13:07:23 +0000 Received: from mx.expurgate.net ([194.145.224.10]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xYNZq-0002do-V4 for xen-devel@lists.xen.org; Tue, 01 Dec 2026 13:07:23 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xYNZp-007p4t-Uw for xen-devel@lists.xen.org; Tue, 01 Dec 2026 14:07:22 +0100 Received: from [10.42.69.2] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b0ec687-e002-0a2a0a5209dd-0a2a4502abc2-6 for ; Tue, 01 Dec 2026 14:07:21 +0100 Received: from [136.243.217.222] (helo=mail.cortex-media.de) by tlsNG-720697.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b0ec689-4900-0a2a45020019-88f3d9dee9dc-3 for ; Tue, 01 Dec 2026 14:07:21 +0100 Received: by mail.cortex-media.de (Postfix) id C666B38C040; Tue, 01 Dec 2026 14:07:20 +0100 (CET) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=20250930 header.d=cortex-media.de header.i="@cortex-media.de" header.h="Date:Subject:To:Cc:References:From:In-Reply-To" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cortex-media.de; s=20250930; t=1796130441; bh=VR7+pBW0IXcavWVpV7bbZcKTmw7wHO6IApaISrjh/H0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tdUvRCtly1xUVtA2/jDIuFh9gj8yq0v/xlIzJIGc06NHl22f3FbVoybzPQAVLkqnF 7nRxdgRbYHPSzVZmvpEFPEMvfbIqYVxwXRE4EUeav0AZ+nBmV1/7r9rDxmOgq/JrEn 0WZVFiIP0CDQBW/BK7P0HgPLDJIn2n4Im8DHc4MS81LhFe5a7Z/bYQ9TzsP0ZwUrrq CcY/QnysSiUSD00+ja0PmkPi/+5Nu5XzDm5+DhS4xtKNpuRXeXjYyeIQjoknF+FQ4o pNPBR4XPgvy9bt9NqvPdtnRIkHPfTISOjnd9LX9ZnPi9H+TGp06wHAXzo2hG9elEgh 4DcmHwnn5GGNg== Message-ID: <34740e9e-3f21-4644-ba11-9dab7ec2d798@cortex-media.de> Date: Tue, 1 Dec 2026 14:07:20 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] Xen BUG at mce_amd.c:100 (mc_ec2type) on Zen 3; host left wedged, no reboot To: Jan Beulich Cc: =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Teddy Astie , Jason Andryuk , Soham Dandapat , xen-devel@lists.xen.org, Andrew Cooper References: <8138ed44-727f-45bc-9673-9684e922595b@cortex-media.de> <2a44faa9-9a9f-4681-84d6-8267acbec9b0@cortex-media.de> <0d3f95a2-6eb7-47d1-9910-bee2a048af22@suse.com> <044602ca-3665-47c9-b250-b1f19cb0b2bc@cortex-media.de> <8d1b403f-bdd5-42b6-93a9-b6fdd8494428@cortex-media.de> <8bc97eec-8ae3-4d7f-b603-b7ed43f12960@suse.com> From: Peter Deggendorfer In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-ID: tlsNG-720697/1796130441-F1B8F6C6-4CE04A74/0/0 X-purgate-type: clean X-purgate-size: 1950 X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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