From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 2E135740039 for ; Tue, 6 Feb 2024 01:49:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=t+eZAluvp7be8XkVUrys2w4X7TPJPTN26iTHmiIEexM=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1707184140; v=1; b=O+IKTB8zqbwe2cDdGkSlzUzo/0v60RWZ+xHzaJ1VVtrxSzE5HYLAcW5bVUg8WwkefjubmZ3x ER3X1bjODrvrFUF3cHA1Woa1/HiyavCx3W/zP6JJrE53AXoAT6Ptsx8yYKxws2XPQwallibc2PI 6wvcarpYhQIxA/UFHxPbs8r4= X-Received: by 127.0.0.2 with SMTP id enJ5YY7687511x4jljvvzVNQ; Mon, 05 Feb 2024 17:49:00 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by mx.groups.io with SMTP id smtpd.web10.12326.1707184140068937921 for ; Mon, 05 Feb 2024 17:49:00 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="794932" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="794932" X-Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:49:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="31688876" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Feb 2024 17:48:59 -0800 X-Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 5 Feb 2024 17:48:59 -0800 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 5 Feb 2024 17:48:59 -0800 X-Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 5 Feb 2024 17:48:58 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e5CMmtT3KLdpXUFyZazH/k2cFbQHtHt84/k7/2yWtlXQAgUpzzwVaKtJqFQVaBO7QlNYlQ2WI075twRvTfmAhpLtbaLcq0B8cFiZqlkqN4aEn9Y44eAzQ47mMnNj69TusKPrvrXgQYdwWjj+A2LSJHMy1prtZJCX3RVQ68W7jYjcmeXpJ74Locl6boq1Sw6hyo+Vly9KYk7LmOEtMinAW+XQRTMPK5wOKOrbOaOg38wMB5JHpxYQK8HnCDuRqZ9f+R1eXKk6V49I5TXcObsWRVPnqlcZm8VVGIMCt2t1DFH2g2PR5bdGRC/HlI6fLmHsTSqZ98PBRMgLzGtdxBeeKQ== 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=lheGGkmA9Wrxnxo/F4PwOo1uqF8d3IBJByZrgcpi9vU=; b=Qb5AeRrdPtUmndyKOn+9ONnGTlfWqOEa7dH6d7ZgBHg1ZSdnjWkVycpDZnkP/4XmM/3UyFnm3xNDFcHNL5flabtnAikO1UpASbpci3i7gvHk6PpZTz8gIB23LgUL2khAvk9h/Hw3f0srX9CmAn+uRy+cB7ruR3SAbzfVo7At7CkEUz7eZ9YP50CFacHi0TOMMI06BNuUzIzn7E8rGoI5MuBWrdN11M8DGegDVnOwdO+Q9sWKVVXx9orwo4hhsHUwbtcj5JV73b+/j7oGyH+Yw+ykobi3Q6+A8BwBa2+BPxX6yb1onFaP0V0ZEfGa2UCK5s88u5ocSJeuqwQW+WmIJg== 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 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MN2PR11MB4757.namprd11.prod.outlook.com (2603:10b6:208:26b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Tue, 6 Feb 2024 01:48:52 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d%4]) with mapi id 15.20.7249.032; Tue, 6 Feb 2024 01:48:52 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Tan, Dun" Subject: Re: [edk2-devel] [PATCH 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Thread-Topic: [edk2-devel] [PATCH 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Thread-Index: AQHaWDxbpLlmPTNmn0eP5lQtHvpLRrD8islw Date: Tue, 6 Feb 2024 01:48:52 +0000 Message-ID: References: <20240205140345.1437-1-dun.tan@intel.com> In-Reply-To: <20240205140345.1437-1-dun.tan@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MN2PR11MB4757:EE_ x-ms-office365-filtering-correlation-id: d4587548-b7bc-4ab7-daab-08dc26b5c58a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: HNP/tb/QzrkwUdnxZbqgYwLZdi1FOaiLSdl9RjjJgX0Zxf2N5zry2bmfJkdnG23f3+qu7LRgp4TJRIT1ulastrvJcM06fJGT41NA0D+mG3BxWFm/bO1X7aajL1QtdoY3Q3kR+wIXYfvDtOmEwYqRIIkA1HmVcfWm9AHjNG3yKHUcjOSeXf1draMIWaXQ9pVdEh8x903StJsxiobacNv19ZsZxS/fVHlPKAIn+VJ4jzovFCX2LVgXz5QVweps0SGezSMrobBsMuKJGxylnWkUA4Dy/g3CGazvXE+pbgcouxms1VMI3cTogs/T9T/kh00y4kVxVO/2QgJWSoUvx0tHmx/cVH0VJVSBkPStKiTFqnbo1D8BlnYaqH4rDXFL6ENdV9YcKQOoO4zQUVEueXYG/YanP6ZV8VQLfWCYoDKae3ObDmfLWIADz1YTzLXbNgn3pmYx+GC1c1F7zODC3xVr6uekKdh+AAoh/pStqGVQ2hOy7tqUaGsz+iYqBFtcKp2ErPf22Cjbkmzao/WjHZLMrbX+hcH+fcGAI9QE7+ZOLgyF6b+BfuZcSwClIiaxJZTd7x5jzGnKReHFZBjz+XzTRyB56ANnBE2Kug8F9MlFz5ih6JG7dLpi9CWDQblZRFVE/sztnvyMQlniRpWIzGYRqA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EHUfhnqXf7hsl/RQS6oA5mecVRucnHM1O8wf2eIjAAlz3xvDBLbFWlh+cRYB?= =?us-ascii?Q?9OujUU2K7MTFfPrMOozU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H8HcNn1?= =?us-ascii?Q?6Hbq2Bns8lPlwI84p6Pv1C+geAuKTFMUxiLfdTK2ESYmu/FUyLjJFJAPr1tu?= =?us-ascii?Q?eUc9kR/lj53FGDKyhyr5ZHsAChCB2Kj9/iSlST4R20aOw9CAIVmhw4BQGRh9?= =?us-ascii?Q?G8rIy0mBl59HHm+niq6vRJn7t8eFY1KVCeMO4XXVvhAtL8uyT8E/zVbPV2+n?= =?us-ascii?Q?RDPKf7ZKfn2NQKIDll70knjvQTY42uRjgL7St9YZvAUnGTsRx/O02qfLvo5l?= =?us-ascii?Q?ZOq0/7yzuHRhL0AvZn7ypjdoKwGSERAO62n1M2JCSAn/j6hpS17LKazOpYue?= =?us-ascii?Q?xFYO8Lcdogt/f2QyjRwCzRoFVe/pF4nTphRkAangaOFroTRsIbWGN00/Kx1E?= =?us-ascii?Q?7ABbm1kiEdb5egyLJA45dIbLTjBe/LKbaduMa+DG0T3hUEeN4sw6ZZFYkKMB?= =?us-ascii?Q?Zsg6Ba/jM/mSfTm7pafs/Ck7WvFwTJwid4QUOHEjvhCAKFb8TH4JuQxofFcH?= =?us-ascii?Q?hRK/Dm6/FpV9lDMd+zjqNu9PVOtNovy3stboxm+sHNSztpvW7RvYWjeuQqwH?= =?us-ascii?Q?Yj/INW68POw/LFyDLPU+/4kn6iS3PrJo4FyOzHQ/Vg5ZjLinSCwtqjRQvL7v?= =?us-ascii?Q?K/v8u8UukmYhdmldj1g=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d4587548-b7bc-4ab7-daab-08dc26b5c58a X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2024 01:48:52.4437 (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: s/cOUXtGvkdbeF06iynAkmOBkAlLyUEsi0DcdMfF2gvZMhKcLNjOVK4Svxl4kwlvWU9dHReKLYyxl0zqizBTHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4757 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: jz2lMKlHI7CQFSJLvjJbZqK8x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=O+IKTB8z; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") More background: The patch series fix a SMM hang issue that's observed in r= eboot cycling test. Thanks, Ray > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of duntan > Sent: Monday, February 5, 2024 10:04 PM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH 0/3] Fix potential issue in CpuPageTableLib = and > SMM page table initialization >=20 > This patch set is to fix potential issue in CpuPageTableLib and SMM page = table > initialization >=20 > The first patch "UefiCpuPkg: Reduce and optimize access to attribute" is = to > reduce and optimize access to > attribute in page table modification code in CpuPageTableLib. >=20 > The patch "UefiCpuPkg: Add more Paging mode enumeration" and " > UefiCpuPkg/PiSmmCpuDxeSmm:Map SMRAM in 4K page granularity" > is to map SMRAM in 4K page granularity during SMM page table > initialization(SmmInitPageTable). > This is to avoid the SMRAM paging-structure layout change(page split) whe= n > SMM ready to lock (PerformRemainingTasks). >=20 > Dun Tan (2): > UefiCpuPkg: Add more Paging mode enumeration > UefiCpuPkg/PiSmmCpuDxeSmm:Map SMRAM in 4K page granularity >=20 > Zhou Jianfeng (1): > UefiCpuPkg: Reduce and optimize access to attribute >=20 > UefiCpuPkg/Include/Library/CpuPageTableLib.h | 8 +++++++- > UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 86 > +++++++++++++++++++++++++++++++++++++++++++++++++++++--------- > ------------------------ > UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 116 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++++++++++++++++++++++++++------------------------ > 3 files changed, 152 insertions(+), 58 deletions(-) >=20 > -- > 2.31.1.windows.1 >=20 >=20 >=20 >=20 >=20 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115134): https://edk2.groups.io/g/devel/message/115134 Mute This Topic: https://groups.io/mt/104176229/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-