From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web08.10350.1664283460996586665 for ; Tue, 27 Sep 2022 05:57:41 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=SQxPWEpU; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: zhihao.li@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664283460; x=1695819460; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9Y55QLKbcYj7QyWZV2HNvABNxtw/eQyUA9pNh39FG9A=; b=SQxPWEpUOfBNqddT3gqg9u9XuYLXMql+ZSoOS7iClKhFW7bzKERx6aqD 2LdOkt9QcBdchUpilbB43YdsF9Kn4H3Fwa9M8A08t7Hkm19TOAMwoan/B SYV6jeo4Vqxlhnorlgb2fHVSgm+/qbZg6aPBsArrGvlt47iV3fSKlTnn8 5YU+1p9Ft1NCQTC9gl8kXcMDKEE2M9jBwzQbmOsJW0i3Ya+uivevt1hzU m2mwOAnOqP0M7J2m9NHImCfOLMSzBl359PFsTqgiKk83cxY9X22RVo03c vCM3h6fnWhzdWwlCRhTTR59Z9wwg00bePIYVe7ntwqHr++rXOtk7XC5j3 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="301285450" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="301285450" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 05:57:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="747031876" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="747031876" Received: from win_li.ccr.corp.intel.com ([10.239.157.44]) by orsmga004.jf.intel.com with ESMTP; 27 Sep 2022 05:57:39 -0700 From: "Li, Zhihao" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni Subject: [PATCH v1 1/1] UefiCpuPkg: Reset a parameter when BSP Exit in CPU relaxed mode. Date: Tue, 27 Sep 2022 20:57:38 +0800 Message-Id: <20220927125738.3043-1-zhihao.li@intel.com> X-Mailer: git-send-email 2.26.2.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Zhihao Li REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4083 In CPU relaxed mode, it doesn't reset the value of mSmmMpSyncData->AllApArrivedWithException when BSP exit smm mode. So this patch will reset this variable. Cc: Eric Dong Cc: Ray Ni Signed-off-by: Zhihao Li --- UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxe= Smm/MpService.c index 13c2cb8da4c3..c79da418e37c 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c @@ -696,8 +696,9 @@ BSPHandler ( //=0D // Allow APs to check in from this point on=0D //=0D - *mSmmMpSyncData->Counter =3D 0;=0D - *mSmmMpSyncData->AllCpusInSync =3D FALSE;=0D + *mSmmMpSyncData->Counter =3D 0;=0D + *mSmmMpSyncData->AllCpusInSync =3D FALSE;=0D + mSmmMpSyncData->AllApArrivedWithException =3D FALSE;=0D }=0D =0D /**=0D --=20 2.26.2.windows.1