From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) (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 D48173B2D06 for ; Thu, 21 May 2026 13:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.147.86 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779369697; cv=none; b=EY4maDkpUz8UEF4hjJCIP22nk7qsrJOLNG/MZ++iPL1fawywLBRbbLFwNg7Fhe7FGNJ4uKzk+3lxeojf2U+8ikECr1CnNGB0vT+1GZiHLIAmPfNG+2r3lOnauBQvUyqsA4v05QFx8h82Zu5uc1V103oiRuUE2JbyJj/s3ut6MDQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779369697; c=relaxed/simple; bh=N0EIFDc8DDawlMyV3l1UYXUyjWBgQJxcvLPg9Pr0yPU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O1qqsJ6frDqJSkiHs0CtzBo1a98hhI9EN4Hvo30cK/eFke7zszgEzS2516TiUI0D+fXXtI+jLaI8UVTjO3N8Ok+OfnIHz9Xw0j4BItAqJc6OVFekVlH/hH0O2I8+rIthhbDdFoscTBmVLdtdhzXuvEe9zlNJNgLxyPW4rKaR8PI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hpe.com; spf=pass smtp.mailfrom=hpe.com; dkim=pass (2048-bit key) header.d=hpe.com header.i=@hpe.com header.b=VMNAqAJz; arc=none smtp.client-ip=148.163.147.86 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=hpe.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hpe.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hpe.com header.i=@hpe.com header.b="VMNAqAJz" Received: from pps.filterd (m0148663.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64LCIGh62067909; Thu, 21 May 2026 13:20:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=pps0720; bh=ukFivKpuf1LGlDFNCmk7mmATn4 7SY7Az98g4dlxQT2I=; b=VMNAqAJzpx/vwlbkvLzvxaFSPAsXhnxgmE+xdbGixf 7kh/7QN56XIYu7ILacAmXtDJHnJZpc0YO4DhkVtVlZPfnV337xRADuL0WjEFYozp gewnwo5/kH+lWMm8/YX96d02lIJHJcx407445IKBuPqTimHcLF1qyVbzl4Dsjaow z05dy9jDD3xfbypOhKrAQlPzpUB1wWBivC/2sRkzFmoJBWOs5lbl6C/puEVwJWgu lY9+DpMDgvPC5hxTuTQiMi0qp6CaLcAmvrktNmBfl5mY4GYi15LbYhi37tJCjhu3 TSF9cQ/xeNn2BU59kP0WtG6wrKfkJK00NC0qhawaMMzA== Received: from p1lg14878.it.hpe.com (p1lg14878.it.hpe.com [16.230.97.204]) by mx0a-002e3701.pphosted.com (PPS) with ESMTPS id 4e9y5f3603-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 21 May 2026 13:20:48 +0000 (GMT) Received: from p1lg14885.dc01.its.hpecorp.net (unknown [10.119.18.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14878.it.hpe.com (Postfix) with ESMTPS id 578841318C; Thu, 21 May 2026 13:20:47 +0000 (UTC) Received: from hpe.com (unknown [16.231.227.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by p1lg14885.dc01.its.hpecorp.net (Postfix) with ESMTPS id C3418809616; Thu, 21 May 2026 13:20:44 +0000 (UTC) Date: Thu, 21 May 2026 08:20:42 -0500 From: Dimitri Sivanich To: Linux Kernel Mailing List Cc: Jiri Wiesner , Steve Wahl , Justin Ernst , Kyle Meyer , Russ Anderson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Marco Elver , "Guilherme G. Piccoli" , Nikunj A Dadhania , "Xin Li (Intel)" , Dimitri Sivanich Subject: [PATCH v4 1/2] x86/platform/uv: Expose the uv_hub_type() interface Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTIxMDEzMyBTYWx0ZWRfX4QNW6V8lBTUc dJQVZk7lwCEC6loviSEm22LhAgmgi6Z/wdioRJBybc8vrSCos8ORd90TrB/SQyk4ue8p9wCUXVi wfn2dNzKQaOBJVV3TOWpkh4oWAZ4ft1FbYizS7FxpeqIxgBMkcDy9fpn6kCBD3pbUj6sN+xBX6w qMqs+Ia625naoBqonp15AtzQWfYElzCnMa0UzjTdUlRWdYqJ5JkhBzdB5eBvM3kASGm05/ES03y N3fIT6waY+fi3Kq5o2ypfrS3XtBJuxaddUq1/MID+ghwbG8QxRXLr+xKmDFTbbSjpGCSasB3HP1 QkW9nlz4kha3/VxVgLHME6++Meig/5g24LhUmTUKCvpEwxF/cdCa/pm7zRSp10FTDUVZCmeHyCB fXDWXvJ/aFeUEemjAivorNcpJq5GFu39DYkTAsMdyB6Q+omAqTcjyIBA4Rrjfrqa26f0mNTiG1G buq5lBkzTO/BzPTuI7A== X-Authority-Analysis: v=2.4 cv=OPsXGyaB c=1 sm=1 tr=0 ts=6a0f06b0 cx=c_pps a=UObrlqRbTUrrdMEdGJ+KZA==:117 a=UObrlqRbTUrrdMEdGJ+KZA==:17 a=kj9zAlcOel0A:10 a=NGcC8JguVDcA:10 a=VkNPw1HP01LnGYTKEx00:22 a=gQcMVamqm3wCPoSYhaRC:22 a=6_mrDcixewTG61oOsKN3:22 a=MvuuwTCpAAAA:8 a=PTNBJsYeFpmh5cI4NfUA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-ORIG-GUID: PdHk5MiSDYZAPLbI-jQn29VXnOuoKgB5 X-Proofpoint-GUID: PdHk5MiSDYZAPLbI-jQn29VXnOuoKgB5 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-21_02,2026-05-18_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 impostorscore=0 suspectscore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605130000 definitions=main-2605210133 Expose the uv_hub_type() interface for use in non-UV specific code. Signed-off-by: Dimitri Sivanich --- arch/x86/include/asm/uv/uv_hub.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h index ea877fd83114..5cffc5b9e989 100644 --- a/arch/x86/include/asm/uv/uv_hub.h +++ b/arch/x86/include/asm/uv/uv_hub.h @@ -209,10 +209,17 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu) return (struct uv_hub_info_s *)uv_cpu_info_per(cpu)->p_uv_hub_info; } +#ifdef CONFIG_X86_UV static inline int uv_hub_type(void) { return uv_hub_info->hub_type; } +#else +static inline int uv_hub_type(void) +{ + return 0; +} +#endif static inline __init void uv_hub_type_set(int uvmask) { -- 2.43.0