From b64aa3f51f8d11e837b52fe0dfdfb3bdc38611c7 Mon Sep 17 00:00:00 2001 From: Sindhura Grandhi Date: Tue, 22 Feb 2022 12:22:39 -0700 Subject: [PATCH] [ADLS] Fix bad DSO failure test case (#1499) This patch fixes the test case where when a bad dso is provided, it will revert back to the default dso settings. TEST= Ran the test case successfully on ADLS board. Signed-off-by: Sindhura Grandhi --- .../Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c b/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c index a4cfd4b9..bfa1dd25 100644 --- a/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c +++ b/Platform/AlderlakeBoardPkg/Library/FspmUpdUpdateLib/FspmUpdUpdateLib.c @@ -129,6 +129,7 @@ TccModePreMemConfig ( // Let FSP know that an error has occured in DSO loading FspmUpd->FspmConfig.TccStreamCfgStatusPreMem = 1; + InvalidateBadDso (); } else if (TccCfgData->TccTuning != 0) { // Setup Watch dog timer WdtReloadAndStart (WDT_TIMEOUT_TCC_DSO, WDT_FLAG_TCC_DSO_IN_PROGRESS); @@ -160,6 +161,9 @@ TccModePreMemConfig ( FspmUpd->FspmConfig.SaGv = PolicyConfig->SaGv; FspmUpd->FspmConfig.DisPgCloseIdleTimeout = PolicyConfig->DisPgCloseIdle; FspmUpd->FspmConfig.PowerDownMode = PolicyConfig->MemPowerDown; + + DEBUG ((DEBUG_INFO, "Dump TCC DSO BIOS settings:\n")); + DumpHex (2, 0, sizeof(BIOS_SETTINGS), PolicyConfig); } } }