From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id D55F5740032 for ; Mon, 22 Apr 2024 06:59:10 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=eeaxkn+8JMmnPk1K5SJ8fVRq92seO4xkCcqNXUumPwg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1713769149; v=1; b=svl4M9xgT6hXwMIimSLVNyLaA2NctXIymyc/X5LINktfXWwhS9abo0bQSKimsu4/LENRRE+3 vrcxhCGV8p/dlWQeeoGa0inzNXHkThozg0ZjWrWUQfqhxYvdGNLb4Vi8ZejMCfQVAOqYHLbwcne sFef99CEQ5nQ7YVpF/XD2bPfV/Yqrv2AarSTSFF/2Faik02oHB8wEaRm2Vglr10XH4ouZVYstTd gDvPX1k/BbFCAVQ2LDgjj6DqA/L/wK10WRU91PFFjXXu7VavuZSx5SM4rAh9me3cz7eWLbo4AC1 113Vb/8rfWDwb/ejI1j5S22jQaRlpLXLDRzghiFDt1qEw== X-Received: by 127.0.0.2 with SMTP id g03NYY7687511xyP0GOtqgIA; Sun, 21 Apr 2024 23:59:09 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by mx.groups.io with SMTP id smtpd.web11.12587.1713769147703724468 for ; Sun, 21 Apr 2024 23:59:08 -0700 X-CSE-ConnectionGUID: jaDSlYD/TRCqqwpvJJK8nA== X-CSE-MsgGUID: PmBZhHthQsCNTTzumpqWfA== X-IronPort-AV: E=McAfee;i="6600,9927,11051"; a="13080425" X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="13080425" X-Received: from orviesa005.jf.intel.com ([10.64.159.145]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2024 23:59:08 -0700 X-CSE-ConnectionGUID: J0l4rhQFRSu/FtinNkW+IA== X-CSE-MsgGUID: JtOE1H6dQECXdWE17zxoEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,220,1708416000"; d="scan'208";a="28694700" X-Received: from chsuehx-desk.gar.corp.intel.com ([10.225.77.6]) by orviesa005.jf.intel.com with ESMTP; 21 Apr 2024 23:59:04 -0700 From: dorax.hsueh@intel.com To: devel@edk2.groups.io Cc: DoraX Hsueh , Sai Chaganty , Rosen Chuang , Saloni Kasbekar , Haoyu Tang , Nate DeSimone Subject: [edk2-devel] [PATCH] AlderlakeOpenBoardPkg: Halt the TCO timer. Date: Mon, 22 Apr 2024 14:58:57 +0800 Message-Id: <691cfc8d9c30f304c969bf74b0a3282ad6400442.1713768053.git.dorax.hsueh@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Sun, 21 Apr 2024 23:59:08 -0700 Resent-From: dorax.hsueh@intel.com Reply-To: devel@edk2.groups.io,dorax.hsueh@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ixe5Xw7v2nEOQmcNT7un5dtDx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=svl4M9xg; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io From: DoraX Hsueh https://bugzilla.tianocore.org/show_bug.cgi?id=3D4761 Halt the TCO timer to fix release mode hang. Cc: Sai Chaganty Cc: Rosen Chuang Cc: Saloni Kasbekar Cc: Haoyu Tang Cc: Nate DeSimone Signed-off-by: DoraX Hsueh --- .../AlderlakeOpenBoardPkg/AlderlakePRvp/OpenBoardPkg.dsc | 3 ++- .../Library/SecFspWrapperPlatformSecLib/PlatformInit.c | 8 ++++++++ .../SecFspWrapperPlatformSecLib.inf | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Platform/Intel/AlderlakeOpenBoardPkg/AlderlakePRvp/OpenBoardPk= g.dsc b/Platform/Intel/AlderlakeOpenBoardPkg/AlderlakePRvp/OpenBoardPkg.dsc index 59350f06..ea92ec75 100644 --- a/Platform/Intel/AlderlakeOpenBoardPkg/AlderlakePRvp/OpenBoardPkg.dsc +++ b/Platform/Intel/AlderlakeOpenBoardPkg/AlderlakePRvp/OpenBoardPkg.dsc @@ -233,8 +233,9 @@ =0D [LibraryClasses.X64.DXE_SMM_DRIVER]=0D =0D -!if $(TARGET) =3D=3D DEBUG=0D SpiFlashCommonLib|IntelSiliconPkg/Library/SmmSpiFlashCommonLib/SmmSpiFla= shCommonLib.inf=0D +=0D +!if $(TARGET) =3D=3D DEBUG=0D TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLib/Smm= TestPointCheckLib.inf=0D TestPointCheckLib|$(PLATFORM_PACKAGE)/Test/Library/TestPointCheckLibNull= /TestPointCheckLibNull.inf=0D !endif=0D diff --git a/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFsp= WrapperPlatformSecLib/PlatformInit.c b/Platform/Intel/AlderlakeOpenBoardPkg= /FspWrapper/Library/SecFspWrapperPlatformSecLib/PlatformInit.c index f7ec4f9e..e930c9c7 100644 --- a/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/PlatformInit.c +++ b/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/PlatformInit.c @@ -12,6 +12,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include =0D #include =0D #include =0D +#include =0D +#include =0D =0D /**=0D Platform initialization.=0D @@ -28,6 +30,12 @@ PlatformInit ( IN VOID *EndOfRange=0D )=0D {=0D +=0D + ///=0D + /// Halt the TCO timer as early as possible=0D + ///=0D + IoWrite16 (PcdGet16 (PcdTcoBaseAddress) + R_TCO_IO_TCO1_CNT, B_TCO_IO_TC= O1_CNT_TMR_HLT);=0D +=0D //=0D // Platform initialization=0D // Enable Serial port here=0D diff --git a/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFsp= WrapperPlatformSecLib/SecFspWrapperPlatformSecLib.inf b/Platform/Intel/Alde= rlakeOpenBoardPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/SecFspWrap= perPlatformSecLib.inf index 3e51cb36..abc84057 100644 --- a/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/SecFspWrapperPlatformSecLib.inf +++ b/Platform/Intel/AlderlakeOpenBoardPkg/FspWrapper/Library/SecFspWrapper= PlatformSecLib/SecFspWrapperPlatformSecLib.inf @@ -89,6 +89,7 @@ gIntelFsp2WrapperTokenSpaceGuid.PcdFsptBaseAddress ## C= ONSUMES=0D gIntelFsp2PkgTokenSpaceGuid.PcdFspTemporaryRamSize ## C= ONSUMES=0D gMinPlatformPkgTokenSpaceGuid.PcdSecSerialPortDebugEnable ## C= ONSUMES=0D + gSiPkgTokenSpaceGuid.PcdTcoBaseAddress ## C= ONSUMES=0D =0D [FixedPcd]=0D gMinPlatformPkgTokenSpaceGuid.PcdFlashFvMicrocodeBase ## C= ONSUMES=0D --=20 2.26.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118069): https://edk2.groups.io/g/devel/message/118069 Mute This Topic: https://groups.io/mt/105665490/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-