From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.10242.1642494647400034882 for ; Tue, 18 Jan 2022 00:30:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=KyYe8dXV; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: jenny.huang@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642494647; x=1674030647; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=whhAFkS/i+M35SarhO0Z76nywwjOEdHJx47WvIr8LRY=; b=KyYe8dXVnnaxeq6vzOTdt0Kpl+XgwAMV84NkaNBnPSdiCvXPpwZ/Xeby O5nMeRRgo71m0Vxy//VjnyCDYn+ohNejp1sCmOHGEVyAMnZFyaAwQIxon 0AT/qlfhj/2kfgMv4sp4EshNIRuOj6ZMKxtqyUxBJQq9txdsGf6C8qq7Y H5T0zrjvyU+acBirHF8nKfjrBLbvnbzcjVnhs7C6MjTOCr4rlfa0x1cVx 0KZaJPdrpJfxcZDw69RZHFF43iYiU3k3JvtVLZTAvQ3rg7lmwI+aLvNO6 BWz9H9OUfaZuaWwvraGqk7+Fajf4+fv7mpTAnz4IEFn2Zty+xhswTTSR+ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10230"; a="331116486" X-IronPort-AV: E=Sophos;i="5.88,296,1635231600"; d="scan'208";a="331116486" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2022 00:30:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,296,1635231600"; d="scan'208";a="531685689" Received: from fmsmsx605.amr.corp.intel.com ([10.18.126.85]) by orsmga008.jf.intel.com with ESMTP; 18 Jan 2022 00:30:46 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx605.amr.corp.intel.com (10.18.126.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 18 Jan 2022 00:30:45 -0800 Received: from fmsmsx604.amr.corp.intel.com (10.18.126.84) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 18 Jan 2022 00:30:45 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 18 Jan 2022 00:30:45 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.49) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 18 Jan 2022 00:30:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XcWXSvPTgPJ41UglSpXsGoYiNQk6w9QS9IKbacEf5aT6FcvzJ8uThwSffI8xQvoYOD9bWpsP6yMnUw7136Ij5wy/KTlvlA642hh01DmNySJKaDSGzMd/e+8/4Dp94iZobHk2p1BNPaF052TD0YbzqvfNyB11q5R1ojlvBEEsEnW9usj9n+BFhev0HHpbkRY5aT3kOPirbUBXvVMg+MqHf5WuSI/z+hlyBlCn6p4E65/MdUFDqf+4q8486bPPnfAHCUs6or6HqA3wttQz6yWGMbee4InTFbO2DYmOEMUJRW//wwsmMol0S29KjzPkqh5f6pacOA/s5sDgIawnu4jhig== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mD6L1rdrvF0QMubF9PHgesvCYb6WxDC8twAj8odZKGs=; b=JMdSCGwD9yQ9itgsdJzdsSkTSBVxHdxQjJS5sgYPA7IBE4cbZrEKpf/2bfXLa9RtE6tBr42YbcRPvQDgOoujWXDc39AIrZIty3m+B7PeGcmXbgZg/8hfVi+Glc5k2L5w9xFjpU6TRsZ5GctLBpmnIDli0rj3o8VSvtlhBOeaW7Lr19+ubRKLzE/xmPmJwNoHGlfP8LjuMY/tsR/Znzq9CTJ1TJOdALz3bUhgiVnYy9wdZJAo6t3qKC1wIQuRo8urTSLucTw0oYGJREXHK0Zf/210mji27Ey/InM7vprByvttWk0t1pzGu0d7CK84sD4tVFkgoHSkbNop6iRcd/YtxA== 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 Received: from DM6PR11MB4627.namprd11.prod.outlook.com (2603:10b6:5:2a2::19) by BYAPR11MB3383.namprd11.prod.outlook.com (2603:10b6:a03:1b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10; Tue, 18 Jan 2022 08:30:43 +0000 Received: from DM6PR11MB4627.namprd11.prod.outlook.com ([fe80::d5d8:1d2a:ce27:b337]) by DM6PR11MB4627.namprd11.prod.outlook.com ([fe80::d5d8:1d2a:ce27:b337%5]) with mapi id 15.20.4888.014; Tue, 18 Jan 2022 08:30:43 +0000 From: "Huang, Jenny" To: "Sheng, W" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Chaganty, Rangasai V" , "Kowalewski, Robert" Subject: Re: [PATCH v5 0/4] There are 4 patches for VTd drivers Thread-Topic: [PATCH v5 0/4] There are 4 patches for VTd drivers Thread-Index: AQHYDEN1SzYNEauKrke9ZGTW6pUauaxocrmA Date: Tue, 18 Jan 2022 08:30:43 +0000 Message-ID: References: <20220118081433.15620-1-w.sheng@intel.com> In-Reply-To: <20220118081433.15620-1-w.sheng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.200.16 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 541172b7-cd27-42a6-7312-08d9da5cd13d x-ms-traffictypediagnostic: BYAPR11MB3383:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1443; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: GOiFiZPYU5evcynfwDVL/SCLJiaMAzvezLfC+9F3oyZCoA1Iq+LWYAIWiqB7ppbhldVJ5+SaNc7sKhJMinYfFb5yZuIjU71yh0v15Ysmmu/8EnjKZlf1fTXJLzAFFjGkSI/UEKbN9FlDZT0LVty2uqMIV2XsvDyHMu2lKaIE2eho9iuJNI2e4Dc6CMctjV3qau/hx9YbC7IOQEH8MsjNBuJVNf7adTHqOxn9e6ONpg0SYbrL5ELgYuc7R6vQM/frDZuKWSQnFq3gGroOIZwyupdVV65E0YXMZt8A0TfCKJvFyr79UU9yn1myfZWVXAlLcEEOfvYNjXSPMGNBoNAmCoC8Y/1migvHWY1S6nXYGVBEa3J3iiR12lZ+QCCXsAz7bsuML5wrGXkh97viVSoQqLLlFyisOE+ANNfhMZAWTUPfhKpUGP0Bp/70rF8So3theiBrama15NpiL1ddBCPkdiySXxw9syZ6UySYjKXSzzkcYnT3dWmOTXPQ31iM6EaB6E5cPCgTdd9GC+G2l17v2ycyRAbeGo/YltOkFAazQNxTqLGtO4CSNwc0ogSZSY+/SLR//CEcsADHWAubjFyW1jzBpGuuJjQNIIVSexB1F+9VTf5implcK4X3pIAqY9kRYC6FzB94WrvHcJYMDzU9trUi4qpzJTbnSPAiuZzYjw29uP2nYf0VAPgPgAo4eZfr3qW0VbL1JuUMPiqPb/l1lQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR11MB4627.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(8676002)(64756008)(2906002)(55016003)(6506007)(122000001)(52536014)(7696005)(38100700002)(33656002)(5660300002)(66556008)(508600001)(71200400001)(107886003)(38070700005)(76116006)(82960400001)(83380400001)(4326008)(186003)(9686003)(86362001)(66946007)(316002)(26005)(110136005)(66476007)(66446008)(8936002)(53546011)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?q9RT2kzzqnTqJry4ouMTe4RoNyxO7OpAXb6G7TcbcB/gTeFtseIJWC/UyK5d?= =?us-ascii?Q?O4nFKgdhB+PknUVbRid9viuezgLtJBdOHMqT5UxvwXi4QbAvpQtHHrdpSnhB?= =?us-ascii?Q?7xMFldf7TYw4un4nzTDP4vJKI1emXCQjLYB4dpy0E0aGcWpHban53K+WFaE8?= =?us-ascii?Q?hLpeK5J1QnXlhTSVAX7dV+DrSDCWN1wsCMcHYxE7StDclIODkYmAQqvCfzmv?= =?us-ascii?Q?tDm1iNQZeHibH8ZHBsUbNEtJ20Xu+Ie9+HB6SS4mb+fioDOxEXCNbLFdrsWH?= =?us-ascii?Q?pJ7jtN+KetT1Hwm7QuithiFBtc10a35i6/arSqRiWToea+V5LgEnzJkGHrLd?= =?us-ascii?Q?MKva6GyWWJvsfiHK6922x3j+ccspTEX84geGZ9f0rYtDDFhncVSHJfxrbVbH?= =?us-ascii?Q?jDLbvJlR0wNFn69Nsf+9fRPxE8pKTv+Iz8I/lzdef/u8GKf/OEIFlwQvb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iGYeLGVrQPFg913qVLBPthXaZK?= =?us-ascii?Q?wGOfoY3ikjGv5lpNB8Tnjn0DvYD6n+kUGCB9ScrsDIrMZU7kZnFh+cAM6iv0?= =?us-ascii?Q?lxoUf5dC0Ndj9SLKFUmu5yOfIFBSD3BFmdJw10WSr9GDZhxRyu21jjHlnyzb?= =?us-ascii?Q?M3jc09ULocr6fmSor8hCurVMFG/A21Z/wentoEKHWtcRT4qdBVxpxIsPwL+m?= =?us-ascii?Q?H4uLTBhIWGFWLt6R1HQnHi4LUxyf7kiZZ+L7Hm8zYlZQE5Iwmye1ifACip3h?= =?us-ascii?Q?BCreqYUQcl2CCoC2M56FHlI=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR11MB4627.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 541172b7-cd27-42a6-7312-08d9da5cd13d X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2022 08:30:43.1010 (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: vka/BqIXomY1hbT6Q4ugEuStR6/DFjDZAmq00qCFczyI3NNOSU3aKriS9k9U8XjYDWv6e3Z4cr5+Nt0IfXyNiA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3383 Return-Path: jenny.huang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Jenny Huang -----Original Message----- From: Sheng, W =20 Sent: Tuesday, January 18, 2022 4:14 PM To: devel@edk2.groups.io Cc: Ni, Ray ; Chaganty, Rangasai V ; Huang, Jenny ; Kowalewski, Robert Subject: [PATCH v5 0/4] There are 4 patches for VTd drivers [PATCH 1/4] IntelSiliconPkg/VTd: Fix typos [PATCH 2/4] IntelSiliconPkg/VTd:= Update VTd register structs [PATCH 3/4] IntelSiliconPkg/VTd: Support VTd A= bort DMA Mode [PATCH 4/4] IntelSiliconPkg/VTd: Only generate PEI DMA buffer= once. Patch v2 update: Fix build error in [PATCH 2/4] and [PATCH 4/4] Patch v3 update: Refine code for PEI 64 bit build compatible. Change the condition for using Register-based Invalidation. Patch v4 update: [PATCH 4/4] Remove unused code. [PATCH 4/4] Refine comments and vriable name. [PATCH 4/4] Add empty pointer check. Patch v5 update: [PATCH 2/4] Add debug log Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Jenny Huang Cc: Robert Kowalewski Signed-off-by: Sheng Wei Sheng Wei (4): IntelSiliconPkg/VTd: Fix typos IntelSiliconPkg/VTd: Update VTd register structs IntelSiliconPkg/VTd: Support VTd Abort DMA Mode IntelSiliconPkg/VTd: Only generate PEI DMA buffer once. .../Feature/VTd/IntelVTdDmarPei/DmarTable.c | 545 +----------------= ---- .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmar.c | 429 +++++++--------- .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.c | 474 ++++++++++-------= - .../Feature/VTd/IntelVTdDmarPei/IntelVTdDmarPei.h | 119 ++--- .../Feat= ure/VTd/IntelVTdDmarPei/TranslationTable.c | 215 ++------ .../Feature/VTd/IntelVTdDxe/DmarAcpiTable.c | 12 +- .../Feature/VTd/IntelVTdDxe/TranslationTable.c | 22 +- .../Feature/VTd/IntelVTdDxe/VtdReg.c | 7 +- .../Feature/VTd/IntelVTdPmrPei/DmarTable.c | 6 +- .../IntelSiliconPkg/Include/IndustryStandard/Vtd.h | 34 +- 10 files changed, 609 insertions(+), 1254 deletions(-) -- 2.16.2.windows.1