From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.693.1589387577735284857 for ; Wed, 13 May 2020 09:32:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=XdS6Zm12; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: liming.gao@intel.com) IronPort-SDR: iL74sL6bs6sxZ3XV1JI0uXBCtJm6BdpAn/LC0SPIYdx8//NBATtINE7nCmo+8za/igOAY9bqHc APYwI/OkIc2A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2020 09:32:57 -0700 IronPort-SDR: X3rn/szMZXnRS7YAgmzgFSPNk8IHI124t/MBrwsh1G1k+WmxGJCqJLsyXYYCCLSzc3ghjkCftw +EakUN6exymA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,388,1583222400"; d="scan'208";a="341311089" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 13 May 2020 09:32:56 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 May 2020 09:32:34 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.174) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 13 May 2020 09:32:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J5nEJpN+jVVhkJKyEb84ooVQ/5U5umFl4VFnWZaY+Bpy4eIlwQaHtnF9bEW5ASGIOYfnRPdut8wXr59uNyN5YXvX0oOyjFodxKZ33FNqQhbLMfJkdAjCVa7ong+XN0MWcb+F+6G/MY42cvaV99pkhIQNIuT/WHnzRHsxsH3EnxHDVObnhSX6bWMBBLx0+HQO2OuslEHV2Haco1TCG5+oNwr4ZoyYTp9Ox9HiCKnoPZRERpYr+S7GoGxB+/axGJbdda+0S4jwk9PyjpCqpNrWoJ49hrb6QLtP4ftWxRg7SQlj0VcmDb6+SZ8PZTuoxCUrMd5Iko/r/mpaevD5wF9PJA== 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-SenderADCheck; bh=esOVenelmFnY3LP+yKMXsYA0o/Xnh9chndB4W0GOM5k=; b=TY6OOxVvap3LycAugsGqXeGX1Bsg1PCOQvSOgIXkL3ggLEv9e8/LyGQnNiDkk2jRUMpMfdQiIf6L62tnNLbsW1/UOKkCmfCGxNAB8dBl8iaYhAtoh7TR9kb6C4zvNlYYauwN6BQP7GCInSCXDwlR49DMdO0NkSXrRSJdL5Cqw2R3/X2fUF6+KgckBwkJ8Me+KoL+QbJTT9Sll+Kp3RrqnU4CexnLLqNOqq2TlouPEOOX3YHcqDozegtGyKHBJfN5ykyXGOfFDL4F8WDppo5CZt86bpGO5ZDlH/XaYUzLnrfC5ehxvT6GIU/AJYPEH5s1RrgSscggTbirKHdtar4IHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=esOVenelmFnY3LP+yKMXsYA0o/Xnh9chndB4W0GOM5k=; b=XdS6Zm12g51mxvcLOhkPzgV7S0XADBDQtQXFeXBIFBvDczkgFcwZNvvWb8f/c0Afbl3UiDwMhkvR5LWVijUY+x9Xlsz/jErtIbYfSYc4qITGsSxe9UT237lfkgZbNDndL98KehoJUkMhVqww/yGrVDK9oED+RfbDVVOcp1SJM6I= Received: from BN6PR11MB3972.namprd11.prod.outlook.com (2603:10b6:405:7f::11) by BN6PR11MB1299.namprd11.prod.outlook.com (2603:10b6:404:49::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26; Wed, 13 May 2020 16:32:32 +0000 Received: from BN6PR11MB3972.namprd11.prod.outlook.com ([fe80::3c03:da06:5345:bfa0]) by BN6PR11MB3972.namprd11.prod.outlook.com ([fe80::3c03:da06:5345:bfa0%7]) with mapi id 15.20.2979.033; Wed, 13 May 2020 16:32:32 +0000 From: "Liming Gao" To: Oleksiy Yakovlev , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Wang, Jian J" , "Wu, Hao A" , "Yao, Jiewen" , "Zhang, Chao B" , "Felixp@ami.com" Subject: Re: [PATCH V4 3/6] MdePkg: Add EFI_RT_PROPERTIES_TABLE Thread-Topic: [PATCH V4 3/6] MdePkg: Add EFI_RT_PROPERTIES_TABLE Thread-Index: AQHWKKmrupFuEHt9PkelPKu8V1OC3aimNtlg Date: Wed, 13 May 2020 16:32:31 +0000 Message-ID: References: <20200512220543.40008-1-oleksiyy@ami.com> <20200512220543.40008-4-oleksiyy@ami.com> In-Reply-To: <20200512220543.40008-4-oleksiyy@ami.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: ami.com; dkim=none (message not signed) header.d=none;ami.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.52.200] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c46c8ea-0bd2-4470-9802-08d7f75b3c36 x-ms-traffictypediagnostic: BN6PR11MB1299: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0402872DA1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: yuCNX4CiqONWz1QdBRR1c3ZO78m7jWVQMTZEzl0wXiwptaOsMX6/hw0V7H1iQszjU9RqFjrfeL7geCY8pI/DFFb6IlEZVTTUc22P/hcptO630s+9xuJzXbGaPjeA+q4HBPB3vX3o/INvpYF75TuVFbarQVk1IYA1rR2sbla/LiqTfSQt7V1qpUkzCaV/g7zwW257/XB/iaLJ26OgnpgSSbVS3Xy5D3C/2WKaOZ7PiruR4wPWJQxLg+QviW4K7dVIlP3xte3o5hgybMeRv+yo/yZ59eeXxFQiUamKXncSh+0m9j8sA24U4XPFZ6CSwgn9L3JFGZeBNsHqCaIqWJdh2r32MBVgS3Ng38Pjb0LDaX38rc38Y88/WfiENUUyGBplnefzlCOMULfeuqI/E+XmhL43Da1rCtXpr5QwxPfXzAMwJt5N0NG3FEvDlYqU6k88mHn58qpHuJpUenLKF5MDSliSKlhtnjDoz/tQogEQTyxewttJNvX4ZtX+TqU3usx9crTqaVWUNGde+Akji/SdYg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB3972.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(346002)(136003)(376002)(396003)(39860400002)(366004)(33430700001)(33656002)(55016002)(76116006)(316002)(478600001)(5660300002)(8936002)(9686003)(53546011)(26005)(110136005)(8676002)(4326008)(54906003)(6506007)(7696005)(52536014)(186003)(2906002)(66946007)(33440700001)(64756008)(66446008)(86362001)(66476007)(71200400001)(66556008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 3S428SUvwkKHmkDJX56RZ0FN70X89c2FV6dg5Loa+gpk+PxPeJJQasjDQ1SVl9UB8BVPKjLL1M9qWIpA4NRB9ccekwhArR00i1TSPsRADC+PLG8Hw73x65UNk7DcS43YnX0M33XPsOH+DoZpZoJoLPy4QGJyztOjL6h4iVYZYghEfKhnjkz+UYk3PoSBJ5mJTFeOEmAjlq2rmetwMMFK8B8R91/2HbE7WNMpmtX6yeS/UPwzrFLIxlxXbKV/xXelsRC12QgwghKderksRAoKWayjlhKWvVndSD8xC8FP6Oi0Q9FHVKTlPxFGP3ooNMbvB7sdABNv0wUe/NZF4hqu62DO0RkTb4cWsa61yg0Xy+cJQKRu2azay8g2VBQ6UVmH+Wp85O4OcEJcYhg6N8tI7U5sb5Sl7SEBlr17qbvwKgyEAormSr2/o0XV8bdMLz+MfhBDtYQuFk2N5cwuUqzfBsYYVwSZKLbq0dNNm1EzPJBn/xukSZiSEiwYCFs/A4i+ MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5c46c8ea-0bd2-4470-9802-08d7f75b3c36 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2020 16:32:31.8651 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JyBzQ0H/YzqtaE2EavRG1aUtdd0NHh2d2khEOy9OjqvncJiFBaw/gSA8jHAEVs62uyH22VpXmog4lWUEbqoyXQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1299 Return-Path: liming.gao@intel.com X-OriginatorOrg: 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: Oleksiy Yakovlev > Sent: Wednesday, May 13, 2020 6:06 AM > To: devel@edk2.groups.io > Cc: Gao, Liming ; Kinney, Michael D ; Wang, Jian J ; Wu, > Hao A ; Yao, Jiewen ; Zhang, Ch= ao B ; Felixp@ami.com; > oleksiyy@ami.com > Subject: [PATCH V4 3/6] MdePkg: Add EFI_RT_PROPERTIES_TABLE >=20 > Define Guid & data structure for EFI_RT_PROPERTIES_TABLE, designed > to be published by a platform if it no longer supports all EFI > runtime services once ExitBootServices() has been called by the OS. > (UEFI 2.8 errata a, mantis 2049) >=20 > Signed-off-by: Oleksiy Yakovlev > --- > MdePkg/Include/Guid/RtPropertiesTable.h | 69 +++++++++++++++++++++++++++= ++++++ > MdePkg/MdePkg.dec | 5 +++ > 2 files changed, 74 insertions(+) > create mode 100644 MdePkg/Include/Guid/RtPropertiesTable.h >=20 > diff --git a/MdePkg/Include/Guid/RtPropertiesTable.h b/MdePkg/Include/Gui= d/RtPropertiesTable.h > new file mode 100644 > index 0000000..1b07bf2 > --- /dev/null > +++ b/MdePkg/Include/Guid/RtPropertiesTable.h > @@ -0,0 +1,69 @@ > +/** @file > +Guid & data structure for EFI_RT _PROPERTIES_TABLE, designed to be publi= shed by a > +platform if it no longer supports all EFI runtime services once ExitBoo= tServices() > +has been called by the OS. Introduced in UEFI 2.8a. > + > + > +Copyright (c) 2020, American Megatrends International LLC. All rights re= served.
> +SPDX-License-Identifier: BSD-2-Clause-Patent > + > +**/ > + > +#ifndef __RT _PROPERTIES_TABLE_GUID_H__ > +#define __RT _PROPERTIES_TABLE_GUID_H__ > + > +// > +// Table, defined here, should be published by a platform if it no longe= r supports all EFI runtime > +// services once ExitBootServices() has been called by the OS. Note that= this is merely a hint > +// to the OS, which it is free to ignore, and so the platform is still r= equired to provide callable > +// implementations of unsupported runtime services that simply return EF= I_UNSUPPORTED. > +// > +#define EFI_RT_PROPERTIES_TABLE_GUID \ > + { 0xeb66918a, 0x7eef, 0x402a, \ > + { 0x84, 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }} > + > + > + > + > +#pragma pack(1) > + > +typedef struct { > + /// > + /// Version of the structure, must be 0x1. > + /// > + UINT16 Version; > + > + /// > + /// Size in bytes of the entire EFI_RT_PROPERTIES_TABLE, must be 8. > + /// > + UINT16 Length; > + > + /// > + /// Bitmask of which calls are or are not supported, where a bit set t= o 1 indicates > + /// that the call is supported, and 0 indicates that it is not. > + /// > + UINT32 RuntimeServicesSupported; > +} EFI_RT_PROPERTIES_TABLE; > + > +#pragma pack() > + > +#define EFI_RT_PROPERTIES_TABLE_VERSION 0x1 > + > +#define EFI_RT_SUPPORTED_GET_TIME 0x0001 > +#define EFI_RT_SUPPORTED_SET_TIME 0x0002 > +#define EFI_RT_SUPPORTED_GET_WAKEUP_TIME 0x0004 > +#define EFI_RT_SUPPORTED_SET_WAKEUP_TIME 0x0008 > +#define EFI_RT_SUPPORTED_GET_VARIABLE 0x0010 > +#define EFI_RT_SUPPORTED_GET_NEXT_VARIABLE_NAME 0x0020 > +#define EFI_RT_SUPPORTED_SET_VARIABLE 0x0040 > +#define EFI_RT_SUPPORTED_SET_VIRTUAL_ADDRESS_MAP 0x0080 > +#define EFI_RT_SUPPORTED_CONVERT_POINTER 0x0100 > +#define EFI_RT_SUPPORTED_GET_NEXT_HIGH_MONOTONIC_COUNT 0x0200 > +#define EFI_RT_SUPPORTED_RESET_SYSTEM 0x0400 > +#define EFI_RT_SUPPORTED_UPDATE_CAPSULE 0x0800 > +#define EFI_RT_SUPPORTED_QUERY_CAPSULE_CAPABILITIES 0x1000 > +#define EFI_RT_SUPPORTED_QUERY_VARIABLE_INFO 0x2000 > + > +extern EFI_GUID gEfiRtPropertiesTableGuid; > + > +#endif > diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec > index ecd7822..0dd20ad 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -654,6 +654,11 @@ > ## Include/Guid/Btt.h > gEfiBttAbstractionGuid =3D { 0x18633bfc, 0x1735, 0x4217, { 0x8= a, 0xc9, 0x17, 0x23, 0x92, 0x82, 0xd3, 0xf8 }} >=20 > + # GUIDs defined in UEFI2.8a > + # > + ## Include/Guid/RtPropertiesTable.h > + gEfiRtPropertiesTableGuid =3D { 0xeb66918a, 0x7eef, 0x402a, { 0x8= 4, 0x2e, 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }} > + > # > # GUID defined in PI1.0 > # > -- > 2.9.0.windows.1 >=20 >=20 > Please consider the environment before printing this email. >=20 > The information contained in this message may be confidential and proprie= tary to American Megatrends (AMI). This communication > is intended to be read only by the individual or entity to whom it is add= ressed or by their designee. If the reader of this message is > not the intended recipient, you are on notice that any distribution of th= is message, in any form, is strictly prohibited. Please > promptly notify the sender by reply e-mail or by telephone at 770-246-860= 0, and then delete or destroy all copies of the transmission.