From nobody Mon Feb 9 06:00:45 2026 Delivered-To: importer@patchew.org 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+110942+1787277+3901457@groups.io; helo=mail02.groups.io; 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+110942+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1699498289; cv=none; d=zohomail.com; s=zohoarc; b=bnbDIycqRKEti4eiDPgNyffywfdbR+V6+53eIUhbz+R+SFlEFn3HSbUynSH7chy9Uno7psb2cuP8YzHilmnEd0DYaqjSNvj4W+vrlBsVD694peJ1djz7TNavP01ftoNzzoi70zG9qilVYz6pFXADYlLNCBtS7QJQxYpM6DA6Zw4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1699498289; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=8N6u0KgYln7pFn3QX0mNMdPv33G9GXr++9FvegDfBQI=; b=fre8lKnxawaymSPt01wCwFpWZgbBXLwA7p+Wk/pX1iCjYMfDU12lvBEmDA3xN9CiuEi+iXBtByXGVt9+mZfW2GPtylh3wp4PsxhC8geNEmwsVu7EZdT9HT4gHX/03w8oSxw+miFiUwyViher9Fn7ISlmroU5fEtVQYEdxATyBKM= ARC-Authentication-Results: i=1; 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+110942+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1699498289240802.6353765417366; Wed, 8 Nov 2023 18:51:29 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=NUDT6i6j5CEV6rLZFerCg+bPpHL5YhqMhzjmLHGpCNE=; c=relaxed/simple; d=groups.io; h=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-Transfer-Encoding; s=20140610; t=1699498288; v=1; b=LbXrsaQRKbpf2BQ4/7jZkK75ly2lsd07h9Thn5UBZQCRyaHbQQLx3H1GmkGIlZfHwjh0KJ9h 72EW1YqlfUSyTCAw1AlDBr4MOby/kAHsrNj+Nsf0burqnvl93bbhN64LHH5HShvltpi/qVQRilP mftJasRFKGzio7MbmfCiF4O0= X-Received: by 127.0.0.2 with SMTP id xsbKYY1788612xXwI22mBbUe; Wed, 08 Nov 2023 18:51:28 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mx.groups.io with SMTP id smtpd.web11.113520.1699498285216011977 for ; Wed, 08 Nov 2023 18:51:28 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10888"; a="8554194" X-IronPort-AV: E=Sophos;i="6.03,288,1694761200"; d="scan'208";a="8554194" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2023 18:51:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10888"; a="936706158" X-IronPort-AV: E=Sophos;i="6.03,288,1694761200"; d="scan'208";a="936706158" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2023 18:51:26 -0800 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [PATCH 1/3] UefiCpuPkg: Create MpInformation.h in UefiCpuPkg Date: Thu, 9 Nov 2023 10:51:05 +0800 Message-Id: <20231109025107.1787-2-dun.tan@intel.com> In-Reply-To: <20231109025107.1787-1-dun.tan@intel.com> References: <20231109025107.1787-1-dun.tan@intel.com> MIME-Version: 1.0 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,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: B87DZYJUrNJlPBC7QaFtJgupx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1699498289563100001 Content-Type: text/plain; charset="utf-8" Copy MpInformation.h and gMpInformationHobGuid to UefiCpuPkg. Previously, the HOB is defined, created and consumed only in StandaloneMmPkg. The HOB contains the number of processors and EFI_PROCESSOR_INFORMATION structure. This is the same as the information that PiSmmCpuDxeSmm uses EfiMpServiceProtocolGuid to get. The incoming plan is to create gMpInformationHobGuid for both StandaloneMm and legacy DXE_SMM in early phase. Then PiSmmCpuDxeSmm can consume the hob, which can simplified code logic about consuming MpService Protocol. So move this HOB definition to UefiCpuPkg. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/Include/Guid/MpInformation.h | 35 +++++++++++++++++++++++++++++= ++++++ UefiCpuPkg/UefiCpuPkg.dec | 3 +++ 2 files changed, 38 insertions(+) diff --git a/UefiCpuPkg/Include/Guid/MpInformation.h b/UefiCpuPkg/Include/G= uid/MpInformation.h new file mode 100644 index 0000000000..f0a6fdb24e --- /dev/null +++ b/UefiCpuPkg/Include/Guid/MpInformation.h @@ -0,0 +1,35 @@ +/** @file + EFI MP information protocol provides a lightweight MP_SERVICES_PROTOCOL. + + MP information protocol only provides static information of MP processor. + + Copyright (c) 2009 - 2023, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef _MP_INFORMATION_H_ +#define _MP_INFORMATION_H_ + +#include +#include +#include + +#define MP_INFORMATION_GUID \ + { \ + 0xba33f15d, 0x4000, 0x45c1, {0x8e, 0x88, 0xf9, 0x16, 0x92, 0xd4, 0x57,= 0xe3} \ + } + +#pragma pack(1) +typedef struct { + UINT64 NumberOfProcessors; + UINT64 NumberOfEnabledProcessors; + EFI_PROCESSOR_INFORMATION ProcessorInfoBuffer[]; +} MP_INFORMATION_HOB_DATA; +#pragma pack() + +extern EFI_GUID gMpInformationHobGuid; + +#endif diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 0b5431dbf7..92860b4c6e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -85,6 +85,9 @@ ## Include/Guid/SmmBaseHob.h gSmmBaseHobGuid =3D { 0xc2217ba7, 0x03bb, 0x4f63, {0xa6, 0x47, 0x7c= , 0x25, 0xc5, 0xfc, 0x9d, 0x73 }} =20 + ## Include/Guid/MpInformation.h + gMpInformationHobGuid =3D { 0xba33f15d, 0x4000, 0x45c1, { 0x8e,= 0x88, 0xf9, 0x16, 0x92, 0xd4, 0x57, 0xe3 }} + [Protocols] ## Include/Protocol/SmmCpuService.h gEfiSmmCpuServiceProtocolGuid =3D { 0x1d202cab, 0xc8ab, 0x4d5c, { 0x94= , 0xf7, 0x3c, 0xfc, 0xc0, 0xd3, 0xd3, 0x35 }} --=20 2.31.1.windows.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 (#110942): https://edk2.groups.io/g/devel/message/110942 Mute This Topic: https://groups.io/mt/102479009/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-