From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.3176.1578535466380592778 for ; Wed, 08 Jan 2020 18:04:26 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: liming.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 18:04:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,412,1571727600"; d="scan'208";a="233961048" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga002.jf.intel.com with ESMTP; 08 Jan 2020 18:04:25 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 8 Jan 2020 18:04:25 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 8 Jan 2020 18:04:25 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 8 Jan 2020 18:04:24 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.197]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.89]) with mapi id 14.03.0439.000; Thu, 9 Jan 2020 10:04:23 +0800 From: "Liming Gao" To: "Fu, Siyuan" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Dong, Eric" , "Ni, Ray" , "lersek@redhat.com" Subject: Re: [Patch 0/2] Shadow microcode patch according to FIT microcode table. Thread-Topic: [Patch 0/2] Shadow microcode patch according to FIT microcode table. Thread-Index: AQHVxdu154+tLxRvyUi+syLhXchwFKfhliMg Date: Thu, 9 Jan 2020 02:04:22 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E58EC3F@SHSMSX104.ccr.corp.intel.com> References: <20200108042525.408-1-siyuan.fu@intel.com> In-Reply-To: <20200108042525.408-1-siyuan.fu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: liming.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Siyuan: This is new feature, please add it into https://github.com/tianocore/tian= ocore.github.io/wiki/EDK-II-Release-Planning And, FIT header file is moved from edk2-platform to edk2. After this chan= ge, you also need to remove the one in edk2-platform. Right? Thanks Liming -----Original Message----- From: Fu, Siyuan =20 Sent: 2020=1B$BG/=1B(B1=1B$B7n=1B(B8=1B$BF|=1B(B 12:25 To: devel@edk2.groups.io Cc: Kinney, Michael D ; Gao, Liming ; Dong, Eric ; Ni, Ray ; = lersek@redhat.com Subject: [Patch 0/2] Shadow microcode patch according to FIT microcode tabl= e. The existing MpInitLib will shadow the microcode update patches from flash = to memory and this is done by searching microcode region specified by PCD P= cdCpuMicrocodePatchAddress and PcdCpuMicrocodePatchRegionSize. This brings a limition to platform FW that all the microcode patches must b= e 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). 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 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/Microcode.c | 255 +++++++++++++----- UefiCpuPkg/Library/MpInitLib/MpLib.c | 4 +- UefiCpuPkg/Library/MpInitLib/MpLib.h | 7 +- 4 files changed, 276 insertions(+), 66 deletions(-) create mode 100644 Md= ePkg/Include/IndustryStandard/FirmwareInterfaceTable.h -- 2.19.1.windows.1