Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5409790rwb; Tue, 1 Aug 2023 01:57:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlGounO3WG8kDBkGI6MygjdQHKWy5Heb0eS7X2/Zqa24Dd2UFg14AhZNpY+/rK/YMVmpFV/j X-Received: by 2002:a17:902:a50a:b0:1bb:d860:9efd with SMTP id s10-20020a170902a50a00b001bbd8609efdmr12365820plq.15.1690880247480; Tue, 01 Aug 2023 01:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690880247; cv=none; d=google.com; s=arc-20160816; b=V4uXWWs5//le+qa0mZGZONid5NdQo0FuwQqbbPpgm9wZ99ql2ZU6wZYGPf4WxHYsAq 7cFldOwGpkh+HLSpADylB7NvjduORrDuVcz71tX+2uB5BrzwNTzyHt2j5JgC9kI/vq9c 3v6vkbBXH8huaEuMPJDRSy0XHf7OSGn7QTPPhL6s2P9UFgTEXcPE95caoji7n9apO4Wv cW7cIpMl4997uk/UIWOrCMWwMAFMneIJdqMKOgM0fLyA59zJvlXRRYpNe30lP84w1fTk 5ku2diAdPQ3SSButHjrylUEs6dVlnfREcRdw5PBHXmWs5XVG8VMszx229WQ/GAREiz9b PClw== 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=barXOaLcqK7APgvHwy35ku+WMnw5Wwq/VfYIfSWf/UY=; fh=BNfdRBU0Jcs7FUeuO+ucqsZbkIpooOtZ67NzaoopJcs=; b=Jjn7WrjxbEXAR217BhiJOcYH33iFaMUcrM4TZhh8tOJnIBboQQ96kaj34O91zp5Ydj SXcOydp537jdS5KEubFkH5aYbW0qnBV7+vZGuQB+JpztKrUsZUqFJObE99ofGM5sw+vp wpS9l/JGo41e68OQAnsMkx8XD47nCReAsX/HSE2WwDidABt4QpG4VL46TuqJhy6uTrHi YD5KAg7kKlYcKeELVfSQ3mt2y4G7J9H8nDmNPeTEpLX00JMwR6i4BpkAS1fu2NqWHDeJ sgSiL+uDKT9stID7J0qoaYd7uRJrFykfAX1fkiShc2v1dKFAj0sx8aYSPtrX3a/Mc9OO XQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=hEXIhvWX; dkim=neutral (no key) header.i=@linutronix.de; 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 e5-20020a17090301c500b001bb9d4dc202si9282646plh.49.2023.08.01.01.57.09; Tue, 01 Aug 2023 01:57: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=@linutronix.de header.s=2020 header.b=hEXIhvWX; dkim=neutral (no key) header.i=@linutronix.de; 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 S231600AbjHAHed (ORCPT + 99 others); Tue, 1 Aug 2023 03:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjHAHeb (ORCPT ); Tue, 1 Aug 2023 03:34:31 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F621726; Tue, 1 Aug 2023 00:34:30 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1690875269; 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=barXOaLcqK7APgvHwy35ku+WMnw5Wwq/VfYIfSWf/UY=; b=hEXIhvWX+SuOx+KXfj/eqYjjEpgeZC4/n4Fpc/+IPsWHJo3nZ6MKdzXczrybyV8tQBtooe VVaNN67MBFQCF0aiH6KQzuyQnp/lhhw9ZkSdf06j8tJZj2R7yLT+tPeb3Fwb9QbL/NzBgj YnD85mc3xW6FWzlUgi7eP9rMu6/TFbWK9VuFTfYpryPyysxPyWP7yG62gbAiBVJTgAhZdr CuKTEHkwhx+rx2ARNXZBpcL3ST26HbKV3DrALaFngofEqhvTY1FpRtE9P+F+2ed64fWwu1 H14cm5T8BEl7nYJpOtRbmz1j7qXTT6XST7kB3zcIsI4VqKoKnD0t8pOs8qqdHA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1690875269; 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=barXOaLcqK7APgvHwy35ku+WMnw5Wwq/VfYIfSWf/UY=; b=bBpIEnmh2rLafh4mQOd9MkQxRwNZaxEQ5WNI+LrjQHqzYeh3P+07vsAYLsfNrnGS0ptJVY Kafs3z+qoUp5LfDA== To: "Gautham R. Shenoy" 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> Date: Tue, 01 Aug 2023 09:34:28 +0200 Message-ID: <87leevkygr.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,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 01 2023 at 12:35, Gautham R. Shenoy wrote: > On Fri, Jul 28, 2023 at 02:13:08PM +0200, Thomas Gleixner wrote: >> +static void topo_set_ids(struct topo_scan *tscan) >> +{ >> + struct cpuinfo_x86 *c = tscan->c; >> + u32 apicid = c->topo.apicid; >> + >> + c->topo.pkg_id = topo_shift_apicid(apicid, TOPO_ROOT_DOMAIN); > > Shouldn't this use TOPO_PKG_DOMAIN instead of TOPO_ROOT_DOMAIN ? Yup. It does not make a difference in that case. That's why I didn't notice, but let me fix this for conistency sake.