From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.5814.1588918113143954585 for ; Thu, 07 May 2020 23:08:33 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=UsCpaeMJ; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: JqbsTl3Bql6px+Q6m3k7I3d2LLWvNOOvIDWOdTMpMNcXRypyBmwNgoyOAluTNsbnhOKKROvx1O 1GOnfla4QU9g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2020 23:08:32 -0700 IronPort-SDR: Kmf/z06DHM/AF/7FIEdk0gu1EugP5o1SuSlzFUuYAVLKOTzEof0t405jMNy6V9IPzKRC8WvPRu Z06hTjCLGPFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,366,1583222400"; d="scan'208";a="305336426" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by FMSMGA003.fm.intel.com with ESMTP; 07 May 2020 23:08:33 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 7 May 2020 23:08:32 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 7 May 2020 23:08:32 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 7 May 2020 23:08:32 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 7 May 2020 23:08:26 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ls5nfK7EEcVqyrvql4oXewaCOMOGyBq7N5LO7PQv7Z+HJSi5RLw62Bv6ExnveLx8FDYlbuY78ugnsqdvbjWogboyVSYtfY/HVVHNMDBeRSIsVE8RymJtmXkcoabDCSF7QsKzAUmL0XauiYG/HQXc8ZD1MOHR+x6XMNqzJ0RuMz9Gd7yYIdj4Vu7Ai1Ox2znAnpoP6ebZPL/7kJ6Gu/z7Z7ecv36HPt0s9oGDHhRV81t5VmlWc+gdjFSwWucxXjq+JP92+TZx1PFFq6EI3IkHV45HyvYfiuo4B4ePU4B9+Ytl8s7BqpBU04HsmAm17bHNkyiI7VQV5CVFDS9UMeIkQw== 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=Ad9I+mPwIOnP2Fm1FS/xIf0yiBzP82vcVcL+2MNA6Oc=; b=mgVqPfTw06qg/MD40B9qDf6ogrY2L4ez5FMPpUU7qCI+3OzQwHC43rd/mcEUwDEmSy/3VXpxN92xBIxhRPBrXybDpIjLICXIs6wRnsYSZvX9bod96OtCNQ71h75yKmESq92F0CYV7zI9DTh748772WwhIhX22wlwfRsSAEWuaGHeGvz/LsGQBwHKs4ry+eFV21qUi6n6EpouhH7s+8oO0qexGvdSmjCXh5AnngA0DS3I6BNt5EIkFdiqleiGIxjGYqlFCtvr0N8ilLjOhwT/Wn0igaBabTGRhbXaPxVXf2M5kPLHdiPajDNobVEB1Z8Yp8XPoG83SLCYB3zqDDMRFQ== 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=Ad9I+mPwIOnP2Fm1FS/xIf0yiBzP82vcVcL+2MNA6Oc=; b=UsCpaeMJ5228rN6aq7oFaeRQ3GntjE6wUb9LPs1pHAD9FG8mGdUs6CVnIWJJ6vQnFSlaN7zejNvBEVLA3vpX1cKuZ6FXiVdttsowLHNrkAVdnJSWQFXDbuejIqtdyRfdW3EOZf9vIQeXtJYXXbMA2VBJ33ZAzCptlGQrOtWebb4= Received: from BN7PR11MB2804.namprd11.prod.outlook.com (2603:10b6:406:ac::12) by BN7PR11MB2753.namprd11.prod.outlook.com (2603:10b6:406:b0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.29; Fri, 8 May 2020 06:08:24 +0000 Received: from BN7PR11MB2804.namprd11.prod.outlook.com ([fe80::79e2:ed1f:4d6b:532c]) by BN7PR11MB2804.namprd11.prod.outlook.com ([fe80::79e2:ed1f:4d6b:532c%7]) with mapi id 15.20.2958.033; Fri, 8 May 2020 06:08:24 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "oleksiyy@ami.com" CC: "Gao, Liming" , "Kinney, Michael D" , "Felixp@ami.com" Subject: Re: [edk2-devel] [PATCH v2 3/4] MdePkg: Add EFI_PROPERTIES_TABLE Thread-Topic: [edk2-devel] [PATCH v2 3/4] MdePkg: Add EFI_PROPERTIES_TABLE Thread-Index: AQHWJKbdTkKtssY/eUuBLzX/w8AIf6ids7pQ Date: Fri, 8 May 2020 06:08:23 +0000 Message-ID: References: <20200507193443.76728-1-oleksiyy@ami.com> <20200507193443.76728-4-oleksiyy@ami.com> In-Reply-To: <20200507193443.76728-4-oleksiyy@ami.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5555637c-f38c-499a-32e5-08d7f316376e x-ms-traffictypediagnostic: BN7PR11MB2753: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 039735BC4E x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: g97vCHVOaZP7dRb41gixNsOQFmiRPgLZwNLljH9KgPy4R4V+wGr3aKzYzZW17aak6l74LZQf/X2MvQUCxlyulCVTaKErC2NCRftx8UxCXUnM0frQF/CwzFgFazM98lTBarn82ByM1iufibQ2UrLooN6QnxVpl5OovptKp5lGDtomDpvBjoW2/MBE9tdonDr3oHDl2uu63bUsS7uVWIWibmVAwwq97AfckZdpBgyR9VnfRNFeuzpLk8XNJFqbawTkoC5j0d5cjVLRxiR+AzfryO1KGIOJEmV3928eluqmG8ct+VkHcY/5BYpLlC4+K5aMt/p/IkOCeZthBQa+gEH/QP3g01hFKKsUKh06cHM4wO045D577/r7vqhl+HOYH7hejnB/OU2MC0c0FdhtZ8vyyCBHV5iTglQBu9BrsfeIx2mGrwxBH2vQXrEd6MuTzlts7P4D0MW5uMWk76XduqZ4vxWqU3q09m9WDSx5MDkVuczNJs5Ee1fkVFqyT7kK25r7X2c/OP//iQRImbrJtd1wjtB7R48HURRNOAXCHNlqPQtg2Y+r8jQG3mZAk+0eHknH5wKxT/67XmRETIgPsTDuYpAtTzgnYvGxVxpquxdHago= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN7PR11MB2804.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(39860400002)(136003)(346002)(396003)(376002)(366004)(33430700001)(53546011)(6506007)(186003)(4326008)(7696005)(110136005)(316002)(54906003)(478600001)(55016002)(9686003)(966005)(71200400001)(83300400001)(83280400001)(26005)(83310400001)(83320400001)(33440700001)(2906002)(83290400001)(86362001)(64756008)(66556008)(66476007)(5660300002)(8676002)(66446008)(76116006)(8936002)(52536014)(33656002)(66946007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: bt9+VG0quVBGdnq9wOHYeTlSRYRfogg2IW2sdgRlWT3q1ZcxlY+zh7zifSL56EcDKfbH90ZhodzKj2+pyyrGKBm03bhRuUMyM5km1mBbpagkg1m4XjakXyFbARNPTdtH5tI0w0VtbIngO4IcZAR/iSErINQ+wS9kYmfJKTydVHygUCuPYBhsr2V3GOGiQ2sWyypGQI5upzptm7AARCjQJhuOue1V7A2JufJ4zi27hgP48aCPvUCOZdShEeX23c+0/STkQwLlDmHaUl8Pqrb6RrYCpu7NtanQJJ+IRCLsf4RB7g0lfiO32J3HqBnyMGWQCVVQt2tDb7krUvWWntlRC7hb+In7+UBfRmL9NyU/AkVbnYK89VUhlfgef/fOcxLU/fqCyfNo1HZl09BT6G6BnjlPObkYctc+wbXZonVZLic5rIC+2DDhDu+nKCDzlV/mcIje2vuzOOG+Sd34tLmwJMdKwbPBspm1axIZUg9ke1+0uL7tfr70EjDPdHoxU1MT MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5555637c-f38c-499a-32e5-08d7f316376e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 May 2020 06:08:23.9294 (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: iyojVW7EzUvIgSpFESr2dZhESCrWFcnooo7cDIaMQUNiGYtNYRRGFc5ldByfmMZWy6VesMD3LAiLAKGqHqDbJA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2753 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Oleksiy, This patch is not correct and can't be applied to master branch. Can you confirm? The line number seems not consistent.=20 Thanks Zhiguang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Oleksiy > Yakovlev > Sent: Friday, May 8, 2020 3:35 AM > To: devel@edk2.groups.io > Cc: Gao, Liming ; Kinney, Michael D > ; Felixp@ami.com; oleksiyy@ami.com > Subject: [edk2-devel] [PATCH v2 3/4] MdePkg: Add EFI_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 | 68 > +++++++++++++++++++++++++++++++ > MdePkg/MdePkg.dec | 6 +++ > 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/Guid/RtPropertiesTable.h > new file mode 100644 > index 0000000..a5b6c14 > --- /dev/null > +++ b/MdePkg/Include/Guid/RtPropertiesTable.h > @@ -0,0 +1,71 @@ > +/** @file > +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. > + > + > +Copyright (c) 2020, American Megatrends International LLC. All rights > reserved.
> +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 long= er > supports all EFI runtime > +// services once ExitBootServices() has been called by the OS. Note tha= t this > is merely a hint > +// to the OS, which it is free to ignore, and so the platform is still = required to > provide callable > +// implementations of unsupported runtime services that simply return > EFI_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 = to 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 99e75f7..d5340c5 100644 > --- a/MdePkg/MdePkg.dec > +++ b/MdePkg/MdePkg.dec > @@ -655,6 +655,12 @@ > gEfiBttAbstractionGuid =3D { 0x18633bfc, 0x1735, 0x4217, { 0x= 8a, 0xc9, > 0x17, 0x23, 0x92, 0x82, 0xd3, 0xf8 }} >=20 > # > + # GUIDs defined in UEFI2.8a > + # > + ## Include/Guid/RtPropertiesTable.h > + gEfiRtPropertiesTableGuid =3D { 0xeb66918a, 0x7eef, 0x402a, { 0x= 84, 0x2e, > 0x93, 0x1d, 0x21, 0xc3, 0x8a, 0xe9 }} > + > + # > # GUID defined in PI1.0 > # > ## Include/Guid/AprioriFileName.h > -- > 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 > proprietary to American Megatrends (AMI). This communication is intende= d > to be read only by the individual or entity to whom it is addressed or b= y their > designee. If the reader of this message is not the intended recipient, y= ou are > on notice that any distribution of this message, in any form, is strictl= y > prohibited. Please promptly notify the sender by reply e-mail or by > telephone at 770-246-8600, and then delete or destroy all copies of the > transmission. >=20 >=20