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.24; helo=mga09.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 B8AD52034A8D0 for ; Wed, 17 Jan 2018 18:30:17 -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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 18:35:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,375,1511856000"; d="scan'208";a="22591424" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2018 18:35:38 -0800 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Jan 2018 18:35:37 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Jan 2018 18:35:37 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.189]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Thu, 18 Jan 2018 10:35:35 +0800 From: "Zeng, Star" To: "Wu, Hao A" , "edk2-devel@lists.01.org" CC: "Yao, Jiewen" , "Kinney, Michael D" , "Gao, Liming" , "Zeng, Star" Thread-Topic: [PATCH] MdePkg/DMAR: Add the definition for DMA_CTRL_PLATFORM_OPT_IN_FLAG bit Thread-Index: AQHTkAB3V9gJEpiFfUSchEI/h+RB1KN46bxQ Date: Thu, 18 Jan 2018 02:35:34 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B9FE4DC@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-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:30:18 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Please also update the information according to 2.5 spec. - Intel(R) Virtualization Technology for Directed I/O (VT-D) Architectu= re Specification v2.4, Dated June 2016. Reviewed-by: Star Zeng Thanks, Star -----Original Message----- From: Wu, Hao A=20 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 For the support of VTd 2.5, add the BIT definition of DMA_CTRL_PLATFORM_OPT= _IN_FLAG 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(-) 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 Specifica= tion. =20 - Copyright (c) 2016, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2018, Intel Corporation. All rights=20 + reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e 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 to = opt out of enabling Extended xAPIC (X2APIC) mode. This field i= s 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 initi= ated + DMA is restricted to only reserved memory regions (reporte= d in + RMRR structures) when transferring control to system softw= are + such as on ExitBootServices(). + - Bits[7:3] Reserved. **/ UINT8 Flags; UINT8 Reserved[10]; -- 2.12.0.windows.1