[edk2-devel] [Patch V2] WhiskeylakeOpenBoardPkg: Add USB DCI debug suport

Nate DeSimone nathaniel.l.desimone at intel.com
Sat Dec 19 01:18:02 UTC 2020


Pushed: https://github.com/tianocore/edk2-platforms/commit/2f81608

> -----Original Message-----
> From: Luo, Heng <heng.luo at intel.com>
> Sent: Sunday, December 13, 2020 5:44 PM
> To: devel at edk2.groups.io
> Cc: Chiu, Chasel <chasel.chiu at intel.com>; Desimone, Nathaniel L
> <nathaniel.l.desimone at intel.com>
> Subject: [Patch V2] WhiskeylakeOpenBoardPkg: Add USB DCI debug suport
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3081
> 
> Add gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable for USB DCI
> debug feature, feature is enabled if PcdDciEnable is TRUE, it allows to debug
> BIOS via DCI cable.
> 
> Cc: Chasel Chiu <chasel.chiu at intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone at intel.com>
> Signed-off-by: Heng Luo <heng.luo at intel.com>
> ---
>  Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
> | 1 +
> 
> Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateLi
> b/PeiPchPolicyUpdatePreMem.c | 8 +++++++-
> 
> Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateLi
> b/PeiPolicyUpdateLib.inf     | 4 ++++
> 
> Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkgPcd.ds
> c                                 | 2 ++
> 
> Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoardPk
> gPcd.dsc                          | 2 ++
>  5 files changed, 16 insertions(+), 1 deletion(-)
> 
> diff --git a/Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
> index fbb9549e44..196460e170 100644
> --- a/Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
> +++ b/Platform/Intel/WhiskeylakeOpenBoardPkg/OpenBoardPkg.dec
> @@ -554,6 +554,7 @@
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdNCT6776FHWMON
> |
>  [PcdsDynamicEx]  [PcdsDynamic,
> PcdsDynamicEx]+gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnabl
> e           |FALSE|BOOLEAN|0x20000001  [PcdsPatchableInModule] diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPchPolicyUpdatePreMem.c
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPchPolicyUpdatePreMem.c
> index 2d48b09175..bb34f89fb5 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPchPolicyUpdatePreMem.c
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpd
> +++ ateLib/PeiPchPolicyUpdatePreMem.c
> @@ -83,7 +83,13 @@ UpdatePeiPchPolicyPreMem (
>    Status = GetConfigBlock ((VOID *) SiPreMemPolicy,
> &gIshPreMemConfigGuid, (VOID *) &IshPreMemConfig);
> ASSERT_EFI_ERROR (Status); -  DciPreMemConfig->DciUsb3TypecUfpDbg =
> 2;+  if (PcdGetBool (PcdDciEnable)) {+    DciPreMemConfig-
> >PlatformDebugConsent = 3;+    DciPreMemConfig->DciUsb3TypecUfpDbg =
> 1;+  } else {+    DciPreMemConfig->DciUsb3TypecUfpDbg = 2;+  }+
> PchTraceHubPreMemConfig->MemReg0Size = 3;
> PchTraceHubPreMemConfig->MemReg1Size = 3;   //diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPolicyUpdateLib.inf
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPolicyUpdateLib.inf
> index 478e2d0512..252f92f487 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdate
> Lib/PeiPolicyUpdateLib.inf
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpd
> +++ ateLib/PeiPolicyUpdateLib.inf
> @@ -230,6 +230,9 @@
>     gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdEcPresent +  #
> Enable/Disable USB DCI Debug+
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable                      ##
> CONSUMES+   gIntelSiliconPkgTokenSpaceGuid.PcdIntelGraphicsVbtFileGuid
> ## CONSUMES
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSmbusAlertEnable
> ## CONSUMES
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdSataLedEnable                  ##
> CONSUMES@@ -243,6 +246,7 @@
> 
> gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGu
> id   ## CONSUMES
> gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber           ##
> CONSUMES + [FixedPcd]
> gMinPlatformPkgTokenSpaceGuid.PcdPlatformEfiAcpiReclaimMemorySize
> ## CONSUMES
> gMinPlatformPkgTokenSpaceGuid.PcdPlatformEfiAcpiNvsMemorySize      ##
> CONSUMESdiff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkgPcd.
> dsc
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkgPcd.
> dsc
> index e161bf06f4..84d4ec1331 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkgPcd.
> dsc
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/OpenBoardPkgPcd.
> ds
> +++ c
> @@ -399,6 +399,8 @@
>    gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3Tbt|0x1
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3TbtClkReq|0x1 +
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable|FALSE+
> [PcdsDynamicHii.X64.DEFAULT]
> ######################################   # Edk2 Configurationdiff -
> -git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoard
> PkgPcd.dsc
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoard
> PkgPcd.dsc
> index 83ada3c95c..4a7ba4d5f0 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoard
> PkgPcd.dsc
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/OpenBoard
> Pk
> +++ gPcd.dsc
> @@ -389,6 +389,8 @@
>    gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3Tbt|0x1
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdRtd3TbtClkReq|0x1 +
> gWhiskeylakeOpenBoardPkgTokenSpaceGuid.PcdDciEnable|FALSE+
> [PcdsDynamicHii.X64.DEFAULT]
> ######################################   # Edk2 Configuration--
> 2.24.0.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#69236): https://edk2.groups.io/g/devel/message/69236
Mute This Topic: https://groups.io/mt/78941913/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list