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 DF6B878003C for ; Tue, 21 Nov 2023 07:40:05 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=yWGxWIApTQmJHHUXl4h997Yr2BIar/3ySn4ZKclXpzI=; 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=1700552404; v=1; b=dzXPndCMV0xW/7alv7MBXxkhaqzkN+35Nl81uKWf9VoDTRucMt5xGQImzv9PT58cwrRQJYW9 JhA9rtX29OhoFJ9HgycKOsf2hY+rORPZxntqY0KC81u8bio7CaqXKfRscG8DGMezU4j7qFssWXs lB0it06/faygFMP6V5NuicdU= X-Received: by 127.0.0.2 with SMTP id t1iNYY7687511x8Xha95Fk96; Mon, 20 Nov 2023 23:40:04 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mx.groups.io with SMTP id smtpd.web11.30780.1700552401980407888 for ; Mon, 20 Nov 2023 23:40:04 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="10449981" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="10449981" X-Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 23:40:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="7989935" X-Received: from shwdeopenlab813.ccr.corp.intel.com ([10.239.55.230]) by fmviesa002.fm.intel.com with ESMTP; 20 Nov 2023 23:40:02 -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 V2 1/3] UefiCpuPkg/MpInitLib:Repeat WakeUpAp of loading microcode,Syncing MTRR. Date: Tue, 21 Nov 2023 15:39:54 +0800 Message-Id: <20231121073956.2741-2-yuanhao.xie@intel.com> In-Reply-To: <20231121073956.2741-1-yuanhao.xie@intel.com> References: <20231121073956.2741-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: kvkZwWJjxB6rEPfUIYOIGRE5x7686176AA= 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=dzXPndCM; 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 This patch replicates the WakeUpAp operation, encompassing both microcode loading and MTRR synchronization, regardless of whether MpHandOff is NULL. The purpose of this patch is to enhance the review process. The separation in this patch is aimed at facilitating a more straightforward review, with the ultimate goal of eliminating the microcode loading functionality for the second time Mp initialization. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index 9a6ec5db5c..e8ffb99874 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -2256,9 +2256,11 @@ MpInitLibInitialize ( // in DXE. // CpuMpData->InitFlag = ApInitReconfig; + WakeUpAP (CpuMpData, TRUE, 0, ApInitializeSync, CpuMpData, TRUE); + } else { + WakeUpAP (CpuMpData, TRUE, 0, ApInitializeSync, CpuMpData, TRUE); } - WakeUpAP (CpuMpData, TRUE, 0, ApInitializeSync, CpuMpData, TRUE); // // Wait for all APs finished initialization // -- 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111522): https://edk2.groups.io/g/devel/message/111522 Mute This Topic: https://groups.io/mt/102724546/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-