Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp173012rdh; Tue, 13 Feb 2024 13:05:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUwqXQrMh2ULnHa1h4gAi23I3T42hM77l54UKhJWazk3hq252mwVzuL9V9lhVS72fWE2tFUHax+5ewIXE0VZ4Ei5GkNKyHlY1z39WjhRQ== X-Google-Smtp-Source: AGHT+IH2pclP0Xp8Z6vz3KisVrxnB3LBgLoEomRnOLFZgHJ3y7BU4o4bgLpyoQ8rvUHy0RT1D2YL X-Received: by 2002:a17:902:da8b:b0:1db:2d82:e803 with SMTP id j11-20020a170902da8b00b001db2d82e803mr951584plx.20.1707858316304; Tue, 13 Feb 2024 13:05:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707858316; cv=pass; d=google.com; s=arc-20160816; b=0eBQHL3qmxgTmSxj0V19MXquyjMUcK0ihsIUIF/8Lb8fv4wPVXiNmNvZ1BUMvQQ913 5910BmFWTtoe7ZQS36qLBvUKEHkd9BKJDEs2XLSwQX491cG1MvAVEW2g+zH2ZqExDLDA EgYzkqqJx+ZLIpfxYdM8pEnxQGhEZhqOiIaWmtvN3kxD/q1iL8HdUUUb4AJUIE49Ml5Z 5Dwt5cn7CwAOH4WBVVKdygc1vXMbmgd2svKGExeF7W78plPUm2nyq78olW9uz5crFq6i 8g/OqcTKBPKa+AKlAAuS5uS0B+N5DTniY7CabHhHuFh8Tbl4DUmr4rmHhcmbWGvGjP+A 3tcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=ZRJkzOwB5/1YL71AgKNjiEjK5SJG7QnNpgljQo39jQw=; fh=eQO7IDRVkz06BJuFw5C7gugzyxQCkCdPgdtwpESAluA=; b=RWUfRGA+sPI5DsiYA5w6eAlbVCFHvycFF6jlh/dO4QVatsVuaC0RBO1ag1L6fEVMXn YBsxstSuzf9iEANZF4iz+fKbEHa/ucsegnbuHMVBOE3VCR+cFV/eVy9FWkWli1oQea05 8AtoDpyBHiEhGLq1Zw4Hnn423EBZX6DQr1bDYtTUCcfBNC1PQLrLL9fCAZ7Tkv0IUUci eKHMWOH/IblefEDIwHMv6qtsjtsmsNwyLy3xCiIH+rqoT1L0qXoeDh83oPe/u1FQmWyn 349K/0QWxIZ3aaNvKtrSZzue+CoU+GEwWbyz9x7fIaN3iCcBhiTFX9HOq/KbkrIXmink pMMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=bzy2ZvOG; 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-64244-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64244-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXeK4JKqp8uCbNs7fh9W1pdNEfMOxleas/Tfpzxoe/3n43OBZliwgP6QWHfuMqHFCgHnH2tRVfaO8xreEaEkheb8lwPxYL4rayyba9r4A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ju2-20020a170903428200b001db4cb15c67si640888plb.498.2024.02.13.13.05.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:05:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64244-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=bzy2ZvOG; 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-64244-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64244-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 832A028ABC7 for ; Tue, 13 Feb 2024 21:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60929626B7; Tue, 13 Feb 2024 21:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bzy2ZvOG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dL335nHV" 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 1073362156 for ; Tue, 13 Feb 2024 21:04:07 +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=1707858249; cv=none; b=U5wXBWlDuf39qFsDhvL7QQWLBTN2gNRZaP3uFaGV3t+B6RD0sSkLgw6e7wR+ly9Vd81fI/FakJVKCs5m/HtRFLMLtmf206ZvCd5dA96/+fsTas6A8WFW37i/Omwhdn6QBtjnm9ZbTCzSWjllXzqOXQl5kHKQqi4oG502KmQK5Kw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707858249; c=relaxed/simple; bh=Llmx1y+tansg1E/Nq2ZhT8Zi+oyVTBjaKh4Q99ryi8Y=; h=Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type:Date; b=sR8Bm5Z3BcWDRAyPRUDefsc1rR52Xd0cUyq3ljteeUolUa2tY5scUBXg83h6fWmahLcb3s9HnDt1sZJyg+chy/bl5lmKTW8nH333ZM/Xl41g8toA89jYZTqEVec4Iv5wcWjAETBVJ3WdQPQa1+Y946MsvKtbYaiGcAKUywnwEMU= 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=bzy2ZvOG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=dL335nHV; 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 Message-ID: <20240212153624.768188958@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707858246; 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: references:references; bh=ZRJkzOwB5/1YL71AgKNjiEjK5SJG7QnNpgljQo39jQw=; b=bzy2ZvOGowCps5I9bCqO5rtcFKyjSdrmAPi4IYLghO9yV4JQ/o+AY4Q1QWra0oosFL61ER 7ZKZ45RMv9Qcc+H81K/z6amDNvuOYDH8/+a1fjMyvhpcB8YyS+2FGv/ER8dF6Qp2zMKAA8 IQVwedCgDmaJhqKlUnc5JecmHde6M7QuxCut7HKGQqCpwgGttPAPI9bjaxwAUbHkxHBS6M 4cMB6wS34GCK5dpq1pkhAfKuorwqnl6VD3U2kS9TUPZ4zdMoT1tPI2Eobe1C/ltRKKGdgp mj9A800W/I5GCZhLpjOMYQMgsdS5WS79LhfoAyjfeaRq+67xN5Oxthu+G7SUqg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707858246; 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: references:references; bh=ZRJkzOwB5/1YL71AgKNjiEjK5SJG7QnNpgljQo39jQw=; b=dL335nHVU9/g+Tgf6/Cvgd3H3oXjShjugxT2iwKIxe6J3f+GIPshUIb5kyaeaX9eWtPh6p X29I5lEUmnkLihBQ== From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Sohil Mehta , K Prateek Nayak , Kan Liang , Zhang Rui , "Paul E. McKenney" , Feng Tang , Andy Shevchenko , Michael Kelley , "Peter Zijlstra (Intel)" , Wang Wendy Subject: [patch V6 05/19] x86/cpu: Move __max_die_per_package to common.c References: <20240212153109.330805450@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Tue, 13 Feb 2024 22:04:05 +0100 (CET) From: Thomas Gleixner 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 --- arch/x86/kernel/cpu/common.c | 3 +++ arch/x86/kernel/cpu/topology.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) --- --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -75,6 +75,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; --- 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