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 4FDD4C001DE for ; Mon, 31 Jul 2023 15:38:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232003AbjGaPi1 (ORCPT ); Mon, 31 Jul 2023 11:38:27 -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 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