Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4948021rwb; Tue, 8 Aug 2023 17:17:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6sLZbey9PG7mWC79QaggwPpmLHYZ0wTJZITjINBPav6DadQ2QBG493g1jjIXtGl8AzHmY X-Received: by 2002:a05:6512:23aa:b0:4f8:5635:2cd8 with SMTP id c42-20020a05651223aa00b004f856352cd8mr812070lfv.32.1691540263401; Tue, 08 Aug 2023 17:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691540263; cv=none; d=google.com; s=arc-20160816; b=kCEp+v32seek5oLgV5G0FP88euSEa+rUg0PFc3HHbX3uI7GYjjtnuDNTtaorn6ro+d /SWTcLo1yqVSIEd3VUVp7jdoeDvvMAYHsR8YS4nYwMATkLVRAxfXxnuDiJSVLzA3KwNx GTq+8MeK81gGLLSAfT+dRMDn0vqtMQkIXXDI65ELaSxMTsLMXFI9idM37fhBbyp15Vcm T2Cv0ytVVCPt9jZB49qtp1WNKq8n/UPsAStLxPIYDRa+SVJ6Yo/8Wp0dwbtRfT2cAlNH h14VigzL2r5r1blF0srwgXGV5lx3HoAxWjkjZml7a2LCisVJdLWz5KoILeWIPQhoutWl d2fQ== 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=BDRBfvZeiSTP1h6gDcENN+xIgQ/UkzF8VhG+WnIt7oI=; fh=nPfwqoSU5Qke6YnBqE8Cle+7TnF2OdfNkyfGfVHFNlg=; b=JUPo1MOxbbMejrhUBR188WXgGetCyWzxZob1BtTqPndCRRknryys0Yxs8+PcQOwX+k GOLaGQeBt8COiTUiBBrbxR3OqK831lKPOXNW2hwDv1znJXUeibCrroKINLEuj/VAdrHo 5vh1r3mQqPMotnDxtp/eWFgrcTvQ7b0T/8Dqqb2RFIg3y2kPOuf6o31HvkxYFOQPZuQX 8Z6rvV/sUf+5c52Ny/SsWnmghoudFZMzq+FCfGAz8hI9HTvH40tHMkoM23s49vgxK9HA +md77d4vy7p1vIeUcdreqfw6GLHUoLhpm15jfstnMp+XwUrI83tPJLwhd1QbhBHImHb0 U0qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lv7upUUV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NZ0sFHv1; 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 r10-20020a056402034a00b0052336222abdsi4601358edw.510.2023.08.08.17.17.19; Tue, 08 Aug 2023 17:17:43 -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=lv7upUUV; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=NZ0sFHv1; 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 S229583AbjHHXUN (ORCPT + 99 others); Tue, 8 Aug 2023 19:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbjHHXUM (ORCPT ); Tue, 8 Aug 2023 19:20:12 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5184219B6 for ; Tue, 8 Aug 2023 16:20:11 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691536809; 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=BDRBfvZeiSTP1h6gDcENN+xIgQ/UkzF8VhG+WnIt7oI=; b=lv7upUUVfYsLvPfnNKeqdBy6ZB10rzjyILp3dEhd0T0FQiY7jR8arKkNWFvRHEst78pjc+ 8mzIGOzg19TED4AsVOI140DuQ7NYbd+zjWLQbBhVt9d5qM82W1zATO058LFACsTYiVhF83 FGEfuFGx4ZUEXQEpUUpU5JJXa7rctuVwiH7BpY1jRkbMdhz10NjeVWSHCw6PY6aOmv8KV4 9RIc6/9GE9MIWbmenAWIN1/p4YBs5RWADwnDyv/Ik2YkxRQyFJCFhvNEgr5a0I6ngqu1hO vyJbD11C4l+7hpVe05+uaW33vadSV6TG+Splg+kZuWKc2XkA9Ihjw66Je1hJtw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691536809; 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=BDRBfvZeiSTP1h6gDcENN+xIgQ/UkzF8VhG+WnIt7oI=; b=NZ0sFHv1IkdjTa9zUaQHDHf0oqbBcqvkSB+7ZAQ88s11FZ2mFcjkQlFZWezZq5zS2haPn6 Zl3KRMKehhBkQ3Bw== To: Sohil Mehta , Peter Zijlstra Cc: LKML , x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko Subject: Re: [patch 00/53] x86/topology: The final installment In-Reply-To: References: <20230807130108.853357011@linutronix.de> <87h6p9l58u.ffs@tglx> <7ef60626-28ab-a4cc-2f24-4f35e3d946aa@intel.com> <87edkdl10w.ffs@tglx> <20230808221039.GH212435@hirez.programming.kicks-ass.net> Date: Wed, 09 Aug 2023 01:20:09 +0200 Message-ID: <87350tktp2.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,URIBL_BLOCKED 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 Tue, Aug 08 2023 at 15:58, Sohil Mehta wrote: > On 8/8/2023 3:10 PM, Peter Zijlstra wrote: >> It works better if you move this hunk into acpi_parse_x2apic() instead. >> Then I can indeed confirm it works as advertised -- also having one of >> them afflicted ivb-ep machines. >> > > I had a disappointed email typed up Rightfully though as I'm clearly too tired and too grumpy to think straight. > and was about to send it when I saw this. :) > The inconsistency and warning on my system resolves with this. I lost > 120 imaginary hotpluggable cpus but other than that everything seems > fine :) Sorry about that loss. :) > CPU topo: Max. logical packages: 2 > CPU topo: Max. logical dies: 2 > CPU topo: Max. dies per package: 1 > CPU topo: Max. threads per core: 2 > CPU topo: Num. cores per package: 10 > CPU topo: Num. threads per package: 20 > CPU topo: Allowing 40 present CPUs plus 0 hotplug CPUs > CPU topo: Thread : 40 > CPU topo: Core : 20 > CPU topo: Module : 2 > CPU topo: Tile : 2 > CPU topo: Die : 2 > CPU topo: Package : 2 > > domain: Thread shift: 1 dom_size: 2 max_threads: 2 > domain: Core shift: 5 dom_size: 16 max_threads: 32 > domain: Module shift: 5 dom_size: 1 max_threads: 32 > domain: Tile shift: 5 dom_size: 1 max_threads: 32 > domain: Die shift: 5 dom_size: 1 max_threads: 32 > domain: Package shift: 5 dom_size: 1 max_threads: 32 > > /sys/kernel/debug/x86/topo/cpus/39 > online: 1 > initial_apicid: 39 > apicid: 39 > pkg_id: 1 > die_id: 1 > cu_id: 255 > core_id: 12 > logical_pkg_id: 1 > logical_die_id: 1 > llc_id: 32 > l2c_id: 56 > amd_node_id: 0 > amd_nodes_per_pkg: 0 > num_threads: 20 > num_cores: 10 > max_dies_per_pkg: 1 > max_threads_per_core:2 That makes much more sense now. Zhang, can you please follow up on: https://lore.kernel.org/all/613df280116378115585d0c483f7e186cffaeb58.camel@intel.com/ or otherwise I just polish up PeterZ's variant of it tomorrow. Thanks, tglx