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=hao.a.wu@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 3670C221F93AD for ; Wed, 17 Jan 2018 18:38:01 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 18:43:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,375,1511856000"; d="scan'208";a="27373546" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 17 Jan 2018 18:43:21 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) 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:43:21 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Thu, 18 Jan 2018 10:43:19 +0800 From: "Wu, Hao A" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Kinney, Michael D" , "Gao, Liming" Thread-Topic: [PATCH] MdePkg/DMAR: Add the definition for DMA_CTRL_PLATFORM_OPT_IN_FLAG bit Thread-Index: AQHTkAB3FRAbDOZuOka6T4K380lLSaN4Y+oAgACIGzA= Date: Thu, 18 Jan 2018 02:43:19 +0000 Message-ID: References: <20180118020243.6208-1-hao.a.wu@intel.com> <0C09AFA07DD0434D9E2A0C6AEB0483103B9FE4DC@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103B9FE4DC@shsmsx102.ccr.corp.intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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:38:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Zeng, Star > Sent: Thursday, January 18, 2018 10:36 AM > To: Wu, Hao A; edk2-devel@lists.01.org > Cc: Yao, Jiewen; Kinney, Michael D; Gao, Liming; Zeng, Star > Subject: RE: [PATCH] MdePkg/DMAR: Add the definition for > DMA_CTRL_PLATFORM_OPT_IN_FLAG bit >=20 > Please also update the information according to 2.5 spec. >=20 > - Intel(R) Virtualization Technology for Directed I/O (VT-D) Architec= ture > Specification v2.4, Dated June 2016. >=20 Yes, I will update the comments when pushing the commit. Best Regards, Hao Wu > Reviewed-by: Star Zeng >=20 > Thanks, > Star > -----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 ini= tiated > + DMA is restricted to only reserved memory regions (repor= ted in > + RMRR structures) when transferring control to system sof= tware > + such as on ExitBootServices(). > + - Bits[7:3] Reserved. > **/ > UINT8 Flags; > UINT8 Reserved[10]; > -- > 2.12.0.windows.1