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 D487ED80122 for ; Mon, 9 Oct 2023 06:27:47 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=VPt+2M9a+iaQOs9iI1LbTIhd71EbocEgALA+6RKwVGg=; 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=1696832866; v=1; b=KRCi3S5OTBhAa7jqBFlzAw9+QEndZNfG4StSSsaP+DffTgcicVuIHmONAd7MqjIWI/2YxNa4 ULDrwF9Xspa5GuX97gkvxdEROHjRNSCT7fNQItdy6Brid/Qjds/u06RwJE9idIcvH+9SWLfIxiw Rkl+ontY57UAhHxeG7BjeuDA= X-Received: by 127.0.0.2 with SMTP id 7ch5YY7687511xWuaRhlg6z2; Sun, 08 Oct 2023 23:27:46 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web11.55152.1696832865086620510 for ; Sun, 08 Oct 2023 23:27:45 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="450575698" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="450575698" X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2023 23:27:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="1000077032" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="1000077032" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga006.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Oct 2023 23:27:44 -0700 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 8 Oct 2023 23:27:43 -0700 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Sun, 8 Oct 2023 23:27:43 -0700 X-Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32 via Frontend Transport; Sun, 8 Oct 2023 23:27:43 -0700 X-Received: from NAM04-BN8-obe.outbound.protection.outlook.com (104.47.74.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Sun, 8 Oct 2023 23:27:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mcTg5hOsxri/WrpvfzwG2kj0jDAH8L7ihunlP3xjhxZSOx/JU2LJbA88LoroYxixRAG8q62QThV9CIutMckfiUMQj84EeTGuA6LfynzQtlCcC5psSFXPVrbx9GmnR6/ZIPW4rjtSeXQ0koDbXbEXB7uz0LQe4FE2qvE/eg8yNaKNURB3lTbai1WSQ86z6AqWeZUGm0oNk0DqQ/IyhutW2sf1Bg0LoNNnPXnJGURugd6XTM/ar4DiWG3/TMlkqDRoFOel116V/9ZkLR+99XBQzS0hDn0nqRcZJKWRE1hED8ic7MvPnRxxTgFOv6hr5XSFAApSax6T1KggyVMZhIejTA== 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=V3OKVuM3uMaDSUzBGBbauH6hdbhjM50GAR7KJQEzj84=; b=RUzJkujJfnBBqAv2b8yIQ2KjBt2UaG6VMuKBpSlE3tMtafiI6N8KOiyYmsdyqFojAhArNnjMKHw/4k7O9LI2tDrbX1+GCTxKg4KCDsAPRBkIcr3zH3Coy4U3J8TVQ9IlOd4yDHLGBGgi1BWPyU+KO/UKyJ/Sqp/mysjAoDVlTs80tv1qLURnB2hjp3s04Zfgd4T2Kd17o14aVqeft/NEgyiNGLuvqaJmBNuFhyr1nNXeG3HkdQEAD5mY441ABLv5mxsmb6mB9CjGbz0hsXq8++AMMkJ/2LGgnO7DZ+RxdWJoIhFgajCdVmcsmCvPndrnBKIOhlBbVGl1Z/kPYEU8Uw== 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 DM4PR11MB6480.namprd11.prod.outlook.com (2603:10b6:8:8d::17) by SA3PR11MB8118.namprd11.prod.outlook.com (2603:10b6:806:2f1::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.36; Mon, 9 Oct 2023 06:27:39 +0000 X-Received: from DM4PR11MB6480.namprd11.prod.outlook.com ([fe80::76e8:5276:3e2c:10a9]) by DM4PR11MB6480.namprd11.prod.outlook.com ([fe80::76e8:5276:3e2c:10a9%7]) with mapi id 15.20.6838.039; Mon, 9 Oct 2023 06:27:39 +0000 From: "Dong, Eric" To: "devel@edk2.groups.io" , "Xie, Yuanhao" Subject: Re: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement Thread-Topic: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhancement Thread-Index: AQHZ5fqWlMPirahiYkC8P9DPRTCVy7BBJ0yw Date: Mon, 9 Oct 2023 06:27:39 +0000 Message-ID: References: <20230913042639.2066-1-yuanhao.xie@intel.com> In-Reply-To: <20230913042639.2066-1-yuanhao.xie@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB6480:EE_|SA3PR11MB8118:EE_ x-ms-office365-filtering-correlation-id: d0095441-c91f-4ce7-4d87-08dbc890d5d2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: fzsaKppZJ/YCgdJi7tZPvlx/hwKSjLWD6uheEmPtsIJDSTXfcvnRnUB9i+/0gKh7l1TsKaR9T8eUudnohbr6CxU0lVj9RK5XS0XWRIojyvgRjAiNvvpFrMW+ucmPr0MOpeLsaD+Rzr/fE0hKEMyvnaBao5b1LDBDkizPXi8zxq0W65vYzRqSxzoI6as8xLywdWB9IYtdDE/E47uAFhjyc6SOd86vH8ajvqyoMeFzrkEL52/HvDhlmvv/nUnUlfgQvNF+wOtAG4/OD/7dxAZ1wlWG+LRVY/caHNe3Z0HA5Ca+/kWiEO1ke52obTF2rs9dSp3Dzdg1zNobN778fKbq9BIsW5wQKCVXfefw79U1ovq+YPiAjRuwMoHh8A4FEW5afMhEl54h7aUnNbSkAR8rV3q9l0XWxaTWDkmWqh2IBl+NH6htAc07g+v7PiIY9b1367H40neRHc6s+lBrHzwc44gwOa2ML2Ql6b8b+Ra4LRVymS78AD4uHILQZIjGdIRMTR00GaMCaMYaXQWOMMvZb5lx2bQ5NRfZrFtZ1rNyyZumMcZ5F5bODktFVMHzEjmxpR6R7mfTSVKqu7QC/TC3jgxVzsoBNgHkVg4RdATCLOHu5T5JXP1j/+lm6Rh1Dp+8XJXNSXqU3iX0ekwxEeolYA== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Lj4f+MDY6B0p+gsfL4Fv9GRhywgjQzJDHdmMPxRY0AiuXVLJGO9bKpa/sSOg?= =?us-ascii?Q?uj8ZLOvBtCP7QYPJqDSeMJ/zEX5ULJSS+ArHZ8lEkWfOj01xhTKsAVSe4ffj?= =?us-ascii?Q?x3Y4mGPr8zsFFyZPN6A5XpttCzeJgp/onvuKq2cJiNvRX/xUj7GtfrFDADZm?= =?us-ascii?Q?tj386uUcVu3Ktlpt+FMW0NHpEUyl+N1vpLnw0zAN+DQuxpVulBNm5cLgdDD0?= =?us-ascii?Q?NIfYPSMvRcM5DdqAGaTQMBeoPUVnGCx57LepkVcYcVBAAGQLmfR4NyN9YDpG?= =?us-ascii?Q?TNSKbEXCIRUyPY6Zn185E8SyyJCZnV9RuJSAUefKHbc7/zmOjXQdjK6Fhibq?= =?us-ascii?Q?Wf5lGcKVMXnAsEFKR4HtTKdjLutuQYYKIhiv/X+GStwguaJTS9smV86/QOWC?= =?us-ascii?Q?I/r35/Kqwf3xgMQeOF50qDEKZeZqC6ukx69NBVvuDzlyHhcJ8FxEPRCsNhtK?= =?us-ascii?Q?yrB/xlAZ6GNtwffhIelcspxojNyYQdr9BNKv5PWYa9fAvuO+EZBWTvhFsYZs?= =?us-ascii?Q?ziEyTFVaLXPxhc/PwO3fG3ez1P6z9aUjJWMQUFnso+cRc4WS/mQcnKtzsSus?= =?us-ascii?Q?7279RiQEy2uVS5TX1LIVNRHrfpDpOlKMxPzBvhoDSmjzLN/EPz12VLpXfGG6?= =?us-ascii?Q?iC/xgDsfpzWXxtQJMgyU8e/be7uVB2Itgc/ymxKnpS9NC/Hb3bq8BfAypqBR?= =?us-ascii?Q?AE2JYAENeSnTJZGqaF19eASWXjJf3nWyIriZL/1+KtzuszXgksWLyjPGPLaa?= =?us-ascii?Q?Wx3wT1qDsEUT1cGX0llFDajCjIn4CSnS37c+xDvxblBdTNCa2hEmkIk2FKdn?= =?us-ascii?Q?1ez5L4B37glDAOun4SM45ocdWSISQfkvsZmDR/sPrqpcbs/Qxc5ddW82p5J3?= =?us-ascii?Q?KvXtTpHwMsQhOYsqt5sVZljo4EAlCCWj3ggLkH0OiKbVP5P8A37N3MolSGFA?= =?us-ascii?Q?4bakETHSu/shNFyVcURR70jVugcbO5E/y2lqdWgRhRg1nKpvrG/YotoSA6XD?= =?us-ascii?Q?WsbwXubZfLYRyjDgTagdFwnSkwBfXxZPWe2Wx1dDQs8GIo1b+GTpIxSAocyG?= =?us-ascii?Q?iPXBoDjfVVvZ7QwS4iV9Lg5LCOu8dts9+1tDW+L03Nsqcf2spor9dhTO/zLS?= =?us-ascii?Q?oarx2nLsDVCcg6iCMd0E0V8NUPiM+7PVOzy8Kv4bongK38RezUCBr7bIDSBd?= =?us-ascii?Q?d7IlCapO270YTtsfodYlx3EaLB+ewFGlLLH8zWREjuuCQV6rvI7Ik92oTySE?= =?us-ascii?Q?YJb8eOHOJxAjNEpyXZ06GGib7SvRS+NkMoa7N6PVHaV3/cXCxMQZX0WHP7FV?= =?us-ascii?Q?WnsOB0SipcGgyH7bzKxfijwoDUmcc3/P8M3hhMBagqb8pA0BETcj9u6TxxQE?= =?us-ascii?Q?AE0WprZ3BIxYyB95bwSFVq/qc1WQj5Tsvfm8GwJqdaN4QLW4apdlTInL8VOL?= =?us-ascii?Q?scmeFwXQR3HVt09D1PKmD7TzZSuKn99oAORHsoTHwsll0DTo7WMHR95zu5Xk?= =?us-ascii?Q?Kh8t1Dv8/YsBKkqLNqmMvnCrnzH0s0Nfp3dslv3pBn7IR2SmHT9e9E/OFn7p?= =?us-ascii?Q?WqKc50cYFOXVtskvl7ZmD8t5hS7QEDGdXIQBHztq?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6480.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0095441-c91f-4ce7-4d87-08dbc890d5d2 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2023 06:27:39.0637 (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: MxlU2RFXtNltPejpsFAXeNcpuEZqHBiMaaBqsNAMIUa3W3VC+urE2dPpdJHhbbTmRPNRwW1dzQJ7FGLDY0gCLA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR11MB8118 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,eric.dong@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mWIkeFJWLgtZpOrNrnn3kpS7x7686176AA= 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=KRCi3S5O; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Reviewed-by: Eric Dong -----Original Message----- From: devel@edk2.groups.io On Behalf Of Yuanhao Xie Sent: Wednesday, September 13, 2023 12:26 PM To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH 00/16] MtrrLib modules and Unit test Enhanceme= nt Update MtrrLib modules to handle the absense of Fixed MTRRs Update unit tes= t of Update for the absense of Fixed MTRRs Ray Ni (6): UefiCpuPkg/MtrrLib: Add internal function MtrrLibIsMtrrSupported. UefiCpuPkg/MtrrUnitTest: Update test to cover no-fixed-mtrr cases. UefiCpuPkg/MtrrLib: Fix MtrrGetAllMtrrs to return correct MTRR setting. UefiCpuPkg/MtrrLib: Fix MtrrSetAllMtrrs to handle absent fixed MTRRs. UefiCpuPkg/MtrrLib: Update APIs related to set memory attributes. UefiCpuPkg/CpuDxe: Update RefreshMemoryAttributesFromMtrr. YuanhaoXie (10): UefiCpuPkg/MtrrUnitTest: Update the Unit Test for IsMtrrSupported(). UefiCpuPkg/MtrrUnitTest: Update UnitTestGetFirmwareVariableMtrrCount. UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetDefaultMemoryType. UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetAllMtrrs(). UefiCpuPkg/MtrrLib: Update MtrrGetFixedMtrr(). UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrGetFixedMtrr(). UefiCpuPkg/MtrrUnitTest: Update UnitTestMtrrSetAllMtrrs(). UefiCpuPkg/MtrrLib: Add API MtrrGetMemoryAttributesInMtrrSettings. UefiCpuPkg/MtrrLib: Improve MtrrDebugPrintAllMtrrsWorker. UefiCpuPkg/MtrrUnitTest: Add Unit test of setting/getting memory attributes UefiCpuPkg/CpuDxe/CpuDxe.c | 309 ++++++++++++++= ++++++++++++++++++++++-----------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------- UefiCpuPkg/Include/Library/MtrrLib.h | 32 ++++++++++++++= +++++++++++++++--- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 391 ++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++----------------------------------------= ---------------------------------------------------------------------------= -- UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c | 244 ++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++-------------------------------------------------------------= ----- UefiCpuPkg/Library/MtrrLib/UnitTest/Support.c | 24 ++++++++++++++= +--------- 5 files changed, 532 insertions(+), 468 deletions(-) -- 2.36.1.windows.1 -=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 (#109434): https://edk2.groups.io/g/devel/message/109434 Mute This Topic: https://groups.io/mt/101331015/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-