From 31fe742339b4ddcfa43d95fb5e52d60e7b3b60a3 Mon Sep 17 00:00:00 2001 From: Bejean Mosher Date: Wed, 26 Oct 2022 11:52:48 -0400 Subject: [PATCH] [RPL/ADL] L2 CAT not getting enabled when TCC enabled. FspsUpdUpdateLIb was not enabling FspsUpd->FspsConfig.L2QosEnumerationEn based on PLATFORM_ADLS, which is no longer used. L2QosEnumerationEn is present in ADL-P,S,PS, and RPL-S,P FSP UPD, just not ADL-N, so need to prevent compiling this code for that platform only. Signed-off-by: Bejean Mosher --- .../Library/FspsUpdUpdateLib/FspsUpdUpdateLib.c | 2 +- .../Library/FspsUpdUpdateLib/FspsUpdUpdateLib.inf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.c b/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.c index 41e47c38..94b8340b 100644 --- a/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.c +++ b/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.c @@ -468,7 +468,7 @@ TccModePostMemConfig ( if (IsPchS ()) { FspsUpd->FspsConfig.TccMode = 1; -#ifdef PLATFORM_ADLS +#if FixedPcdGet8(PcdAdlNSupport) == 0 FspsUpd->FspsConfig.L2QosEnumerationEn = 1; #endif } diff --git a/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.inf b/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.inf index 028c37e3..11e87a92 100644 --- a/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.inf +++ b/Platform/AlderlakeBoardPkg/Library/FspsUpdUpdateLib/FspsUpdUpdateLib.inf @@ -49,3 +49,4 @@ [FixedPcd] gPlatformCommonLibTokenSpaceGuid.PcdTccEnabled gPlatformAlderLakeTokenSpaceGuid.PcdAdlLpSupport + gPlatformAlderLakeTokenSpaceGuid.PcdAdlNSupport