Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp836939rdg; Fri, 13 Oct 2023 02:39:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHt7D4g2yiD3MNt6K2QYf14mKaqJD3rJjhy+YeVGaMhrC2qicJxWTAuYP5yG57RLpPTUotQ X-Received: by 2002:a05:6a20:104f:b0:154:e7e6:85c8 with SMTP id gt15-20020a056a20104f00b00154e7e685c8mr22965558pzc.31.1697189946964; Fri, 13 Oct 2023 02:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697189946; cv=none; d=google.com; s=arc-20160816; b=lL03Ek3M1MAizGrJ8mwWOWfaYzTf34Hz8pZhMD/4RhIkSjovvr4jPql527uMSO/52D gdCv3ErAigwBMYqPQ7RKOW8J5To4gbvAavumq4EywTonI7cNMs/rs4yczqAfdTLkXOIP auxQVYTydB8owTbUddo9rXPhWzzu/SLKMdi25ukdKGQZptBCmZBlKzBHqARQftGrK+ub aSUYBDzm6/Pwlq2BNs17QxQwDWJfPBTb+qLMWw8hp6Q0R9WFYocB40SbEHzx++qeU8eK cWn+Nnl2mCiw5XxrF9wxPsZCIXSQt/qbXHAlDkVmEpLi2QHkFUfeasEH5TZtpEpjbN3E 4psg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=yiCRTOM5demFgKTmq9X6OyvEhW+xoW8NeDS5lAX1ZC8=; fh=0+UPLPNzUC2ByrAHKUZuTVx5U+vPcsu9FF72jvWmJM8=; b=iruLZpVjeTkKjEcD2q+3TOncLnQC83e772My3m4J9UepmoxXveTFrdsWLyhPz/t/hL 7/SG6snE6mCW/t/y9YBkbzUPwLQakllxWwPDGpN1vhMVjITZU7bBALl7cGEhmlHiuzAM eZHKObTuhfAtJWmk3qwND6Eu+XhPFUQZv//pvPR5Z/Z0YsKhBsbJ2KzBZA91Sixt/K8Z FHz+NwFlpjttRV3wz2lLZzJG5Dc1omMflWq5f8tIwZhRshmrbyW+JVlCa58fThPBBw4v zwT1dSPohm3RckIcPX7gbFs39v3bWFrsf/CCcxVlVc7crBO1MhCsYq8W1Seg6YY+bxQF nhDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=B4TxUZhF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ftvag4we; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id r24-20020a170902be1800b001c62acfa473si3862896pls.62.2023.10.13.02.39.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 02:39:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=B4TxUZhF; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Ftvag4we; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id AB38082F7F9D; Fri, 13 Oct 2023 02:39:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjJMJiv (ORCPT + 99 others); Fri, 13 Oct 2023 05:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231237AbjJMJiN (ORCPT ); Fri, 13 Oct 2023 05:38:13 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A1ABE; Fri, 13 Oct 2023 02:38:10 -0700 (PDT) Date: Fri, 13 Oct 2023 09:38:08 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697189889; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yiCRTOM5demFgKTmq9X6OyvEhW+xoW8NeDS5lAX1ZC8=; b=B4TxUZhFgn3d8R9v0n23nZkl2xHSOF4MBY0JDIerWiZIqfkPoIrgVYgV56REH7dneMb9nD H0K3p/aO41YStXqJJlrWgOTovaPh9e0EMkM/elL9Ho9ATmLxPr0L7BpHQu3Uw7cf6ME/Kq TqqPcDA4FXZ0ibfT5LD0PayJkIEEFuY0+epISPiaOV/Lt0F1oHal/Ymjpt2OMB/wxJtM5F q6KaWQ4qKEGxwBZ+d8a9qLtkPunw3jJgOQyF4RNrc1QYtCYfWmvJ9We9LiSsyJZAe1z8NA FDL9zb2wgccAHzBw+qF+xxaMsoFznrorM4rWFUaJjTs4kNkOX8zDfahNkuDEfQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697189889; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yiCRTOM5demFgKTmq9X6OyvEhW+xoW8NeDS5lAX1ZC8=; b=Ftvag4werfWiJJYLXBUwH2mwr88lQ2ZBPXtZElVVY0w8/yWDu9KT4OoMvdq7iLo1XNhvtM tXGr6You9+UQ2DBw== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] x86/cpu: Remove pointless evaluation of x86_coreid_bits Cc: Thomas Gleixner , Juergen Gross , Sohil Mehta , Michael Kelley , "Peter Zijlstra (Intel)" , Zhang Rui , Arjan van de Ven , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230814085112.687588373@linutronix.de> References: <20230814085112.687588373@linutronix.de> MIME-Version: 1.0 Message-ID: <169718988888.3135.7116915738142139742.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 13 Oct 2023 02:39:06 -0700 (PDT) The following commit has been merged into the x86/core branch of tip: Commit-ID: 594957d723a0674ca15bfefb755b3403624b8239 Gitweb: https://git.kernel.org/tip/594957d723a0674ca15bfefb755b3403624b8239 Author: Thomas Gleixner AuthorDate: Mon, 14 Aug 2023 10:18:36 +02:00 Committer: Thomas Gleixner CommitterDate: Tue, 10 Oct 2023 14:38:18 +02:00 x86/cpu: Remove pointless evaluation of x86_coreid_bits cpuinfo_x86::x86_coreid_bits is only used by the AMD numa topology code. No point in evaluating it on non AMD systems. No functional change. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley Tested-by: Peter Zijlstra (Intel) Tested-by: Zhang Rui Reviewed-by: Arjan van de Ven Acked-by: Peter Zijlstra (Intel) Link: https://lore.kernel.org/r/20230814085112.687588373@linutronix.de --- arch/x86/kernel/cpu/intel.c | 13 ------------- arch/x86/kernel/cpu/zhaoxin.c | 14 -------------- 2 files changed, 27 deletions(-) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index be40456..55efadb 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu/intel.c @@ -314,19 +314,6 @@ static void early_init_intel(struct cpuinfo_x86 *c) setup_clear_cpu_cap(X86_FEATURE_PGE); } - if (c->cpuid_level >= 0x00000001) { - u32 eax, ebx, ecx, edx; - - cpuid(0x00000001, &eax, &ebx, &ecx, &edx); - /* - * If HTT (EDX[28]) is set EBX[16:23] contain the number of - * apicids which are reserved per package. Store the resulting - * shift value for the package management code. - */ - if (edx & (1U << 28)) - c->x86_coreid_bits = get_count_order((ebx >> 16) & 0xff); - } - check_memory_type_self_snoop_errata(c); /* diff --git a/arch/x86/kernel/cpu/zhaoxin.c b/arch/x86/kernel/cpu/zhaoxin.c index 05fa4ef..415564a 100644 --- a/arch/x86/kernel/cpu/zhaoxin.c +++ b/arch/x86/kernel/cpu/zhaoxin.c @@ -65,20 +65,6 @@ static void early_init_zhaoxin(struct cpuinfo_x86 *c) set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); set_cpu_cap(c, X86_FEATURE_NONSTOP_TSC); } - - if (c->cpuid_level >= 0x00000001) { - u32 eax, ebx, ecx, edx; - - cpuid(0x00000001, &eax, &ebx, &ecx, &edx); - /* - * If HTT (EDX[28]) is set EBX[16:23] contain the number of - * apicids which are reserved per package. Store the resulting - * shift value for the package management code. - */ - if (edx & (1U << 28)) - c->x86_coreid_bits = get_count_order((ebx >> 16) & 0xff); - } - } static void init_zhaoxin(struct cpuinfo_x86 *c)