Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4541069rwb; Mon, 31 Jul 2023 08:21:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGrA0+swvzCU8RZ9WJUSLOyFfmCW8XCMwzE7sx1Swch0AFo1Ir8qufcj3ATZlKcx3QWxcIo X-Received: by 2002:a17:90b:350b:b0:268:300b:ee81 with SMTP id ls11-20020a17090b350b00b00268300bee81mr9735851pjb.15.1690816887094; Mon, 31 Jul 2023 08:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690816887; cv=none; d=google.com; s=arc-20160816; b=PWXf5B/tC4rl7lvmocx0hH8gK8EyySGma61gvZuAa+QZZwrRHk/tqFfI9nOmhlTo8g BhbR5up3em5a9K5QyLq4vPOFoXWHpD4xqsoiHDcyuLwB01vnHsJBSOpJUwndbYA9Kpzk a0b7oO4C8SOgXuxwguaFbEhusWNGoQvfZXepRGg8uFuJQEqkHomAp7cNoXy76AgLBpW7 21npk0f/3rxOeQpAOctkwU/b4BcAEfmSHTrXorFri3fYFePwjHFO6Y92G+oUWAPa5JQb xx3FRCjy8ZKIKS85QW6jZ/93/L+iL1HiEZs6V3YsDT6WNJnI/ypLYW5xcEC4n648QseV MxLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=z3FGDGVTFrElSVM7fG1oVI/2ZdLRjgqGQNhHfwty3ro=; fh=XAUu9IVe8l9ltNzljGUXoaL5iuXqyQ7hdWooA/LTd9E=; b=WpetTXWK9nfuu5yVDMXhsfcXRixPufpd2SiWdQh167vkfYr3hlJqb2rjr7wJaXH+a0 kxU0HXTGkD077SUaAJZxVuipaaCB7jdN2WN6MyROnvz2rIRE5kZI4gYAFqIWs/Ox364i MbwGTqKpgb828j7udY7kYulWXAB7ssAgQf4gWoNEDqNIyhRyXKSfriBZoSyqcuzvSmnE Jjua95Ltx+Waff6NT8T4Mc+qpiwqanZ/8y2PNqvbyQt4F97JzebU3/aQdp2fl/mXLseN 76AYuuYMEzV//JcU5GI2zD9CE/LCxH6EX4avDkikL4qllaH95qPbzTPVS8sp9Wek36wy r75g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="gT1/elGv"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a17090ab31400b0025c1ff9cd67si256058pjr.184.2023.07.31.08.21.14; Mon, 31 Jul 2023 08:21:27 -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=@infradead.org header.s=desiato.20200630 header.b="gT1/elGv"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbjGaN2Z (ORCPT + 99 others); Mon, 31 Jul 2023 09:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233000AbjGaN2D (ORCPT ); Mon, 31 Jul 2023 09:28:03 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FD4171F; Mon, 31 Jul 2023 06:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=z3FGDGVTFrElSVM7fG1oVI/2ZdLRjgqGQNhHfwty3ro=; b=gT1/elGv8pRKZcUAdG87anzivd bQYyicftn/s4ecFExe79VFyXXKm4PsJXltInnPUVRyGqMwTQ5IqeaWlri5k9m69YCNyncH6jcww5b 0pavFKpPHmrYlleE9z4EDEBH1CsBhFD2t1pneT8PYLnICc5sGq3LnOjG3uuDRBK159PCKsg/vkBMo 68hYTVV+3ZXkOGHemrthHSfQXmpNG93pwA+tsAQi7uJFAZYtmhkOvyJXYxZy7BRyewjSXTSmcUf4N F4yFzoc4Ag4BpxLQW3b4n+w+OMxW0RbfqdbNTXOoWnagtjDMHfTiPS9aoJz8QFwzVk/tA8rR+s4Xo 3f+UcpXg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qQSvb-00CjRi-2p; Mon, 31 Jul 2023 13:27:16 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id CD30C3001DD; Mon, 31 Jul 2023 15:27:14 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BB3622058B54B; Mon, 31 Jul 2023 15:27:14 +0200 (CEST) Date: Mon, 31 Jul 2023 15:27:14 +0200 From: Peter Zijlstra To: Thomas Gleixner 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() Message-ID: <20230731132714.GH29590@hirez.programming.kicks-ass.net> References: <20230728105650.565799744@linutronix.de> <20230728120930.839913695@linutronix.de> <871qgop8dc.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qgop8dc.ffs@tglx> 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_NONE,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 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?