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.web08.1178.1607655074776039733 for ; Thu, 10 Dec 2020 18:51:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=IEVUWtw/; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: ZrB39j4gN6HHdJj8QtT89BDcNTbUavORZyASwaHmFhifsE31sPuHzqtrx38hrPjRluUFKRKWGB Yz4UmdGuXrHA== X-IronPort-AV: E=McAfee;i="6000,8403,9831"; a="174514739" X-IronPort-AV: E=Sophos;i="5.78,409,1599548400"; d="scan'208";a="174514739" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Dec 2020 18:51:13 -0800 IronPort-SDR: X1KeSpVSndYccRrLkfkx2J6euH4u3itHdwT4AD8S/oMx7o/VM8jHtiLagAHXe90JeOIQ8oYExV Oi71Cnq6dX7g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,409,1599548400"; d="scan'208";a="484847746" Received: from orsmsx604.amr.corp.intel.com ([10.22.229.17]) by orsmga004.jf.intel.com with ESMTP; 10 Dec 2020 18:51:13 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 10 Dec 2020 18:51:13 -0800 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 10 Dec 2020 18:51:13 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 10 Dec 2020 18:51:13 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.169) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 10 Dec 2020 18:51:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RRZqValdxSuRp5hewnx1C+yp8NrwUi5iex1hbQfwB6/nTvyxQE/+YL7Ifol8graUJw9BV9zsoY3BYxEVY1kTtjMPlsf9GaelpjnljnMx9ND+74l5BIXuXw6JBoNrGbVMZ1c74vtn5mq8gh2MTZ3EVqxXgTUtYHRQqwZM8DjEsWBoySAn6fCgToJbCTr2OrGExP+DzrNqkxXjkK6h0Ud25X1tYy7wZM+DwV6kYXWfCdZ5f2TRKYaNcssCP+hesXx0irZmkuH82WO8Qb9jZDbAIjFzR526ox0yo1icohSL8tw2dl4FSaSJM/EX+q6F3/I5Y5nph5zvxQyNPCSqk6XQ0g== 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=Se3Z52Xbhe0SJykVIoJgU4XXcJTHRxwEyRY4A2Egt2E=; b=MdtT1SEtXsDAXSnHCeNryr/evYh5mWbUlVeu4ZusFGVjd1hl6/RhTGF6tk83Z14I6EO7T43g7o3/C/ncCSYChRzc8rU/qqog3SJZzea/cRfH7yIek+4FHdUKnX3q0usw6JQqAxRL7sOW37qZWfl9vWvWFV2CaWeNPhCJ8tHbKNpip6OBKHmWm6h7r2GxjYOqgf4eWmFFwzIt0FEWaAy8tcFUxQIItFQ3apL5IU9DlX0YWuaEarDSSpFVnnc8pLbez1DQqBY1FpfVcel2MbB9hmbpAnwTXvB1Dpj2TEc73JYtgI42AdEgsaXFUH/fr+M7JAGaPRVMMj6jzWOxwKCPZw== 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=Se3Z52Xbhe0SJykVIoJgU4XXcJTHRxwEyRY4A2Egt2E=; b=IEVUWtw/znGxdwacdbNBTzmh8R40/bF9WRH6+jt1b9lHAIsgGdFS1EzdBocPTUVSieiafMDsmbDdYGhV4iqB4IMydpcSWl2FSv4IYpKnvOoApCyPHtC4Ybxp2gT6m11gYfgEeCUh3W8QBsGdY0Fhdjr+Uyk2Rn49kLb6jelUCN0= Received: from CY4PR11MB1687.namprd11.prod.outlook.com (2603:10b6:903:2e::11) by CY4PR1101MB2120.namprd11.prod.outlook.com (2603:10b6:910:1e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Fri, 11 Dec 2020 02:51:11 +0000 Received: from CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::7596:99f8:30f6:b717]) by CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::7596:99f8:30f6:b717%6]) with mapi id 15.20.3632.027; Fri, 11 Dec 2020 02:51:11 +0000 From: "Zhiguang Liu" To: "Sheng, W" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , Liming Gao , "Yao, Jiewen" , "Huang, Jenny" , "Kowalewski, Robert" , "Feng, Roger" Subject: Re: [PATCH] MdePkg/include: Add DMAR SATC Table Definition Thread-Topic: [PATCH] MdePkg/include: Add DMAR SATC Table Definition Thread-Index: AQHWz14tLdttqJole060sPzk710cwKnxMegA Date: Fri, 11 Dec 2020 02:51:10 +0000 Message-ID: References: <20201211013653.11624-1-w.sheng@intel.com> In-Reply-To: <20201211013653.11624-1-w.sheng@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.46.36] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 41764104-74a1-4fcd-afd9-08d89d7f9e01 x-ms-traffictypediagnostic: CY4PR1101MB2120: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ESYSSk2VtRZ9ab1V8tl+CsOgRnNJQNundSeNoPY6d4JMb85dTbPBDqTKM+0qvSsQ2eZfiaFBV0kjcZct/f6ZSPFTLUvKvACkewuzJMPcAKCB0UUmTB/ZmI0lnhf5QLZKXrH0uWvsWuCVMQysgTBvvOnpHeFCnfb77UBojeQohNzo3AZ1OEiFfcu8IbcwXJsU5sa9e7dzkqQxdubFLAYlNDnU/02IzucWbI2+4K2RGLiEYeviNTaA8Wd91GLqgTbn4kt/PmcLcJkWNtgCFzPhE1C+APMQqJUxIxVwDi1XoJk2VC4nkE7vTiXXWKPPoUtDcyzjy0/uWSl/W1h2DbhGUJS6f6l3WMt9zCT4MAWoW0nhDiV95/UMS49WUqdc8oeuNtiBM3XOgxp0vjGSBjEOUQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1687.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(346002)(366004)(376002)(136003)(55016002)(966005)(110136005)(4326008)(54906003)(7696005)(5660300002)(52536014)(107886003)(66946007)(2906002)(186003)(83380400001)(86362001)(8936002)(8676002)(66476007)(33656002)(66556008)(6506007)(53546011)(508600001)(71200400001)(64756008)(66446008)(76116006)(9686003)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?0uf37emXAwgSMFwN3tyTXEE+Q+agujHw5AAnzfDRuqjKCkKn7Yd4sqV+Orj0?= =?us-ascii?Q?w27GOlyrv5VaW6CK93+hWuyM+lT5VFTL9Ayr1GK3ghk/RQfAnWdZMko89B3u?= =?us-ascii?Q?4Gz7WqlS9b2hJL2yglESvAtgl/LeBvZWGASKzAZJFQCFIR6EtY5JR7liP5Wt?= =?us-ascii?Q?yUlCCVLsJxvXRcjUsdFh+1hz2IUvrqfDkheDHnosYduJ5cr6rleuz+/7FEwo?= =?us-ascii?Q?WQcwUCsKHNfHOZMEs97YJc3ZW57Qlqd8dwhweCB+otVFEElh7UXs15uUkAaG?= =?us-ascii?Q?k0NGpCeWPzJ9VxegzuHaG/Qx+AU6Enzw3LaS+rlwdr8J/etmBlR0JkaL5EYm?= =?us-ascii?Q?zELIUQF7+jbTmkSzdUuj8YWJNgcnpi5iBD/y8NS43LLmSocc4hrutCqteF7i?= =?us-ascii?Q?l2beGJghfubao8OB+bnxpOUSM1Qg9MrDQn0C3wen0t9R9QbCQ8Y6Tn7FcvWm?= =?us-ascii?Q?5D6B5kBrtC8VL0Hr8e+dnnDmBUO2t7CHbCjGRIfxSbLR8O57ChO8RcFXoMb4?= =?us-ascii?Q?0qotz8H1HPAzR8yMWftjaIGpqOmfucY1h7iMHjbaScwlekED04/JFXDEz5Vu?= =?us-ascii?Q?QlPAxx6UUCfISlFS9wI4y9T5mydQF8D5sTrYVkw1zjwqBRnRK6PJprcHJbOb?= =?us-ascii?Q?KwlWSMseyKj3T9+5QhWiPCi7nJCcJF4qi7XlWnX+ATCcTIaGPkEBsIz4xzSs?= =?us-ascii?Q?k8c9Mlbjzgw4ndi8Qy+HKavkNhNy7k3C2GCpc/L2KBQgym93HW1yyd7hUve+?= =?us-ascii?Q?e47tuev/jsDTt/mJ2DnCyix42S+zg0tj0uwtIHvNnhIFEqEpp9+B+/wfy/8T?= =?us-ascii?Q?eURlnYY98B7gD+gxNzmlpBxEGmVl/B4yWcirVTLbBBnR7n/3O47Y0Vf2vMHk?= =?us-ascii?Q?aY81KhbuePSjFmQjNEEhW4SNjsp8NlL70WT2II7U1HJG8Mlhkp3Q+BXYH4e/?= =?us-ascii?Q?T9xpGWijNox0aW7wHE7y5p7rWBHFgdvnCm25S7QzVic=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR11MB1687.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 41764104-74a1-4fcd-afd9-08d89d7f9e01 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2020 02:51:10.3606 (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: dg0qwm34r15DAUlrvC+AQ1QPlLqOhQZBdw9yJ70ny5clzDZHO4MWBzJ8B9dyJrJwVaY0haIKYeL9RH05plksBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2120 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 Reviewed-by: Zhiguang Liu > -----Original Message----- > From: Sheng, W > Sent: Friday, December 11, 2020 9:37 AM > To: devel@edk2.groups.io > Cc: Kinney, Michael D ; Liming Gao > ; Liu, Zhiguang ; Yao, > Jiewen ; Huang, Jenny ; > Kowalewski, Robert ; Feng, Roger > > Subject: [PATCH] MdePkg/include: Add DMAR SATC Table Definition >=20 > SoC Integrated Address Translation Cache (SATC) reporting structure is on= e > of the Remapping Structure, which is imported since Intel(R) Virtualizati= on > Technology for Directed I/O (VT-D) Architecture Specification v3.2. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3109 >=20 > Signed-off-by: Sheng Wei > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Cc: Jiewen Yao > Cc: Jenny Huang > Cc: Kowalewski Robert > Cc: Feng Roger > --- > .../IndustryStandard/DmaRemappingReportingTable.h | 34 > ++++++++++++++++++++-- > 1 file changed, 31 insertions(+), 3 deletions(-) >=20 > diff --git a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > index 7c50dc972e..48f6959fec 100644 > --- a/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > +++ b/MdePkg/Include/IndustryStandard/DmaRemappingReportingTable.h > @@ -2,13 +2,13 @@ > 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 - 2018, Intel Corporation. All rights reserved.
> + Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.
> SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > @par Revision Reference: > - Intel(R) Virtualization Technology for Directed I/O (VT-D) Archite= cture > - Specification v2.5, Dated November 2017. > - > http://www.intel.com/content/dam/www/public/us/en/documents/product- > specifications/vt-directed-io-spec.pdf > + Specification v3.2, Dated October 2020. > + > https://software.intel.com/content/dam/develop/external/us/en/documents/v= t- > directed-io-spec.pdf >=20 > @par Glossary: > - HPET - High Precision Event Timer > @@ -39,6 +39,7 @@ > #define EFI_ACPI_DMAR_TYPE_ATSR 0x02 > #define EFI_ACPI_DMAR_TYPE_RHSA 0x03 > #define EFI_ACPI_DMAR_TYPE_ANDD 0x04 > +#define EFI_ACPI_DMAR_TYPE_SATC 0x05 > ///@} >=20 > /// > @@ -216,6 +217,32 @@ typedef struct { > UINT8 AcpiDeviceNumber; > } EFI_ACPI_DMAR_ANDD_HEADER; >=20 > +/** > + An SoC Integrated Address Translation Cache (SATC) reporting structure= is > + defined in section 8.8. > +**/ > +typedef struct { > + EFI_ACPI_DMAR_STRUCTURE_HEADER Header; > + /** > + - Bit[0]: ATC_REQUIRED: > + - If Set, indicates that every SoC integrated device enume= rated > + in this table has a functional requirement to enable its= ATC > + (via the ATS capability) for device operation. > + - If Clear, any device enumerated in this table can operat= e when > + its respective ATC is not enabled (albeit with reduced > + performance or functionality). > + - Bits[7:1] Reserved. > + **/ > + UINT8 Flags; > + UINT8 Reserved; > + /// > + /// The PCI Segment associated with this SATC structure. All SoC integ= rated > + /// devices within a PCI segment with same value for Flags field must = be > + /// enumerated in the same SATC structure. > + /// > + UINT16 SegmentNumber; > +} EFI_ACPI_DMAR_SATC_HEADER; > + > /** > DMA Remapping Reporting Structure Header as defined in section 8.1 > This header will be followed by list of Remapping Structures listed be= low > @@ -224,6 +251,7 @@ typedef struct { > - Root Port ATS Capability Reporting (ATSR) > - Remapping Hardware Static Affinity (RHSA) > - ACPI Name-space Device Declaration (ANDD) > + - SoC Integrated Address Translation Cache reporting (SATC) > These structure types must by reported in numerical order. > i.e., All remapping structures of type 0 (DRHD) enumerated before > remapping > structures of type 1 (RMRR), and so forth. > -- > 2.16.2.windows.1