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 88987AC02D8 for ; Thu, 23 Nov 2023 01:21:25 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=haM5XlxVatPt5Cjc3rDJ98cyplt+K9+tYZyJeY/YC+8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC: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=1700702484; v=1; b=voZ2Eau+7V4npU+f4DL2SbT1I5lWz5lAmHpHh+MoctJgplniXRjPCJOk0x2svAmf0pCjTEj2 4KOBtZBvHwssb1Pqxsv2xB1LycXxvznwFFH0U0diqAPaJ2lvC384y7sa0/ORIpcaLPng7o6VT+S QjepNPoR+/H3hwDer341NlnQ= X-Received: by 127.0.0.2 with SMTP id 3sP9YY7687511xqjgTcGH79W; Wed, 22 Nov 2023 17:21:24 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web10.82141.1700702483478728643 for ; Wed, 22 Nov 2023 17:21:23 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="423309839" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="423309839" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Nov 2023 17:21:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10902"; a="940448083" X-IronPort-AV: E=Sophos;i="6.04,220,1695711600"; d="scan'208";a="940448083" X-Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 22 Nov 2023 17:21:22 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 22 Nov 2023 17:21:21 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.34 via Frontend Transport; Wed, 22 Nov 2023 17:21:21 -0800 X-Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.40) 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.2507.34; Wed, 22 Nov 2023 17:21:21 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VTGBlzqPSLWzZBDcrI8pmBDZvOPtXsaD4GUZSCYVQf5OSmjqrYcBTA5mx8cIH9YA1hmMTFfp4yvmW8XP5fUur+w0cQhwr0dPkXuY65kj/9eHXrr+TUe57RdUBrG/XgOhDoAgnrkn2Pu03YyinsRMTYFN5uBFnfFNYB58PCy74Ohb331z7j04ccy14qEB/YzKcMlo6ncImxsg22fUTy5TXdRtwERKsI2yzExaXs7syyuWua8NIqC440rhLaO1OInM37XBV+0EANcSrfmG1TgGLMU+uMeBEUCwWhyP8Vz8h1eF0ss6U5ZemG8/wdvqpcefuXudYCogpxdnUaUwGyXuiQ== 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=F6e9IBgvjrDsxP0DqauOdjHPYEptzxOxr2AssS8vo1Y=; b=lIG6Xrl2kBN6zgqGSPxeg/PBOsg6eCedvqqoNdmi4JmNWKpYvcmPLYYH6yl2qXUM+4YtdXVGgsHlUHDHrL4SLA/Y4oXGlu2LPJP2mmzO6oS9L6XfQgjzeiEmtnJP8a5Vxa51aLToYagQV0DcLeO5P0aXTrWwc+ipF4ZgILjgBpOQmO/2+kB1h69W2VNsjOFKxlaySjUZWzA4/sY8M8DYWnem2hknrGflhyd9nclpYY0oiM1Tg/rPkgL25UVZN4Lsh2npCO7nYgFS8TyAygn9vdjgANWmYyLDcuQFXbHuVWMcz9xU3Z/3rDZLv5ZP9PZYULPIxmWMfLB0hCUb6qjZQQ== 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 DM4PR11MB8203.namprd11.prod.outlook.com (2603:10b6:8:187::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Thu, 23 Nov 2023 01:21:19 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858%4]) with mapi id 15.20.7002.028; Thu, 23 Nov 2023 01:21:19 +0000 From: "Ni, Ray" To: "Xie, Yuanhao" , "devel@edk2.groups.io" CC: "Dong, Eric" , "Kumar, Rahul R" , Tom Lendacky , "Laszlo Ersek" Subject: Re: [edk2-devel] [Patch V3 2/3] UefiCpuPkg/MpInitLib: Store MTRRs settings only when CpuCount>1 Thread-Topic: [Patch V3 2/3] UefiCpuPkg/MpInitLib: Store MTRRs settings only when CpuCount>1 Thread-Index: AQHaHQptLoQ7+2WEk0+9bSXO8Q1JXLCHHGiQ Date: Thu, 23 Nov 2023 01:21:18 +0000 Message-ID: References: <20231122060834.3467-1-yuanhao.xie@intel.com> <20231122060834.3467-3-yuanhao.xie@intel.com> In-Reply-To: <20231122060834.3467-3-yuanhao.xie@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|DM4PR11MB8203:EE_ x-ms-office365-filtering-correlation-id: 9cf0b0ff-b02b-4c92-00bc-08dbebc27f08 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: D2+HHh+/bkGrwGCMsawiZmxOrnj++Pso4LEUJa6/vowDebJC9rf4ChPh1eJzPXeCq9vGJks8ZlHpIsLLkDmNfuziBB5yTjcYP3/voPWskNFjfz7DQ9bHBHxaNPYK4d2ZePcTqh9OaZNRA3YLHN1iOUsGodmEbYgmwTFFua7z4GPHWaW4nsDuuOpoDM05anXJb4vHDJ7y1Zh/7PF0PFRCfWxx7tFQp6uAUow0IvtCM/ASiqdnp9JkcxSqnpX7c93vBPX8qCcY2x1WCFqbAVV3Xi/8OA6FNv8+KUDhvZS/ig7cd2DZIFnqQUnZbCww+Av0pLwwXpfV8SrKmaYPpBwX4DF5uH8Xh0VH3UxTI/SJzXZbgn7l2dd3r41rLfFNiCSQUZFvO93i1oSsxU7A8OLMjDU8WBZWdV2XdtHL9aBS6delGDY1LPzG3PJ7xhDV8NE4mcEtpPRJd8WZZMnnD0whtEpWkOloq9jDWxEWsnlE7UQ59qh59UJRvbnTxscKxMcRMgSPxGl0xcxiTzqLzNfmOi+CUKSYgyLsi16u+Xasw9AGfTkAQ9dR5J8pC6numbLhZTer76jhhj+18n2sNFhB+mINwebuPsiP8ifylk5pGFSnVADPLJZQTdBqM6dw1DOA x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?VCDZ/FCZytd0p9dDpcLoQ0dSWyOpBLfxpgHlWk6P6koRNYXlRV0JodKp0UBW?= =?us-ascii?Q?q2EnkpFoi71VYtAPZqqzeqwGXHkjVCmQlU2RMFau3plm9xASGGNgX3sNoVKX?= =?us-ascii?Q?4F0RC8e+JbLmVJMfl902+kMJL8OgF8uSDyZgca3wfT4xBp/9wYAVEcAaPVwX?= =?us-ascii?Q?kpN0sFyORqGaeUM5pIK1fGWA9h2Y7uxC6EQKweoI+I3+4VtjQI3oHP8uilND?= =?us-ascii?Q?Y+f6J6IoKGyWmQaaMsgHFjgBjR6Qd0ykSJTqs++usnInM9HtRcQNYDUSoi8d?= =?us-ascii?Q?mnJuHrRJykaScw+8r4bU1FVZmjO79iB6fR+3XrG8MWCqpcesQwHYYv/ToC68?= =?us-ascii?Q?VOWp67CBnsEiqznQEXDgjzxm6asLc0JbhO3gZpcjxfOLrhyTBDF6vKevpN9M?= =?us-ascii?Q?74FLIJdj2uvkRPTxlvK8WnnxLEUj0gBG12CDGpGgHtq32nrwG0G/0eqLu5gP?= =?us-ascii?Q?EMhrX8Au2oleuQpmXjnZK6l+cmSZyB/+b4UJZ78BP9sZWQTP6k4u3jtmS1Pc?= =?us-ascii?Q?cpuPKJ0ZmJOplD5769AGS9wnjmRvwNS67pUuybUGBnC7ckwjvYEuO/gj2clI?= =?us-ascii?Q?Ao2vM+I+JXSKwXPzbyqwpRdaBULLQEoeZjIpC+BGjj7ThFfstrRiDYZA3lB3?= =?us-ascii?Q?qol/T76Qk9HNk/elHm2a32fTDt7XqnB0YjVdJLcLke9XhUDDx3teEaQNRrJC?= =?us-ascii?Q?CRV6VR/C98PnveVKA0E/HL5ZpvtW5ehqkus+bUEhaMFnxunfNTXai0uDJXgr?= =?us-ascii?Q?HNMraTUBuo/B8TWmjSOLrnvPHkW3PwgAGoONgxdn0vLw0VIelQCTMkyULfUu?= =?us-ascii?Q?ZtX9yRLEiZipFgbBNq4kJMfvA8L+lcyg5pozNAyV3obmOCTfPAbsGxQhf7PY?= =?us-ascii?Q?5n5iXs4ou2ldpCDWLTvXrf31cctJVX2TNPZYvMrTarwN+yYXk7CB5u+y+V9M?= =?us-ascii?Q?M94DJPquQUEiuYkNwxFOUcE72vCJke+4jmnKdxjlz8DYkU5jtw+mQ45fiIPx?= =?us-ascii?Q?MKCLQYCGtiLItvxLJdwssGzkb3K7mVcOOy9Yf0VvWmK1mMZV1DdIDVzarPjV?= =?us-ascii?Q?U/I0d+iiS9J/B7RIELyOI3UJrFYwvnhVkRN6bA0FI4zH/fuKx+khnsU7hmQk?= =?us-ascii?Q?AUaELAAa1JyiZTzlr+w+Jz26/r3nxE2JS/uwOI5I+DxsQIa/1hGwSeRT8hnP?= =?us-ascii?Q?mWMdWDeAx8Jq+ovnCsJQNIukrAZfPx+M51N6IXNwSNR74RpQNKU/QnHiBcN7?= =?us-ascii?Q?qYlYFtRKOBA4cp36I6nOZ+op8pjIy56TySu5KqFMy+JPOqtmARwrF4WZaR+7?= =?us-ascii?Q?82e+VH50djUfq6FXz/kxH8/rX4FnLh87RSIWiwoVuiHs6BriP29/Vw0jw1Wn?= =?us-ascii?Q?DDvVLPpRhyqcuiNFoJqqmsY3pGHACplfNb/9DBRFddidt6jFpp4pge/HniBa?= =?us-ascii?Q?sIrX0QYJDjZS/Fv90xzAqaaRoMshyq+XVwuabGPAgbJh+U0q4Rykzbhv6Snz?= =?us-ascii?Q?DVBbCdAqVUDAX3gF5o/ztoOiyB5oKQj5esvPkn1tCgSUGy4mum7GI8ozGF3y?= =?us-ascii?Q?EQdB5nu/3Qh/iU2k2Kw=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: 9cf0b0ff-b02b-4c92-00bc-08dbebc27f08 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Nov 2023 01:21:19.0096 (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: Y2wulwaBBaqeEjB2riL2j9x1wE9Z3eBn7uHUMVFQqnpzIpdw17xUOXtwoW5xqp+uvHIIaXs55HjM/fKzPJArNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB8203 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: GSbrdQcBSa2fa49uGokAQE5dx7686176AA= 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=voZ2Eau+; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 Reviewed-by: Ray Ni Thanks, Ray > -----Original Message----- > From: Xie, Yuanhao > Sent: Wednesday, November 22, 2023 2:09 PM > To: devel@edk2.groups.io > Cc: Xie, Yuanhao ; Ni, Ray ; > Dong, Eric ; Kumar, Rahul R > ; Tom Lendacky ; > Laszlo Ersek > Subject: [Patch V3 2/3] UefiCpuPkg/MpInitLib: Store MTRRs settings only > when CpuCount>1 >=20 > Store BSP's MTRR setting only when CpuCount>1. >=20 > Cc: Ray Ni > Cc: Eric Dong > Cc: Rahul Kumar > Cc: Tom Lendacky > Cc: Laszlo Ersek > Signed-off-by: Yuanhao Xie > --- > UefiCpuPkg/Library/MpInitLib/MpLib.c | 9 ++++----- > 1 file changed, 4 insertions(+), 5 deletions(-) >=20 > diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c > b/UefiCpuPkg/Library/MpInitLib/MpLib.c > index c26a17e1db..538095d3bb 100644 > --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c > +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c > @@ -2243,15 +2243,14 @@ MpInitLibInitialize ( > MicrocodeDetect (CpuMpData, CpuMpData->BspNumber); > } >=20 > - // > - // Store BSP's MTRR setting > - // > - MtrrGetAllMtrrs (&CpuMpData->MtrrTable); > - > // > // Wakeup APs to do some AP initialize sync (MTRR and/or Microcode). > // > if (CpuMpData->CpuCount > 1) { > + // > + // Store BSP's MTRR setting > + // > + MtrrGetAllMtrrs (&CpuMpData->MtrrTable); > if (MpHandOff !=3D NULL) { > // > // Only needs to use this flag for DXE phase to update the wake up > -- > 2.39.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 (#111637): https://edk2.groups.io/g/devel/message/111637 Mute This Topic: https://groups.io/mt/102744600/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-