From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFC52C001DE for ; Mon, 31 Jul 2023 20:48:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjGaUs4 (ORCPT ); Mon, 31 Jul 2023 16:48:56 -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 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