From nobody Mon Sep 16 18:50:21 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113981+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1705550069423107.17146327913053; Wed, 17 Jan 2024 19:54:29 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=XGVqk8J38oox0r88UKLJ+NPml/0b9YWMykeXXhqQfDo=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1705550069; v=1; b=rMfuL55TcIxehE/exsQR/LWLsduRj2JcJVSPbA0iY6NuBsrEC/6IhBNtn5x2oIvHaN1V98X8 0hGUKuGMjwkCM5xZujoeLaY6d9HvD5BpGfnPklmAu6wI1tyqy0M1IoWBbtk+m7j3Nso1ZwXG0JS 5XPPYEuDgyFsZSP0AUxLeBmc= X-Received: by 127.0.0.2 with SMTP id 38xQYY1788612xigYe2yZOwO; Wed, 17 Jan 2024 19:54:29 -0800 X-Received: from NAM04-MW2-obe.outbound.protection.outlook.com (NAM04-MW2-obe.outbound.protection.outlook.com [40.107.101.54]) by mx.groups.io with SMTP id smtpd.web11.3920.1705550068024795630 for ; Wed, 17 Jan 2024 19:54:28 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgN7tTYizPL8LFeWZaBYi3Bat2+yLGOLDRBGOJm9AltGZBYwbA7NvtTfUKxXx6xYNpd9L7uOyJMTxR5QGDJDzgePIvnem0+7Sw6hr+JvkaoP3eYAgy+Zjpa4zqQFRIAKWzFK7/VS3So1M/5t3M4p4JeQwDTuBXWiCuKfwnyC2uUYwnWPye4iL7EN5m8gYjSrBSUQkOe0t0jf85KBw74iiGSrkaGinDqDEtARdEcY22kVk1qR1rmU7GOw9Hk8LHDVHw6f/BHZu81UGtXuvMyAa01Apg1NcH8tp4nBFyrKzZsv4c/phMpJbvwmYPgMRopa7WydYQwrMXBT3cVzda2T3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YBQvsfdiHHEjmuKFmGvyRL3J3htZkUeaSQjyHSpNixs=; b=nD1UIKf40meDrMgVyZ5WoIDNI47fT66l1UHBxfaTNGFDjCLZ4UxUHN/dlto9hwdgHnH5+Rvo4oGQMp9U4jXi5j86igFcYCsnh4wJ/51243R53QEqcQZ8iGrPYMAZ869gMVmIF4xukXtFnfxXAxA+wKlKNnJsvXHlxkFXnksOReoAi/KwvvqoQMIhgRbuITXxs7/fwb+OFXBgR+OMKW/Smm9mxyFfCmqIo81MW9FrLgX2qJOyPGOaEFPBhFO2/0pRVRwJdbRW4nrAFxIJNHSk8cNTMvu1KYlSeYOUJJn2SlJyZG9J8fNpl/OjGodhMPzS+6LallX04PQ6K6USn5aqwg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from DS7PR03CA0237.namprd03.prod.outlook.com (2603:10b6:5:3ba::32) by IA0PR12MB7603.namprd12.prod.outlook.com (2603:10b6:208:439::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.30; Thu, 18 Jan 2024 03:54:25 +0000 X-Received: from SN1PEPF0002BA4E.namprd03.prod.outlook.com (2603:10b6:5:3ba:cafe::47) by DS7PR03CA0237.outlook.office365.com (2603:10b6:5:3ba::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.23 via Frontend Transport; Thu, 18 Jan 2024 03:54:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113981+1787277+3901457@groups.io; helo=mail02.groups.io; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C X-Received: from SATLEXMB03.amd.com (165.204.84.17) by SN1PEPF0002BA4E.mail.protection.outlook.com (10.167.242.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7202.16 via Frontend Transport; Thu, 18 Jan 2024 03:54:24 +0000 X-Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 17 Jan 2024 21:54:24 -0600 X-Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 17 Jan 2024 21:54:24 -0600 X-Received: from BLR-LAB-SFW01.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.34 via Frontend Transport; Wed, 17 Jan 2024 21:54:22 -0600 From: "Abdul Lateef Attar via groups.io" To: CC: Abdul Lateef Attar , Michael D Kinney , Liming Gao , Zhiguang Liu , Ray Ni , "Rahul Kumar" , Gerd Hoffmann Subject: [edk2-devel] [PATCH RESEND v2 1/2] MdePkg: Adds AMD Extended CPU topology CPUID Date: Thu, 18 Jan 2024 09:24:08 +0530 Message-ID: <15199aaefbc497bb1ea7b20028c13ebedd8c488b.1705549445.git.AbdulLateef.Attar@amd.com> In-Reply-To: References: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA4E:EE_|IA0PR12MB7603:EE_ X-MS-Office365-Filtering-Correlation-Id: 436845fa-5574-45ff-fe3c-08dc17d9295f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: dTwMpkvzZfaNsAGGZ4gAoxXyq62jnW3ctVvPMn/LYmUHTqGH1cXQ4LeWdvMA482rOTNtU5jza4YplPaC41EuZSxZPC7lhLZI68IJhXl81UJTmY3AYRouxSKFPpDDIHGFpmDayNE90LRmCUC28TswV3HKOJ9yxjqt94U3XAaOHEGW50YsXjYCy/cHScccN0KHgNI0XEof3XQcO5e+GbMwJq2DndEEWwra1it9+ricKLPHcnD3ebrHMewbhAngaXS+yoiOrRYy1DoWzsq2DbcNV+kaf8rS3somx+acrte7klB05fI+GdwPPBtv00WUIc7WmvIayuVMyUaL5VZZXgCiWbkdaHnOyBVXdDeFn/1DeWjX90vNZXd4NKzAIp2odFb2PWes+Urasba0YO6Pa8CMozUp8jAdwfyLkEoBpxEcsmsv0t0pgzC3np0+Dxt9FFJIGcopNKa56FQtjxRoB4wNYR3d6akIOM9RtwjGKPvAtKOVwcFYNjOhWfKd4CByzVK1liBLvz+5eLn2CKQIO38twTsNMckWcLPNANkbQO10JYF74+gi3rYZM4Y/CbABno19rQn0aRr8yN3/rZlSFrS0K43/zSDt0n8k3SZT9qa4oURNZS9LeY60zoa7mtCv2rpnPcENjemxftCAzDG1wZCtgMDurERW9rk+iZfKgzc2ZDTsqKuNOsbFlP/BwtAzXpIwNYdnJkCZ4Le0MTdHHuPueCLrmoxuNI2U8y4bltVzdw8Ev7GR4OyqteWQIeV9kx7KHb0RzypYiQ/9LVHzf2ovNA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2024 03:54:24.8797 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 436845fa-5574-45ff-fe3c-08dc17d9295f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4E.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7603 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,AbdulLateef.Attar@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 2FSri3hec522tc4f2Xjo1Zj0x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1705550070302100001 Content-Type: text/plain; charset="utf-8" From: Abdul Lateef Attar Adds cpuid macro for AMD extended CPU topology. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Signed-off-by: Abdul Lateef Attar Acked-by: Michael D Kinney --- MdePkg/Include/Register/Amd/Cpuid.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/Register/Amd/Cpuid.h b/MdePkg/Include/Register/= Amd/Cpuid.h index 44394fc7a4..add43c40aa 100644 --- a/MdePkg/Include/Register/Amd/Cpuid.h +++ b/MdePkg/Include/Register/Amd/Cpuid.h @@ -6,7 +6,7 @@ If a register returned is a single 32-bit value, then a data structure is not provided for that register. =20 - Copyright (c) 2017, Advanced Micro Devices. All rights reserved.
+ Copyright (c) 2017 - 2024, Advanced Micro Devices. All rights reserved.<= BR> =20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -42,6 +42,27 @@ CPUID Signature Information /// @} /// =20 +/** + CPUID Extended Topology Enumeration + + @note + Reference: AMD64 Architecture Programmer=E2=80=99s Manual Volume 3: Gene= ral-Purpose and System Instructions, + Revision 3.35 Appendix E, + E.4.24 Function 8000_0026=E2=80=94Extended CPU Topology: + CPUID Fn8000_0026 reports extended topology information for logical pr= ocessors, including + asymmetric and heterogenous topology descriptions. Individual logical = processors may report + different values in systems with asynchronous and heterogeneous topolo= gies. + The topology level is selected by the value passed to the instruction = in ECX. To discover the topology + of a system, software should execute CPUID Fn8000_0026 with increasing= ECX values, starting with + a value of zero, until the returned hierarchy level type (CPUID Fn8000= _0026_ECX[LevelType]) is + equal to zero. It is not guaranteed that all topology level types are = present in the system + + @param EAX AMD_CPUID_EXTENDED_TOPOLOGY (0x80000026) + @param ECX Level number + +**/ +#define AMD_CPUID_EXTENDED_TOPOLOGY 0x80000026 + /** CPUID Extended Processor Signature and Features =20 --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113981): https://edk2.groups.io/g/devel/message/113981 Mute This Topic: https://groups.io/mt/103802340/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-