From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.3250.1578536050086858825 for ; Wed, 08 Jan 2020 18:14:10 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: siyuan.fu@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 18:14:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,412,1571727600"; d="scan'208";a="421640403" Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga005.fm.intel.com with ESMTP; 08 Jan 2020 18:14:08 -0800 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, liming.gao@intel.com, eric.dong@intel.com, ray.ni@intel.com, lersek@redhat.com, Tom Lendacky Subject: [PATCH v2 0/2] Shadow microcode patch according to FIT microcode table. Date: Thu, 9 Jan 2020 10:14:03 +0800 Message-Id: X-Mailer: git-send-email 2.19.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The existing MpInitLib will shadow the microcode update patches from flash to memory and this is done by searching microcode region specified by PCD PcdCpuMicrocodePatchAddress and PcdCpuMicrocodePatchRegionSize. This brings a limition to platform FW that all the microcode patches must be placed in one continuous flash space. This patch set shadows microcode update according to FIT microcode entries if it's present, otherwise it will fallback to original logic (by PCD). V2: Add Feature PCD for Patch 2/2 for enabling/disabling this support. Patch 1/2: Add FIT header file to MdePkg. Patch 2/2: Update microcode loader to shadow microcode according to FIT. Cc: Michael D Kinney Cc: Liming Gao Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Tom Lendacky Siyuan Fu (2): MdePkg: Add header file for Firmware Interface Table specification. UefiCpuPkg: Shadow microcode patch according to FIT microcode entry. .../IndustryStandard/FirmwareInterfaceTable.h | 76 +++++ UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 1 + UefiCpuPkg/Library/MpInitLib/Microcode.c | 262 +++++++++++++----- UefiCpuPkg/Library/MpInitLib/MpLib.c | 4 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 7 +- UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf | 4 +- UefiCpuPkg/UefiCpuPkg.dec | 6 + 7 files changed, 292 insertions(+), 68 deletions(-) create mode 100644 MdePkg/Include/IndustryStandard/FirmwareInterfaceTable.h -- 2.19.1.windows.1