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 6885E941294 for ; Wed, 22 Nov 2023 06:09:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=uvm0eualD3QH14Lu9OCeW5NVAuILgGSl2nlfbhHCnDY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700633343; v=1; b=sL3gd83yfnZu6bUSlcqe7f4fOJps/TGp/masU5KSudp6tezwrD5nm/fG9gMfcgrI5vfcNAuY aDKSEsKkp5sxmiD8O5oJsCLbbeQ2yeJcg+fvtrjZlezInAPI0vw3z/FiApbYk3xm0xOywLyIX1O iihuSbCQK2KkAPSc9ulGCaXU= X-Received: by 127.0.0.2 with SMTP id EklkYY7687511xdSQMuekzaU; Tue, 21 Nov 2023 22:09:03 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.13638.1700633335895148945 for ; Tue, 21 Nov 2023 22:09:02 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10901"; a="372166261" X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="372166261" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 22:09:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,217,1695711600"; d="scan'208";a="15129559" X-Received: from shwdeopenlab813.ccr.corp.intel.com ([10.239.55.230]) by fmviesa001.fm.intel.com with ESMTP; 21 Nov 2023 22:09:00 -0800 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: xieyuanh , Ray Ni , Eric Dong , Rahul Kumar , Tom Lendacky , Laszlo Ersek Subject: [edk2-devel] [Patch V3 2/3] UefiCpuPkg/MpInitLib: Store MTRRs settings only when CpuCount>1 Date: Wed, 22 Nov 2023 14:08:33 +0800 Message-Id: <20231122060834.3467-3-yuanhao.xie@intel.com> In-Reply-To: <20231122060834.3467-1-yuanhao.xie@intel.com> References: <20231122060834.3467-1-yuanhao.xie@intel.com> MIME-Version: 1.0 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,yuanhao.xie@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ftj7n2tG7NO2wRhGIGmV1rxax7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=sL3gd83y; 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 Store BSP's MTRR setting only when CpuCount>1. 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(-) 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); } - // - // 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 != NULL) { // // Only needs to use this flag for DXE phase to update the wake up -- 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111596): https://edk2.groups.io/g/devel/message/111596 Mute This Topic: https://groups.io/mt/102744600/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-