Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1175363rdb; Fri, 16 Feb 2024 07:30:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmM4lQP36glRwDfaITpv9e7qP9btJCXu66HWRb6uxK60QW7SEuHup1EwAm3ops+z0bfx7kcqvE4JM5YDQn9v1NNIIzceiQSkH99xQbXw== X-Google-Smtp-Source: AGHT+IGR4WfRm69wte27ogSHFp4u+XpSV/lB90qcDY03Rp8tbAYNKEeeZf5PBzY5bEhluq1SqbcW X-Received: by 2002:a17:90a:f0d2:b0:299:a67:c1fd with SMTP id fa18-20020a17090af0d200b002990a67c1fdmr3989904pjb.45.1708097427703; Fri, 16 Feb 2024 07:30:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708097427; cv=pass; d=google.com; s=arc-20160816; b=Rl3uw60P7tEvB3D4zkPE2zCXg1f80V+FoIVKaXgeQearKh2WfyvEnBsxGz1LGMHFb6 Cn1C4nt/riMqPY+IQUO7NsGdqg0UwuKthJZ4q5KJUU9RD8fvjnaQKVjicO1thLd3WbsB uSrC9qEBu/I2c2gIwNcVkAwQ3dG5+tEkRss6OMEYre6k+o34wVMlzzqxOlOZwr/55te5 7bv/Hx/x+YSR345vPLbZZPc6suxb/FKQb7b34b0IIH4qKnQw91ZolwnllTV2OiUXR1H3 V+qjTPTzdu8NskFA/J2u8f3a9PrtuTe19jL9DayjCrcZer28pBzvWwmfriFrUe9l6lQ/ u1iQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=7qV3XftI8hzq2CaDVBoRiUthistZuO3PbPWNbpjHBME=; fh=bKFZC7eFAaoHEVJ40HlAwnrPNXnqvg4zDQ5eWTP23JU=; b=NL5jjY/Pu/KS3mjo5ks6SNuimr6S9y5Lgw8rq6SBBIKxuI00Bi0x6h0UtgmKABq9um 0AWKC22LpG+EOuFW4NlKgv/JJdRpLv6eG8mtosfg0+nOrWkXgK7kwMw73+qsB8kO6K8h D+wwNHQuaT0wBpU1zvBVmkESr6bwXt1O6/5UZh0jjxf0BA4mAytkVdSbx+0mhVb4iq1z ciyhMQtDkzWX5Ref7X7WX2qdyR2chzO8QCK6PQOu6zC1PP4k6+/zEh2CSpLWhtqbdrrL qu5HXUKm+x6JyqiS6Wpe+4knup8xZWxHM0dpkZVaUr0JH+vAfFWg7TBBOXzCEzhJRRZZ 5h3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MkBsRAT3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-68856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h20-20020a17090acf1400b00298ab3c3ee3si120093pju.14.2024.02.16.07.30.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 07:30:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MkBsRAT3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-68856-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68856-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1B9FA283E9D for ; Fri, 16 Feb 2024 15:29:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32186153BDA; Fri, 16 Feb 2024 15:17:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="MkBsRAT3"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Km57MBZZ" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4906152DFC; Fri, 16 Feb 2024 15:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096659; cv=none; b=akT0Nk1js++Ct74IlO46bjWejyJnBNX9I6KWZQLp/X8AJMkdGRzOT7ZLlXb8wZEzDHxFhZpkW4X0EDr6DHIDe3TkrshQzC6nLJa4lCtBtzhCCt0b8GvYEhqXC5DJSZRtIgM4ENKAjh22eRLXaYBNCxR3+venez7iMeQEYQYJFAs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708096659; c=relaxed/simple; bh=Kdy/3ACi5kIfj5bulc4AeoSffzVKJ0eH2LWQUggffCg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=SBNO2X+rmL7TOap53J7WU0buyvtCAiWVJX6AvcuYW5mr6nONO4Iw/jCvmf1979QqWwyPPMTRyCcGLsy3nNHcMSaY4LhNjZNJaSs02vC3fxVODZMOEgIPwInEWYb552Td8yAE6zOZxpgICW7ZI32+46SqhKZ488lHTL1et4TmHwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=MkBsRAT3; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Km57MBZZ; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Fri, 16 Feb 2024 15:17:33 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708096654; 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=7qV3XftI8hzq2CaDVBoRiUthistZuO3PbPWNbpjHBME=; b=MkBsRAT3UK9l6q5wA8GNM5fQLDYlWc/WO/WobW0Mx6hSA5Q1E3o3Zj9Rz8vMZ9sOZfseVA 8AO7tJSxCtkxB5vLMXKAfk3dwCNZppThQyFMFg7XzlH7tFiBpNEX9OO1vo97RqE/Of/gLG 2tLzkvllhTtsucsi1CmXBwyVHvy7CyWysdtVhJcVnnlGQEwUDoWEprY9sG7iLQqg04H9tL ws4bwxTz6UN/Q+VKicoQzwQ3hAeqZud8liqn7PgqQNwZSJy3zqfYxlze3F2m8eko2rax0O dihWqgUg1ekNz9Abv/zDykVLsZvQGKvr7K/VqTqMSswREd9dle9D0Ueh/BxVGw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708096654; 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=7qV3XftI8hzq2CaDVBoRiUthistZuO3PbPWNbpjHBME=; b=Km57MBZZBXe4og9+tYiSOC63X1n+a0Jvyo4qkBS7KA0MiOMNATD1FIpSihriI3IkgCHHkJ SIP+19+6+18i6ECg== 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/apic] x86/cpu: Move __max_die_per_package to common.c Cc: Thomas Gleixner , Juergen Gross , Sohil Mehta , Michael Kelley , Zhang Rui , Wang Wendy , K Prateek Nayak , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240212153624.768188958@linutronix.de> References: <20240212153624.768188958@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170809665374.398.4261415306130047095.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/apic branch of tip: Commit-ID: 92853a7774f942e3692dbd83bace82333a2b47bd Gitweb: https://git.kernel.org/tip/92853a7774f942e3692dbd83bace82333a2b47bd Author: Thomas Gleixner AuthorDate: Tue, 13 Feb 2024 22:04:05 +01:00 Committer: Thomas Gleixner CommitterDate: Thu, 15 Feb 2024 22:07:37 +01:00 x86/cpu: Move __max_die_per_package to common.c In preparation of a complete replacement for the topology leaf 0xb/0x1f evaluation, move __max_die_per_package into the common code. Will be removed once everything is converted over. Signed-off-by: Thomas Gleixner Tested-by: Juergen Gross Tested-by: Sohil Mehta Tested-by: Michael Kelley Tested-by: Zhang Rui Tested-by: Wang Wendy Tested-by: K Prateek Nayak Link: https://lore.kernel.org/r/20240212153624.768188958@linutronix.de --- arch/x86/kernel/cpu/common.c | 3 +++ arch/x86/kernel/cpu/topology.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 004ae9c..5d7911f 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -76,6 +76,9 @@ u32 elf_hwcap2 __read_mostly; int smp_num_siblings = 1; EXPORT_SYMBOL(smp_num_siblings); +unsigned int __max_die_per_package __read_mostly = 1; +EXPORT_SYMBOL(__max_die_per_package); + static struct ppin_info { int feature; int msr_ppin_ctl; diff --git a/arch/x86/kernel/cpu/topology.c b/arch/x86/kernel/cpu/topology.c index dc13670..208e17a 100644 --- a/arch/x86/kernel/cpu/topology.c +++ b/arch/x86/kernel/cpu/topology.c @@ -25,9 +25,6 @@ #define BITS_SHIFT_NEXT_LEVEL(eax) ((eax) & 0x1f) #define LEVEL_MAX_SIBLINGS(ebx) ((ebx) & 0xffff) -unsigned int __max_die_per_package __read_mostly = 1; -EXPORT_SYMBOL(__max_die_per_package); - #ifdef CONFIG_SMP /* * Check if given CPUID extended topology "leaf" is implemented