Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4977729rwb; Mon, 31 Jul 2023 16:01:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDjWagdx5Q2O55BmET0KxvekGCzmROT//x76h99SL213UOfUx5By6xEIqAz9h2Q4E2FwP9 X-Received: by 2002:a17:903:1205:b0:1bc:224a:45c1 with SMTP id l5-20020a170903120500b001bc224a45c1mr1307248plh.55.1690844493223; Mon, 31 Jul 2023 16:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690844493; cv=none; d=google.com; s=arc-20160816; b=e/OK4kv7ovNzKc1qvumaaA8Vd2l6iEkIGE7prUM8St28e/AVs8C7CTRYp+5wpNL12E CTw0B8O88Mb4uw2QEIAA8uFjVFHUVsnO3/Gg+4fuq8VB9AbNZBIIpndNKS8aamvnoyKt 3gC4v+a0ruYM7uctMfhbCOnDkYQqgWJmhv6T30lO7QtrvPnIJZsEzo0XsKq+5rXSpRpE 5a+2v8jcDnDDiH3DibUf/EyuYyTLIxMggbew0CL4WAqBF6WtMBzAqfuIFiBVi2/tb3qT r2HY58ijUEnlC+lyS3u4G2xxC+aynb0SgcMHLS/tnPeHywjnGoDUpMSK0NmnZ5A+cxf8 r/jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=RI0CJ7D+9SiL2iee0tYtf2iNXcHIA4WEuqt5DO0U+u4=; fh=tqsBilkV3CQQNngZMP5W2waSif8nZ0btjksvzhDdTw0=; b=fwXXgGZmZAu7l6Svom7owZk3JEjD4eglddEfY1JdVjOHGMaKU5LDS1rxDg2eKZm4dJ yXv8mqWdbdqxsznztRJg6RIbxi/xDrsWe40KFY12aPU+jqKsuHrHseiG8Hkr6EF1furL 3dgZ5U39p88yZ4BNyOwFWzuVrkkilhP/RmD6lGUW+ITMWIHNBFDsXq40005IhLoSIVou bg3b3PWOtxE+w7oLGPPrdyF/RUA22W5aDzb2L8wyBd/wr5+gv7XSvazMVLjSbcvdv5vD s6/iY2db6JU2VD66aGc+qW2UFbUHL7eCGpwXR45mDmH+Vy84NiYpUjyAyo8plHrI73xx LOng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ytxM1q6a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=t3lJZ98F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s196-20020a6377cd000000b00564514df65bsi1912812pgc.890.2023.07.31.16.01.09; Mon, 31 Jul 2023 16:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ytxM1q6a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=t3lJZ98F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230014AbjGaUsw (ORCPT + 99 others); Mon, 31 Jul 2023 16:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjGaUsu (ORCPT ); Mon, 31 Jul 2023 16:48:50 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04D6A198B; Mon, 31 Jul 2023 13:48:48 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690836527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RI0CJ7D+9SiL2iee0tYtf2iNXcHIA4WEuqt5DO0U+u4=; b=ytxM1q6a1kWAOp+kt/SDNX+gtbbFSuFYpq7Qu+/vJOEa4+CD0EjCywhuXhfSQpJNBBNTpS wYOpBBbMrpG6A5Izq4a1mw8wSK3HFUZe+IzDw8668ewe6oNTB8C09n6+jGsDNftW5XJWV7 zNBpBw2MRoOuwbuIhUugsweMMhbkKJFBfYjVpcR4s0tlYzAJveiQptLr/j2SguB/3XWoPE mTd6+4YD94TTRoVTigXnEQVGP/EC6y25bz9BRs+l7Cck584Ezmx/crlE2pyFeXzDcERWGe HRFGpAGlz1uEVaFg4TJYmSG3lFgpVCq76f3sUn9AoYObsrTcP9ZurIB53blBRQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690836527; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=RI0CJ7D+9SiL2iee0tYtf2iNXcHIA4WEuqt5DO0U+u4=; b=t3lJZ98F788Ee1TSBQzrtJlVNyh8UlwaGfZ1OY5jmlFSS9svCnvR9B8Vw0qzcS15OB3kqR gP47h2kx/N+UftAw== To: "Michael Kelley (LINUX)" , Peter Zijlstra Cc: LKML , "x86@kernel.org" , Tom Lendacky , Andrew Cooper , Arjan van de Ven , "James E.J. Bottomley" , Dick Kennedy , James Smart , "Martin K. Petersen" , "linux-scsi@vger.kernel.org" , Guenter Roeck , "linux-hwmon@vger.kernel.org" , Jean Delvare , Huang Rui , Juergen Gross , Steve Wahl , Mike Travis , Dimitri Sivanich , Russ Anderson Subject: RE: [patch v2 21/38] x86/cpu: Provide cpu_init/parse_topology() In-Reply-To: References: <20230728105650.565799744@linutronix.de> <20230728120930.839913695@linutronix.de> <871qgop8dc.ffs@tglx> <20230731132714.GH29590@hirez.programming.kicks-ass.net> <87sf94nlaq.ffs@tglx> Date: Mon, 31 Jul 2023 22:48:46 +0200 Message-ID: <87fs53n6xd.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31 2023 at 16:10, Michael Kelley wrote: > From: Thomas Gleixner Sent: Monday, July 31, 2023 8:38 AM > The VM is an F72s_v2 in Azure running your patch set. The VM has > 72 vCPUs in two NUMA nodes across two physical Intel processors, with > 36 vCPUs in each NUMA node. > > The output is from /sys/kernel/debug/x86/topo/cpus, so the initial_apicid > is from CPUID, while the apicid is from read_apic_id() and matches the > MADT. As expected, the two values match for the first 36 vCPUs, but differ > by 28 (decimal) for the remaining 36. > > initial_apicid: 0 apicid: 0 ... > initial_apicid: 23 apicid: 23 > initial_apicid: 40 apicid: 24 ... > initial_apicid: 63 apicid: 47 Is there any indication in some other CPUID leaf which lets us deduce this wreckage? I don't think the hypervisor space (0x40000xx) has anything helpful, but staring at the architectural ones provided by hyper-V to the guest might give us an hint. Can you provide a cpuid dump for the boot CPU please? Thanks, tglx