From nobody Mon Feb 9 01:20:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+73348+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+73348+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1616744206; cv=none; d=zohomail.com; s=zohoarc; b=k7bacl70SaOHg7x8EctWAU6Cb6BZa78ijof/JmqbPh4b8uJ/NuNWGcU4HsbCya0sVye23yA0uKtR/RE5pcFwVVRdhh0u5abFfRy2ndLYaAy36wEZ29hmdesqI+hUGNnMu3PqIWQtn04YMfRb7Z2vIEej7/pPHG6U1RrIIiplVto= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1616744206; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=+Azkvy06rUpEx8woqbFwcAz/tjJOVR1UOGOj342Wicg=; b=du6l2625GIiwFSbkTEdFqnDNjuwG42CC6p9sNUB0Sh58fRoc0iJioTMS2KxEbVNBA+pSyv48eFDbUCmAI0o65sBaBitwXGRN1f5FyPgmfwaOhi48q4AqPcYY+wKIhMISVe0biDQ6ABwEXuDvduWHfvbdzU4SE7Y/BYYOrUbXJQM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+73348+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1616744206424442.87607000532455; Fri, 26 Mar 2021 00:36:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id UwmyYY1788612xCBR0ozUZ0c; Fri, 26 Mar 2021 00:36:46 -0700 X-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:45 -0700 IronPort-SDR: UoJas344sp09085wuZztFeG/TlDEAvIZ5Is7EqYC4cjuEAgFWHMw0i33R2WEeWHByzzg9uiaU7 WoGcVS+0h3aA== X-IronPort-AV: E=McAfee;i="6000,8403,9934"; a="252453133" X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="252453133" X-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:43 -0700 IronPort-SDR: VYIP7ysQhV/LZX/RdT5U6WCiS6E1BFnT2GAcZAOCD/RbN2Ttb13Q48ir+KHFEd/5OQVFvG5tD/ 9UqJFzXTmy0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,279,1610438400"; d="scan'208";a="608800412" X-Received: from ray-dev.ccr.corp.intel.com ([10.239.158.87]) by fmsmga005.fm.intel.com with ESMTP; 26 Mar 2021 00:36:41 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Liming Gao , Eric Dong Subject: [edk2-devel] [PATCH 2/3] MinPlatformPkg: Use the microcode PCDs defined in IntelSiliconPkg Date: Fri, 26 Mar 2021 15:36:28 +0800 Message-Id: <20210326073629.1383-3-ray.ni@intel.com> In-Reply-To: <20210326073629.1383-1-ray.ni@intel.com> References: <20210326073629.1383-1-ray.ni@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com X-Gm-Message-State: A2SsxWgAtfI0sDx677iSxubox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1616744206; bh=IwjdBUDkk+vCVBqnhDyANgmrWYQvWxg9NRTR8C/3G2o=; h=Cc:Date:From:Reply-To:Subject:To; b=WJk0MomfZTLRDdoBu9hx242qjllL+qRIv6mdBQmVdb75iYTP4HW9GotTM+RZkfsqN+p AFBMqJVf74nD/OgdUygCNOUhRKtN1DItQ2c4MZjYIlpsWndv9me+4bN8XkEElj/w+Dwvl cg3+qEyOSJLLN8l1k4SxnSKymHTr7ElL7NI= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The microcode PCDs in MinPlatformPkg will be removed in a separate patch. Signed-off-by: Ray Ni Cc: Chasel Chiu Cc: Nate DeSimone Cc: Liming Gao Cc: Eric Dong --- .../Flash/SpiFvbService/SpiFvbServiceSmm.inf | 7 ++++--- .../Flash/SpiFvbService/SpiFvbServiceStandaloneMm.inf | 7 ++++--- .../SecFspWrapperPlatformSecLib.inf | 9 +++++---- .../Library/SecFspWrapperPlatformSecLib/SecRamInitData.c | 6 +++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServic= eSmm.inf b/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServiceS= mm.inf index 10e51e11..0028cc99 100644 --- a/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServiceSmm.inf +++ b/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServiceSmm.inf @@ -1,7 +1,7 @@ ### @file # Component description file for the Serial Flash device Runtime driver. # -# Copyright (c) 2017-2019, Intel Corporation. All rights reserved.
+# Copyright (c) 2017-2021, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -38,6 +38,7 @@ [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec + IntelSiliconPkg/IntelSiliconPkg.dec MinPlatformPkg/MinPlatformPkg.dec =20 [Pcd] @@ -45,8 +46,8 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUM= ES gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize ## CONSUM= ES gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize ## CONSUM= ES - gMinPlatformPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## CONSUM= ES - gMinPlatformPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize ## CONSUM= ES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## CONSUM= ES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize ## CONSUM= ES =20 [Sources] FvbInfo.c diff --git a/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServic= eStandaloneMm.inf b/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFv= bServiceStandaloneMm.inf index 9f08d367..8071c6b7 100644 --- a/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServiceStanda= loneMm.inf +++ b/Platform/Intel/MinPlatformPkg/Flash/SpiFvbService/SpiFvbServiceStanda= loneMm.inf @@ -1,7 +1,7 @@ ### @file # Component description file for the Serial Flash device Standalone MM dri= ver. # -# Copyright (c) 2017-2019, Intel Corporation. All rights reserved.
+# Copyright (c) 2017-2021, Intel Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# # SPDX-License-Identifier: BSD-2-Clause-Patent @@ -37,6 +37,7 @@ [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec + IntelSiliconPkg/IntelSiliconPkg.dec MinPlatformPkg/MinPlatformPkg.dec =20 [Pcd] @@ -44,8 +45,8 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUM= ES gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize ## CONSUM= ES gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize ## CONSUM= ES - gMinPlatformPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## CONSUM= ES - gMinPlatformPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize ## CONSUM= ES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## CONSUM= ES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize ## CONSUM= ES =20 [Sources] FvbInfo.c diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/SecFspWrapperPlatformSecLib.inf b/Platform/Intel/MinPlatform= Pkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWrapperPlatformSec= Lib.inf index 4f3fa9fa..9fe5960b 100644 --- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatfor= mSecLib/SecFspWrapperPlatformSecLib.inf +++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatfor= mSecLib/SecFspWrapperPlatformSecLib.inf @@ -1,7 +1,7 @@ ## @file # Provide FSP wrapper platform sec related function. # -# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.
+# Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -62,6 +62,7 @@ UefiCpuPkg/UefiCpuPkg.dec IntelFsp2Pkg/IntelFsp2Pkg.dec IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.dec + IntelSiliconPkg/IntelSiliconPkg.dec MinPlatformPkg/MinPlatformPkg.dec =20 [LibraryClasses] @@ -88,9 +89,9 @@ gMinPlatformPkgTokenSpaceGuid.PcdSecSerialPortDebugEnable ## C= ONSUMES =20 [FixedPcd] - gIntelFsp2WrapperTokenSpaceGuid.PcdCpuMicrocodePatchAddress ## C= ONSUMES - gIntelFsp2WrapperTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize ## C= ONSUMES - gIntelFsp2WrapperTokenSpaceGuid.PcdFlashMicrocodeOffset ## C= ONSUMES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## C= ONSUMES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashFvMicrocodeSize ## C= ONSUMES + gIntelSiliconPkgTokenSpaceGuid.PcdFlashMicrocodeOffset ## C= ONSUMES gIntelFsp2WrapperTokenSpaceGuid.PcdFlashCodeCacheAddress ## C= ONSUMES gIntelFsp2WrapperTokenSpaceGuid.PcdFlashCodeCacheSize ## C= ONSUMES gIntelFsp2WrapperTokenSpaceGuid.PcdFspmBaseAddress ## C= ONSUMES diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/SecRamInitData.c b/Platform/Intel/MinPlatformPkg/FspWrapper/= Library/SecFspWrapperPlatformSecLib/SecRamInitData.c index b356327b..b4e10cca 100644 --- a/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatfor= mSecLib/SecRamInitData.c +++ b/Platform/Intel/MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatfor= mSecLib/SecRamInitData.c @@ -1,7 +1,7 @@ /** @file Provide TempRamInitParams data. =20 -Copyright (c) 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -24,8 +24,8 @@ GLOBAL_REMOVE_IF_UNREFERENCED CONST FSPT_UPD_CORE_DATA Fs= ptUpdDataPtr =3D { } }, { - ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchAddress) + FixedPcdGet32 (= PcdFlashMicrocodeOffset)), - ((UINT32)FixedPcdGet64 (PcdCpuMicrocodePatchRegionSize) - FixedPcdGet3= 2 (PcdFlashMicrocodeOffset)), + FixedPcdGet32 (PcdFlashFvMicrocodeBase) + FixedPcdGet32 (PcdFlashMicro= codeOffset), + FixedPcdGet32 (PcdFlashFvMicrocodeSize) - FixedPcdGet32 (PcdFlashMicro= codeOffset), 0, // Set CodeRegionBase as 0, so that caching will be 4GB-(C= odeRegionSize > LLCSize ? LLCSize : CodeRegionSize) will be used. FixedPcdGet32 (PcdFlashCodeCacheSize), { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, --=20 2.27.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#73348): https://edk2.groups.io/g/devel/message/73348 Mute This Topic: https://groups.io/mt/81622873/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-