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 57E67C001E0 for ; Tue, 1 Aug 2023 07:34:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231822AbjHAHec (ORCPT ); Tue, 1 Aug 2023 03:34:32 -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 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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.