Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4617452rwb; Mon, 31 Jul 2023 09:28:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqyosJrElTiqS51GUgwDmOKiRRpnk23bEwKVfH0RWxHOMaqZonJ0q8pgwctACUtuhZX373 X-Received: by 2002:a9d:6285:0:b0:6b9:182b:cccc with SMTP id x5-20020a9d6285000000b006b9182bccccmr10018372otk.33.1690820886379; Mon, 31 Jul 2023 09:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690820886; cv=none; d=google.com; s=arc-20160816; b=mJQHZatI/YVrTn+KeR6JATItkwwD8y/HO8srRc5LXROpR0c6KygsBjxZOaR2VXfASM oHiwbKDo+wHEyFlSBpOz2ZkowEOyeh7+ZwRLAIyMMv3AFoV4wzuGzWliuK+91xBKLMFa vz9w33N007YbCnbu2XQ9EZIt7NSH/YvPQZz0tmqCb0WG9KQ7Cxb9qy01RzhtE/NGDFys YS9Altp2QdD8x/WfJmowOTK8Zas6g8MKRBAoBA9rsXgmjxln6Pna3Im42kbiL9HVk7i7 wau8UQIkG8X+Nd9CCCjQYiX7I2ptb0XBCXQestX2PxzlTY00Is1xyQ+qUOXEs1CIowPn N/bQ== 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=P/W5Li7dfE7r3qR09rk7c9rr3IsQpi7R9QAF8g++NHk=; fh=pnCxIyUCJOIHh/FyUrMJh3KW/i5ksw7GWHuK8JXO1jg=; b=AB7g9jkk+p7ZxSLvejx2rTyrW/vlHY2D1e7i3uFk/wlWn6unuaVpnzvuAYT+g7P8+j eofa2bY0qwXEbV9lp89Ck55VKnfPDjHFo5urs7zAAinkIfy5hCqYzT7XobzuagQwoYxL qMspNq/CAZxOvwl/ZqxA4LohlgfS8XCP0MmB+PqBjqde0o614hNsSPbt2x7ncO5EDOJQ ai2YStgHRZV6yBXvnJrRvF3ehMv25RTNKZDYTh5xdAz2aKEjtL/EPkD2XQkxiRwVOdpF M1nAnoqn8PjoapITDJaRV9gWdnpFlVehFSEqZJfGTMxdYl4h9avShPQTgPTZVs0yu88+ qnyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=yYiJqZTb; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gTg0tWfh; 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 h185-20020a6383c2000000b0055ba8970e7asi7206126pge.616.2023.07.31.09.27.54; Mon, 31 Jul 2023 09:28:06 -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=yYiJqZTb; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=gTg0tWfh; 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 S231950AbjGaPi0 (ORCPT + 99 others); Mon, 31 Jul 2023 11:38:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229871AbjGaPiY (ORCPT ); Mon, 31 Jul 2023 11:38:24 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 139C6D8; Mon, 31 Jul 2023 08:38:24 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690817902; 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=P/W5Li7dfE7r3qR09rk7c9rr3IsQpi7R9QAF8g++NHk=; b=yYiJqZTbXdrPsUWG9m/MOHB+7MN+qcpf1Z5ZJ3J4QdSqw4egwDi8R607O4CVgZPQN7LvBs RnvBWshVh2pUpWtZY2KPI8ENqct1TSYeb3hokZtCa2zJIYySf471xi8UoDd+6qnFyTwfNi QBIxYdXMgeF8rIPtwh9mDxvMg5LPgCHmgIkX4HdNyh5GfWlmcBN2L3dpnanqn46R0HH87X nAsYCbl8ws4nJPfhajlrgsFUtDXr4YEr2GU0GJg+hmg3F6eRNyr0JQ7LItK1L0zo8f6sY3 sDCC67ws3bEe7Sc6Do2yk38WTrcROYGO1Ug9sA8Qp1Mt7PrtuN1A1JQM3GUcnA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690817902; 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=P/W5Li7dfE7r3qR09rk7c9rr3IsQpi7R9QAF8g++NHk=; b=gTg0tWfhltDprkXyKscpuMQXBP7cFCPJjtXqf5P4PPi1Zg+0kngwoQpw0b871Pq/GrEET5 TbPQ9fXeHPwui8BQ== To: Peter Zijlstra Cc: "Michael Kelley (LINUX)" , 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: <20230731132714.GH29590@hirez.programming.kicks-ass.net> References: <20230728105650.565799744@linutronix.de> <20230728120930.839913695@linutronix.de> <871qgop8dc.ffs@tglx> <20230731132714.GH29590@hirez.programming.kicks-ass.net> Date: Mon, 31 Jul 2023 17:38:21 +0200 Message-ID: <87sf94nlaq.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 15:27, Peter Zijlstra wrote: > On Mon, Jul 31, 2023 at 02:34:39PM +0200, Thomas Gleixner wrote: >> This collides massively with the other work I'm doing, which uses the >> MADT provided information to actually evaluate various topology related >> things upfront and later during bringup. Thats badly needed because lots >> of todays infrastructure is based on heuristics and guesswork. >> >> But it seems I wasted a month on reworking all of this just to be >> stopped cold in the tracks by completely undocumented and unnecessary >> hyper-v abuse. >> >> So if Hyper-V insists on abusing the initial APIC ID as read from CPUID >> for topology information related to L3, then hyper-v should override the >> cache topology mechanism and not impose this insanity on the basic >> topology evaluation infrastructure. > > So I'm very tempted to suggest you continue with the topology rewrite > and let Hyper-V keep the pieces. They're very clearly violating the SDM. > > Thing as they stand are untenable, the whole topology thing as it exists > today is an untenable shitshow. > > Michael, is there anything you can do early (as in MADT parse early) to > fix up the APIC-IDs? I don't think so. Michael, can you please provide me a table of: APICID (real/MADT) APICID (CPUID) from one of the tinker VMs please? Thanks, tglx