From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.2068.1587718061391966965 for ; Fri, 24 Apr 2020 01:47:41 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: eric.dong@intel.com) IronPort-SDR: 33jMh70XudnCE8Lusfi7GJofN2D9tsDLTsUNEGM01h32JfemHYTOPB6r/VJqqPkvW+fy3ydIMN +oQWY4Drfgjw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2020 01:47:39 -0700 IronPort-SDR: yI6GsPliroepL2DXG4q9S1IUXmptSrT57rYBSwLYj+75/TUd8YS+TG7FciFb3AkacerUE8Rt+D HRHxevruoDaA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,311,1583222400"; d="scan'208";a="457837061" Received: from ydong10-desktop.ccr.corp.intel.com ([10.239.158.133]) by fmsmga006.fm.intel.com with ESMTP; 24 Apr 2020 01:47:18 -0700 From: "Dong, Eric" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek , Chandana Kumar Subject: [PATCH v3 0/2] UefiCpuPkg/MpInitLib: Fix ASSERT in AP procedure Date: Fri, 24 Apr 2020 16:47:14 +0800 Message-Id: <20200424084716.877-1-eric.dong@intel.com> X-Mailer: git-send-email 2.23.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2683=0D =0D This patch serial used to fix an ASSERT issue. Because AP can't find=0D the CpuMpData through IDT, it raised the ASSERT.=0D =0D V3:=0D 1. Remove invalid save Volatile Registers process. Refine restore=0D Volatile Registers process.=0D =0D V2: =0D 1. Enhance code comments.=0D 2. Enhance code to remove CpuMpData->ApLoopMode =3D=3D ApInHltLoop check.=0D =0D Cc: Ray Ni =0D Cc: Laszlo Ersek =0D Cc: Chandana Kumar =0D Eric Dong (2): UefiCpuPkg/MpInitLib: Restore IDT context for APs. UefiCpuPkg/MpInitLib: Avoid ApInitReconfig in PEI. UefiCpuPkg/Library/MpInitLib/MpLib.c | 47 ++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 13 deletions(-) --=20 2.23.0.windows.1