From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web09.7898.1580966640586255178 for ; Wed, 05 Feb 2020 21:24:01 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: hao.a.wu@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2020 21:24:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,408,1574150400"; d="scan'208";a="264483513" Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.8]) by fmsmga002.fm.intel.com with ESMTP; 05 Feb 2020 21:23:58 -0800 From: "Wu, Hao A" To: devel@edk2.groups.io Cc: Hao A Wu , Michael Kubacki , Michael D Kinney , Eric Dong , Ray Ni , Laszlo Ersek Subject: [PATCH v1 0/2] Fix backward incompatible CPU_MP_DATA struct change Date: Thu, 6 Feb 2020 13:23:54 +0800 Message-Id: <20200206052356.3672-1-hao.a.wu@intel.com> X-Mailer: git-send-email 2.12.0.windows.1 The series will resolve a backward compatibility issue with pre-built binaries (e.g. FSP) introduced by commit 88bd0661661. The relocation of 'MicrocodePatchRegionSize' and 'MicrocodePatchAddress' fields in structure CPU_MP_DATA may cause access issue for platforms that use pre-built FSP binary, since the offset of these microcode related fields in CPU_MP_DATA can be different between PEI phase (in the pre-built binary) and DXE phase (in current code implementation). The series will use the newly introduced EDKII microcode patch HOB instead for the DXE phase to get the information of the loaded (done in PEI phase) microcode patches data. Cc: Michael Kubacki Cc: Michael D Kinney Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Hao A Wu (2): Revert UefiCpuPkg/MpInitLib: Relocate microcode patch fields in CPU_MP_DATA UefiCpuPkg/MpInitLib: Not pass microcode info between archs in CPU_MP_DATA UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 3 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 27 +++++++++++- UefiCpuPkg/Library/MpInitLib/Microcode.c | 43 ++++++++++++++++++++ UefiCpuPkg/Library/MpInitLib/MpLib.c | 20 +++++---- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 3 +- 5 files changed, 82 insertions(+), 14 deletions(-) -- 2.12.0.windows.1