From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: liming.gao@intel.com) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by groups.io with SMTP; Mon, 29 Jul 2019 20:20:44 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2019 20:20:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,325,1559545200"; d="scan'208";a="323075629" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga004.jf.intel.com with ESMTP; 29 Jul 2019 20:20:43 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 29 Jul 2019 20:20:43 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 29 Jul 2019 20:20:42 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.112]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.65]) with mapi id 14.03.0439.000; Tue, 30 Jul 2019 11:20:41 +0800 From: "Liming Gao" To: "Chen, Marc W" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Ni, Ray" Subject: Re: [PATCH V3] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file Thread-Topic: [PATCH V3] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file Thread-Index: AQHVRemJdtq4x5KeI02ByaNsTofFU6bif6sQ Date: Tue, 30 Jul 2019 03:20:40 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E4C4F12@SHSMSX104.ccr.corp.intel.com> References: <20190729084119.15816-1-marc.w.chen@intel.com> In-Reply-To: <20190729084119.15816-1-marc.w.chen@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjY3MjhlN2QtZjU1OS00NzUyLWFhOTgtYmFiMmMxODg2NWE3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSjErVE9xdDluVVVHbk1leUtHd241eW0rWFYrQzUyR2MyTjA1ZlM4VGNIbEFCNFN6MFlXYlJQbUxWNm1Sa2tsKyJ9 dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao > -----Original Message----- > From: Chen, Marc W > Sent: Monday, July 29, 2019 4:41 PM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Gao, Liming ; Ni, Ray > Subject: [PATCH V3] MdePkg: Add PI 1.5 SmramMemoryReserve HOB file >=20 > This is a special GUID extension Hob to describe SMRAM memory regions >=20 > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Ray Ni > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2020 > Signed-off-by: Marc W Chen > --- > MdePkg/Include/Guid/SmramMemoryReserve.h | 45 ++++++++++++++++++++++++++= ++++++ > MdePkg/MdePkg.dec | 3 +++ > 2 files changed, 48 insertions(+) > create mode 100644 MdePkg/Include/Guid/SmramMemoryReserve.h >=20 > diff --git a/MdePkg/Include/Guid/SmramMemoryReserve.h b/MdePkg/Include/Gu= id/SmramMemoryReserve.h > new file mode 100644 > index 0000000000..47320f3621 > --- /dev/null > +++ b/MdePkg/Include/Guid/SmramMemoryReserve.h > @@ -0,0 +1,45 @@ > +/** @file > + This is a special GUID extension Hob to describe SMRAM memory regions. > + > + This file defines: > + * the GUID used to identify the GUID HOB for reserving SMRAM regions. > + * the data structure of SMRAM descriptor to describe SMRAM candidate r= egions > + * values of state of SMRAM candidate regions > + * the GUID specific data structure of HOB for reserving SMRAM regions. > + > + Copyright (c) 2019, Intel Corporation. All rights reserved.
> + SPDX-License-Identifier: BSD-2-Clause-Patent > + > + @par Revision Reference: > + GUIDs defined in PI SPEC version 1.5. > + > +**/ > + > +#ifndef _SMRAM_MEMORY_RESERVE_H_ > +#define _SMRAM_MEMORY_RESERVE_H_ > + > +#define EFI_SMM_SMRAM_MEMORY_GUID \ > + { \ > + 0x6dadf1d1, 0xd4cc, 0x4910, {0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xf= f, 0x3d } \ > + } > + > +/** > +* The GUID extension hob is to describe SMRAM memory regions supported b= y the platform. > +**/ > +typedef struct { > + /// > + /// Designates the number of possible regions in the system > + /// that can be usable for SMRAM. > + /// > + UINT32 NumberOfSmmReservedRegions; > + /// > + /// Used throughout this protocol to describe the candidate > + /// regions for SMRAM that are supported by this platform. > + /// > + EFI_SMRAM_DESCRIPTOR Descriptor[1]; > +} EFI_SMRAM_HOB_DESCRIPTOR_BLOCK; > + > +extern EFI_GUID gEfiSmmSmramMemoryGuid; > + > +#endif > + > diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec > index b382efd578..15a221d71f 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -749,6 +749,9 @@ > ## Include/Guid/GraphicsInfoHob.h > gEfiGraphicsDeviceInfoHobGuid =3D { 0xe5cb2ac9, 0xd35d, 0x4430, { = 0x93, 0x6e, 0x1d, 0xe3, 0x32, 0x47, 0x8d, 0xe7 }} >=20 > + ## Include/Guid/SmramMemoryReserve.h > + gEfiSmmSmramMemoryGuid =3D { 0x6dadf1d1, 0xd4cc, 0x4910, { = 0xbb, 0x6e, 0x82, 0xb1, 0xfd, 0x80, 0xff, 0x3d }} > + > # > # GUID defined in PI1.6 > # > -- > 2.16.2.windows.1