From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com []) by mx.groups.io with SMTP id smtpd.web11.9363.1616744201579061561 for ; Fri, 26 Mar 2021 00:36:42 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=fail (domain: intel.com, ip: , mailfrom: ray.ni@intel.com) IronPort-SDR: E2bdjhp3jLt1AkDc3tNPRM0xEfOtqzK2rdt8juDYzou3v3v/gJ5Fql7byL42QcWbiCaud1Qghw u/MKXEP7bgSw== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="252453112" X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="252453112" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2021 00:36:41 -0700 IronPort-SDR: 8NoLXMzaFKa4i0NX7nnroTJgl6IQdFxhkJSnn8X2NxX4x/VD8taUUvNveiQiuSL0vjwbhpWiNh 6AeRaxAiKsbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="608800406" Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga005.fm.intel.com with ESMTP; 26 Mar 2021 00:36:40 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Rangasai V Chaganty Subject: [PATCH 1/3] IntelSiliconPkg: Define PCDs for microcode location in flash Date: Fri, 26 Mar 2021 15:36:27 +0800 Message-Id: <20210326073629.1383-2-ray.ni@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 In-Reply-To: <20210326073629.1383-1-ray.ni@intel.com> References: <20210326073629.1383-1-ray.ni@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 3 PCDs are defined assuming that microcode is put in the end of a FV: PcdFlashFvMicrocodeBase: The base address of the microcode FV PcdFlashFvMicrocodeSize: The size of the microcode FV PcdFlashMicrocodeOffset: The microcode offset relative to the FV base address The 3 new PCDs are to replace the following existing PCDs in MinPlatformPkg and IntelFsp2WrapperPkg. The ones in MinPlatformPkg will be removed in a separate patch. The ones in IntelFsp2WrapperPkg will be re-positioned as only using inside IntelFsp2WrapperPkg\Library\SecFspWrapperPlatformSecLibSample. Defining PCDs in IntelSiliconPkg is because certain close-source silicon code depends on these PCDs but the silicon code cannot depend on MinPlatformPkg. MinPlatformPkg contains the below 3 PCDs: PcdFlashFvMicrocodeBase: Same meaning as IntelSiliconPkg.PcdFlashFvMicrocodeBase PcdFlashFvMicrocodeSize: Same meaning as IntelSiliconPkg.PcdFlashFvMicrocodeSize PcdFlashFvMicrocodeOffset: The FV offset relative to the firmware base address. Note: MinPlatformPkg doesn't contain the PCD that tells the microcode offset relative to the FV base address. IntelFsp2WrapperPkg contains the below 3 PCDs: PcdCpuMicrocodePatchAddress: Same meaning as IntelSiliconPkg.PcdFlashFvMicrocodeBase PcdCpuMicrocodePatchRegionSize: Same meaning as IntelSiliconPkg.PcdFlashFvMicrocodeSize PcdFlashMicrocodeOffset: Same meaning as IntelSiliconPkg.PcdFlashMicrocodeOffset Signed-off-by: Ray Ni Cc: Rangasai V Chaganty --- Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec b/Silicon/In= tel/IntelSiliconPkg/IntelSiliconPkg.dec index 4a2cbca5..6611c3af 100644 --- a/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec +++ b/Silicon/Intel/IntelSiliconPkg/IntelSiliconPkg.dec @@ -3,7 +3,7 @@ #=0D # This package provides common open source Intel silicon modules.=0D #=0D -# Copyright (c) 2016 - 2020, Intel Corporation. All rights reserved.
=0D +# Copyright (c) 2016 - 2021, Intel Corporation. All rights reserved.
=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D ##=0D @@ -90,6 +90,13 @@ # @Prompt Error code for VTd error.=0D gIntelSiliconPkgTokenSpaceGuid.PcdErrorCodeVTdError|0x02008000|UINT32|0x= 00000005=0D =0D + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase|0|UINT32|0x000000= 07=0D + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize|0|UINT32|0x000000= 08=0D +=0D + ## This is the microcode offset relative to the FV base address.=0D + # Microcode address equals to PcdFlashFvMicrocodeBase + PcdFlashMicroco= deOffset.=0D + gIntelSiliconPkgTokenSpaceGuid.PcdFlashMicrocodeOffset|0|UINT32|0x000000= 0A=0D +=0D [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]=0D ## This is the GUID of the FFS which contains the Graphics Video BIOS Ta= ble (VBT)=0D # The VBT content is stored as a RAW section which is consumed by GOP PE= I/UEFI driver.=0D --=20 2.27.0.windows.1