From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 94DFA2034A8D0 for ; Wed, 17 Jan 2018 18:29:41 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 18:35:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,375,1511856000"; d="scan'208";a="22591311" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2018 18:35:01 -0800 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Jan 2018 18:35:01 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Jan 2018 18:35:00 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Thu, 18 Jan 2018 10:34:58 +0800 From: "Yao, Jiewen" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Zeng, Star" , "Kinney, Michael D" , "Gao, Liming" Thread-Topic: [PATCH] MdePkg/DMAR: Add the definition for DMA_CTRL_PLATFORM_OPT_IN_FLAG bit Thread-Index: AQHTkAB3hDrXvtl+70e7ISnFk8VOtaN46ZAw Date: Thu, 18 Jan 2018 02:34:57 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA80E92@shsmsx102.ccr.corp.intel.com> References: <20180118020243.6208-1-hao.a.wu@intel.com> In-Reply-To: <20180118020243.6208-1-hao.a.wu@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzM4YTYzMzYtNTAxYi00ZGE5LTkxYjUtODRlYjc2MDViODY5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJxQjc0ZnhmemEram82SnVNMFYrbFpFd2hFSnNybTF5N04yWCtrcHA1dW1YREN2UnMxRHZPTWwrSERMWVZHM1JDIn0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdePkg/DMAR: Add the definition for DMA_CTRL_PLATFORM_OPT_IN_FLAG bit X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jan 2018 02:29:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks. Would you please also update the file header on spec version and URL to the= new spec? Reviewed-by: Jiewen.yao@intel.com > -----Original Message----- > From: Wu, Hao A > Sent: Thursday, January 18, 2018 10:03 AM > To: edk2-devel@lists.01.org > Cc: Wu, Hao A ; Zeng, Star ; Yao= , > Jiewen ; Kinney, Michael D > ; Gao, Liming > Subject: [PATCH] MdePkg/DMAR: Add the definition for > DMA_CTRL_PLATFORM_OPT_IN_FLAG bit >=20 > For the support of VTd 2.5, add the BIT definition of > DMA_CTRL_PLATFORM_OPT_IN_FLAG >=20 > Cc: Star Zeng > Cc: Jiewen Yao > Cc: Michael D Kinney > Cc: Liming Gao > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Hao Wu > --- > .../IndustryStandard/DmaRemappingReportingTable.h | 16 > +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > index c09ef76e40..fced884c02 100644 > --- a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > +++ b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > @@ -2,7 +2,7 @@ > DMA Remapping Reporting (DMAR) ACPI table definition from Intel(R) > Virtualization Technology for Directed I/O (VT-D) Architecture Specifi= cation. >=20 > - Copyright (c) 2016, Intel Corporation. All rights reserved.
> + Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the = BSD > License > which accompanies this distribution. The full text of the license may= be > found at > @@ -30,10 +30,11 @@ > /// > /// DMA-Remapping Reporting Structure definitions from section 8.1 > ///@{ > -#define EFI_ACPI_DMAR_REVISION 0x01 > +#define EFI_ACPI_DMAR_REVISION 0x01 >=20 > -#define EFI_ACPI_DMAR_FLAGS_INTR_REMAP BIT0 > -#define EFI_ACPI_DMAR_FLAGS_X2APIC_OPT_OUT BIT1 > +#define EFI_ACPI_DMAR_FLAGS_INTR_REMAP BIT0 > +#define EFI_ACPI_DMAR_FLAGS_X2APIC_OPT_OUT BIT1 > +#define EFI_ACPI_DMAR_FLAGS_DMA_CTRL_PLATFORM_OPT_IN_FLAG > BIT2 > ///@} >=20 > /// > @@ -252,7 +253,12 @@ typedef struct { > firmware may Set this field to request system software t= o > opt > out of enabling Extended xAPIC (X2APIC) mode. This field= is > valid only when the INTR_REMAP field (bit 0) is Set. > - - Bits[7:2] Reserved. > + - Bit[2]: DMA_CTRL_PLATFORM_OPT_IN_FLAG - Platform firmware is > + recommended to Set this field to report any platform > initiated > + DMA is restricted to only reserved memory regions > (reported in > + RMRR structures) when transferring control to system > software > + such as on ExitBootServices(). > + - Bits[7:3] Reserved. > **/ > UINT8 Flags; > UINT8 Reserved[10]; > -- > 2.12.0.windows.1