From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web08.21180.1660683444680962478 for ; Tue, 16 Aug 2022 13:57:24 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=aWGGaXAT; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: isaac.w.oram@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660683444; x=1692219444; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=VKgbrRLgVyP6kz5XX38i4F7vjPKpOSP3wOs7DJEADwQ=; b=aWGGaXATy9HGqKKl+oYFicb/YBZjmFSPIUIk3VAP4a3G0WDOh8EOE1KA y5nA3iUII2m+Xx5fRPyg2WlP3lJ2mdiVCq+3eMtl8qXsTceIqK/RIFFBz SJsT6+OOqOfNpC7+aUgrtkaSJzZfFKyu2A8aBFNg2ZCEcULcn9ycfSXKN HG5AWcjszI5a+uBVe4h2rsdxYSB52hX1tijNzytV2rxQBbpRBOSND52cn r+db0g9715XT/jrWKv379RbZkhUMF5oe64O/QCpL2tKmFZB5uMaPIJ4LX UH3e1w7DvT9mDe1sip1ubrP/E9JE4hLixfptV5v0XmqXt+j6qcSMARpdx Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10441"; a="378618531" X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="378618531" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 13:57:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,242,1654585200"; d="scan'208";a="852788184" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 16 Aug 2022 13:57:04 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) 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.2375.28; Tue, 16 Aug 2022 13:57:04 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 16 Aug 2022 13:57:04 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Tue, 16 Aug 2022 13:57:04 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.47) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Tue, 16 Aug 2022 13:57:03 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JIyy6IqvVnMALPrdxPHQeA2mtU8xn/W5W+5Er1fWSfUj7EASTozE7T5gnPYiPHAeQP9DgIzhu4aYueLp9qV9kgkyAO0SlE55vROVPC4h57Oco6OOtpHJYHP6eo67zUegW9/HwRx5na1tK/G/s6O3gH8J+BTdTa36TMJ6x26AEydb26Kdcp2rp/U34oXKXsdKVciqyRJ1bHk+ESXw7oND5yUPmrwLl5UaHBKvxNVMi2yh3T4bVsn0MGRASNVR09wvoGsSDrA9vzwFaDnOuhI+I8FSR8cn74/+65ubo3qk500eoAM15huMa2K5QYyfB1yttG30e8/sl4Y+/MoNOeEYpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SvkQu0cNQ4+kozfSlFdx4o89JHOdpkmOwfL3kLn2Mns=; b=e3WMLAH/4NCYeR5rM1GtYEHI38QFvgm1+MnKDyc3XjLUhOfAbtooyABpy5VGZ95l0yd8zGsTtQvC7mPPASaw7dVt0og0K+MNokNDFEvmUzAkKSn1Mn1af5lIhOPN7rBoY5ZUhK0YCQZ2poLtj6Pc6LLkN0LaiN6m15ULHvga2QdRICU7C0vh2XK+l0LPbwHaB8UqEE7HtD3dqai46tOt5nh3cwI1o3eKl6VEqjLdp+TdaLQRKCbcoVrR46XseHWmOyRhjcM39wUuxdhFycw5gcswjxvenAwDHzwWCtbVR5at95uEpCHMA8TWuufsEh5X78IvmSfq753SsOzhr3GxGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SA1PR11MB5801.namprd11.prod.outlook.com (2603:10b6:806:23d::13) by BN6PR11MB3921.namprd11.prod.outlook.com (2603:10b6:405:81::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.15; Tue, 16 Aug 2022 20:57:00 +0000 Received: from SA1PR11MB5801.namprd11.prod.outlook.com ([fe80::2cdd:30d3:f7f5:97a1]) by SA1PR11MB5801.namprd11.prod.outlook.com ([fe80::2cdd:30d3:f7f5:97a1%5]) with mapi id 15.20.5504.027; Tue, 16 Aug 2022 20:57:00 +0000 From: "Oram, Isaac W" To: "mikuback@linux.microsoft.com" , "devel@edk2.groups.io" CC: "Chiu, Chasel" , "Desimone, Nathaniel L" , "Gao, Liming" , "Dong, Eric" Subject: Re: [edk2-platforms][PATCH v1 1/1] MinPlatformPkg: Add FspNvsBuffer compression option Thread-Topic: [edk2-platforms][PATCH v1 1/1] MinPlatformPkg: Add FspNvsBuffer compression option Thread-Index: AQHYqQO+xU3N6iu/KkykY98TmUr9762yETwA Date: Tue, 16 Aug 2022 20:57:00 +0000 Message-ID: References: <20220805194331.1007-1-mikuback@linux.microsoft.com> In-Reply-To: <20220805194331.1007-1-mikuback@linux.microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.17 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6e64b8ac-39fc-4e13-3533-08da7fc9dd79 x-ms-traffictypediagnostic: BN6PR11MB3921:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BYsXv8M9bjeGRvp8xgK6IH5vri08l5W509EYVMdLufHL6nG0m18A7V4CbtWzUxm3Jf3YEO9+UZNapFZx0p7G0b2BoWmulPUoXyaXqVkY8yrEqM3xyD5k7ltQVGJNtMm4ZVA758hjEF/G+h6hWBWU/YR3FyD5EekBbzQBbyMb4roza3fDALTPo9P3etuijNKbHxoeItg75bFC1iocPICtnO2EuVr2XabQbzzc5APreUqAEZwotlRMoBQx4XmgX+ZAWATus1nyy55i0BVhCkN422Zx3C2I9rQCQPtPn4M+saIa1+RINdqIabQium8OEwK+ypp7JqDa+DqAiaHjEsoRW02tupRd8eJD9ce92FURUA77HVddOCTXDvBqqhSUOaUmkZMnff6l3zkUobRFGwMMwzd8AP38QTImrCAVRrVzFgJiDmBBfm2LH/otebZ1w5stCLY+HUBZskdb85I0CLtogL67L5fETbkWkm+b1D+ZR1PwddpTWHFkfvInVXm4A17rISeMpBswrsF/rGRw98+oiTcPYy9DIg1TS0HEAe/np6ysXWTLPoMOumHFCkSSlUxKFjK1ez3P40WM3Oikd5d/3VQ8Q1o/Bbpur/SS6H1hE/uCa7tuDpW319CeP33ziHLjt2a/uzh6Q4khgDZsaWomVhC6MAq7pLxcixjDlzL2E8SOOrmTOBg5gfWUFw3aOGhvabkfyF4NwiGy7q0FLN78jQ21GSFCN/qFxN7I0IlICCgUBBKmqcdGF1ZxwhkqlIuPnZRmvyK5dL1+KuswGQnWYvUT17cFOTeJfi//D5fRKNH8s4SMlip8z8OR/TOYvCMM x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR11MB5801.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(136003)(39860400002)(376002)(346002)(396003)(71200400001)(4326008)(7696005)(9686003)(26005)(6506007)(53546011)(55016003)(33656002)(107886003)(186003)(478600001)(41300700001)(86362001)(38070700005)(122000001)(82960400001)(5660300002)(316002)(2906002)(52536014)(19627235002)(8936002)(83380400001)(45080400002)(38100700002)(8676002)(66446008)(110136005)(66476007)(66556008)(66946007)(54906003)(76116006)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?iQLuhEUNwIsmwmQwfVKu6qS1TombYybI/pzCKvzaj0uaoN7BkGqL8fkxdUqs?= =?us-ascii?Q?NviDBdf2Ol6oiD8TDomwn/A3d6sz6ZAhUJr2Bk096eARnx5tNJPTyYi5gpH+?= =?us-ascii?Q?+aJb76+oQ9S0/kcmpX0anKG1rYLZaLxrhkS5mA3JCzJqyVmJch6MRVUVmt2f?= =?us-ascii?Q?cklZ0wEyBqlq9zMIOXzeUt6zi56gtRtdPc4Bu5Go7gpTV3RTB6qNKiw72nAS?= =?us-ascii?Q?8bScDF4xoVNsYRv4eyHrNv5u8LNUX/cjo2E+ALtbPZF5SKqkLgi/vzi7yjem?= =?us-ascii?Q?wI1rWyPfae+AiJ9oj8BgEJajMWtPok6hdXTaGHu4LuagerTbfUjmYUcjxHBK?= =?us-ascii?Q?elL6PN3pqb8X4rny+SuVjlqTdivcRwtSgAHV1esojuYLYW5yC2pngrI7KuCs?= =?us-ascii?Q?CuwVg8BSgI5xQH7uLAcX1HBiojw6zzogsgrz+6MjL5OknfJt57ZASLDma7oD?= =?us-ascii?Q?uM7+mqtidjXgH6V36ILW5PonNoQ+bnHE0EqrzoasUgTN0At3CujxfFE0r61C?= =?us-ascii?Q?XRTexY1GJoXewW7bz7mdbstJpDsjgUsRRFTF17hbLLOnaVeuRlUfvHbcqsSG?= =?us-ascii?Q?dy5VCAe3/c2B2o/C7GHkZ+rOX7wbHf6e3HZiue5FTW/ti4MxGgTtBKIKrxjT?= =?us-ascii?Q?XO0aR4IA5A1qqWi8LefhWK4sfYeoZuWJy/u52dbfJ0HpOw6UK3QHGokdds/q?= =?us-ascii?Q?nZmEmyTM9OA68II1iQZ2UfxezAo24G7q86ZtCA7OHT1XSGIhd/j596ULvWlM?= =?us-ascii?Q?tzP4bJzgDq73udSK5NokSfuk/EQITst7oC3JQInbtaYt8c9rbS2nbCPTfslC?= =?us-ascii?Q?xHYB6S/biEcZr9KNQ0SR5HGBwSdzqodaY/+04orgnQdQbyp2XLGhvSE2ivEV?= =?us-ascii?Q?EUg6UoTfC1YknDlFLeWZrcArx2lVt8Mgc0hk76oJBvoHq9EHKEmekNE4p61r?= =?us-ascii?Q?tTT6qvkt2BOXzAASFZPCPXCIKO2GKWip3EtpFh7OLbXWyUddPyT0ty0tdKED?= =?us-ascii?Q?Sg7qOkNK4telwHgetBNtFPHH9r2roPjx8HzTfQVKfgS923K/luoPqTMcvEs3?= =?us-ascii?Q?LUFtHCet5jLp9Aup0VvriF3+pvy3ir43mWotzobTehMxKezBJxV2gzoBRXdl?= =?us-ascii?Q?CXzabIuCiqskPd5kqU2Ma6+4dOfgGnlEky4Hq4rWu7zY7nDWz+8PDBxpyWSY?= =?us-ascii?Q?Yq2kIUGlPGBSf3DmAEKQe2qDy3pRif/5rK0AMH4WkEEholyRf+Ct6mlrDN4+?= =?us-ascii?Q?4xwLHeNY2HYSY2BI4OP3VgXeTTWNAWvyqcE1mCpEt+5sBQnX4Tw6DL69uVyN?= =?us-ascii?Q?NskVFHavQ+BbTieEFkxNRAXonhmqDoavt4ywmORqvH7C3u4HYvTe1GOn/pCa?= =?us-ascii?Q?KtIavRcz65ofi5RhmGXPiYooIsbsKATABaB1GIyCnOIprb9taAgUOcYyRXue?= =?us-ascii?Q?27qyz0OYhSa7XbFuR7xKhy9bCxQ7tAhxGUIEtHVAxrks3j1DkTkpVlz3KRR2?= =?us-ascii?Q?B6xqFO16kRDaTl3jUsWLQkTgv6SnxoqZD4lsVMFIAXi2QpCqpafPRDxY8EC6?= =?us-ascii?Q?eJoWNhAKFWban/YLOudVYByCQxR6x3TcsbPSEpdL?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA1PR11MB5801.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e64b8ac-39fc-4e13-3533-08da7fc9dd79 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2022 20:57:00.7052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vKssqMedUqd/dVrcxNkXf3px8JsfwgGMApq5btSMF/QRYL3jO6lbcxQ+i0sgWqROaxPOzLyuysLmSXH78bvtdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3921 Return-Path: isaac.w.oram@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Michael,=20 I have not been able to apply this patch. Can you rebase and resend a V2? Thanks, Isaac -----Original Message----- From: mikuback@linux.microsoft.com =20 Sent: Friday, August 5, 2022 12:44 PM To: devel@edk2.groups.io Cc: Chiu, Chasel ; Desimone, Nathaniel L ; Oram, Isaac W ; Gao, Liming = ; Dong, Eric Subject: [edk2-platforms][PATCH v1 1/1] MinPlatformPkg: Add FspNvsBuffer co= mpression option From: Michael Kubacki Adds a PCD called "PcdEnableCompressedFspNvsBuffer" that allows the "FspNvs= Buffer" UEFI variable data to be saved as compressed data. Especially due to the nature of the data saved in this variable, it compres= ses well. For example, it has been found to reduce ~63KB of data to ~13KB. = Boot time impact has been found to be negligible. The default value is FALSE to keep default behavior consistent. Decompression can be performed on the variable data using the standard Uefi= DecompressLib. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Isaac Oram Cc: Liming Gao Cc: Eric Dong Signed-off-by: Michael Kubacki --- Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemoryConfig= .c | 62 ++++++++++++++++---- Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemoryConfig= .inf | 4 ++ Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec = | 6 ++ Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc = | 1 + 4 files changed, 60 insertions(+), 13 deletions(-) diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/Save= MemoryConfig.c b/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/= SaveMemoryConfig.c index 0215e8eeddfb..95b8cef8b32b 100644 --- a/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemoryC= onfig.c +++ b/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemo +++ ryConfig.c @@ -3,6 +3,7 @@ exists, and saves the data to nvRAM. =20 Copyright (c) 2017 - 2022, Intel Corporation. All rights reserved.
+Copyright (c) Microsoft Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent =20 **/ @@ -10,6 +11,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #include +#include #include #include #include @@ -19,6 +21,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include #include #includ= e +#include #include #include =20 @@ -38,20 +41,26 @@ SaveMemoryConfigEntryPoint ( IN EFI_SYSTEM_TABLE *SystemTable ) { - EFI_STATUS Status; - EFI_HOB_GUID_TYPE *GuidHob; - VOID *HobData; - VOID *VariableData; - UINTN DataSize; - UINTN BufferSize; - BOOLEAN DataIsIdentical; + EFI_STATUS Status; + EFI_HOB_GUID_TYPE *GuidHob; + VOID *HobData; + VOID *VariableData; + UINTN DataSize; + UINTN BufferSize; + BOOLEAN DataIsIdentical; + VOID *CompressedData; + UINT64 CompressedSize; + UINTN CompressedAllocationPages; =20 - DataSize =3D 0; - BufferSize =3D 0; - VariableData =3D NULL; - GuidHob =3D NULL; - HobData =3D NULL; - DataIsIdentical =3D FALSE; + DataSize =3D 0; + BufferSize =3D 0; + VariableData =3D NULL; + GuidHob =3D NULL; + HobData =3D NULL; + DataIsIdentical =3D FALSE; + CompressedData =3D NULL; + CompressedSize =3D 0; + CompressedAllocationPages =3D 0; =20 // // Search for the Memory Configuration GUID HOB. If it is not present, = then @@ -73,6 +82,29 @@ SaveMemoryConfigEntryPoint ( } } =20 + if (PcdGetBool (PcdEnableCompressedFspNvsBuffer)) { + if (DataSize > 0) { + CompressedAllocationPages =3D EFI_SIZE_TO_PAGES (DataSize); + CompressedData =3D AllocatePages (CompressedAllocationPag= es); + if (CompressedData =3D=3D NULL) { + DEBUG ((DEBUG_ERROR, "[%a] - Failed to allocate compressed data bu= ffer.\n", __FUNCTION__)); + ASSERT_EFI_ERROR (EFI_OUT_OF_RESOURCES); + return EFI_OUT_OF_RESOURCES; + } + + CompressedSize =3D EFI_PAGES_TO_SIZE (CompressedAllocationPages); + Status =3D Compress (HobData, DataSize, CompressedData, &Com= pressedSize); + if (EFI_ERROR (Status)) { + DEBUG ((DEBUG_ERROR, "[%a] - failed to compress data. Status =3D %= r\n", __FUNCTION__, Status)); + ASSERT_EFI_ERROR (Status); + return Status; + } + } + + HobData =3D CompressedData; + DataSize =3D (UINTN)CompressedSize; + } + if (HobData !=3D NULL) { DEBUG ((DEBUG_INFO, "FspNvsHob.NvsDataLength:%d\n", DataSize)); DEBUG ((DEBUG_INFO, "FspNvsHob.NvsDataPtr : 0x%x\n", HobData)); @@ -136,6 +168,10 @@ SaveMemoryConfigEntryPoint ( DEBUG((DEBUG_ERROR, "Memory S3 Data HOB was not found\n")); } =20 + if (CompressedData !=3D NULL) { + FreePages (CompressedData, CompressedAllocationPages); } + // // This driver does not produce any protocol services, so always unload = it. // diff --git a/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/Save= MemoryConfig.inf b/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfi= g/SaveMemoryConfig.inf index 61e85a658693..0f12deb131ca 100644 --- a/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemoryC= onfig.inf +++ b/Platform/Intel/MinPlatformPkg/FspWrapper/SaveMemoryConfig/SaveMemo +++ ryConfig.inf @@ -26,6 +26,7 @@ [LibraryClasses] LargeVariableReadLib LargeVariableWriteLib BaseLib + CompressLib =20 [Packages] MdePkg/MdePkg.dec @@ -45,6 +46,9 @@ [Guids] gFspNonVolatileStorageHob2Guid ## CONSUMES gFspNvsBufferVariableGuid ## PRODUCES =20 +[Pcd] + gMinPlatformPkgTokenSpaceGuid.PcdEnableCompressedFspNvsBuffer + [Depex] gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid \ No newline at end of file diff --git a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec b/Platform/In= tel/MinPlatformPkg/MinPlatformPkg.dec index db0a19066f11..49e1f070f9ab 100644 --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dec @@ -305,6 +305,12 @@ [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic,= PcdsDynamicEx] =20 gMinPlatformPkgTokenSpaceGuid.PcdPlatformMemoryCheckLevel|0|UINT32|0x300= 00009 =20 + ## Controls whether the FSP NVS buffer is saved as compressed data. + # Data compression can significantly reduce variable storage usage for F= SP NVS buffer data. + # Platforms that choose to compress the data will need to decompress=20 + the variable data upon # extraction. + =20 + gMinPlatformPkgTokenSpaceGuid.PcdEnableCompressedFspNvsBuffer|FALSE|BO + OLEAN|0x30000010 + ## This PCD is to control which device is the potential trusted console = input device.

# For example:
# USB Short Form: UsbHID(0xFFFF,0xFFFF,0x1,0x1)
diff --git a/Platfor= m/Intel/MinPlatformPkg/MinPlatformPkg.dsc b/Platform/Intel/MinPlatformPkg/M= inPlatformPkg.dsc index 09aa6fe4d51c..ae170f87d548 100644 --- a/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc +++ b/Platform/Intel/MinPlatformPkg/MinPlatformPkg.dsc @@ -106,6 +106,7 @@ [LibraryClasses.common.DXE_DRIVER] FspWrapperPlatformLib|MinPlatformPkg/FspWrapper/Library/DxeFspWrapperPla= tformLib/DxeFspWrapperPlatformLib.inf TestPointCheckLib|MinPlatformPkg/Test/Library/TestPointCheckLib/DxeTestP= ointCheckLib.inf TestPointLib|MinPlatformPkg/Test/Library/TestPointLib/DxeTestPointLib.in= f + CompressLib|MinPlatformPkg/Library/CompressLib/CompressLib.inf =20 [LibraryClasses.common.DXE_SMM_DRIVER] TestPointCheckLib|MinPlatformPkg/Test/Library/TestPointCheckLib/SmmTestP= ointCheckLib.inf -- 2.28.0.windows.1