* Re: [edk2-devel] [PATCH] UpXtreme: Enable USB DCI debug
[not found] <16491FE4713F7C49.10388@groups.io>
@ 2020-12-08 2:05 ` Heng Luo
0 siblings, 0 replies; only message in thread
From: Heng Luo @ 2020-12-08 2:05 UTC (permalink / raw)
To: devel@edk2.groups.io, Luo, Heng
Cc: Chiu, Chasel, Desimone, Nathaniel L, Jarlstrom, Laurie
Hi Chasel and Nate,
Could you help to review and upload this patch?
Thanks,
Heng
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Heng Luo
> Sent: Friday, November 20, 2020 1:23 PM
> To: devel@edk2.groups.io
> Cc: Chiu, Chasel <chasel.chiu@intel.com>; Desimone, Nathaniel L
> <nathaniel.l.desimone@intel.com>
> Subject: [edk2-devel] [PATCH] UpXtreme: Enable USB DCI debug
>
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3081
>
> Allow to debug BIOS via DCI cable.
>
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
> Signed-off-by: Heng Luo <heng.luo@intel.com>
> ---
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateLib
> /PeiPchPolicyUpdatePreMem.c | 1 -
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoard
> ConfigLib/PeiCpuPolicyBoardConfig.c | 5 +++++
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoard
> ConfigLib/PeiPchPolicyBoardConfigPreMem.c | 7 +++++++
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoard
> ConfigLib/PeiPolicyBoardConfigLib.inf | 1 +
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPolic
> yBoardConfigLib/PeiPchPolicyBoardConfigPreMem.c | 6 ++++++
>
> Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPolic
> yBoardConfigLib/PeiPolicyBoardConfigLib.inf | 1 +
> 6 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateL
> ib/PeiPchPolicyUpdatePreMem.c
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateL
> ib/PeiPchPolicyUpdatePreMem.c
> index 2d48b09175..ac5b583f89 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpdateL
> ib/PeiPchPolicyUpdatePreMem.c
> +++ b/Platform/Intel/WhiskeylakeOpenBoardPkg/Policy/Library/PeiPolicyUpd
> +++ ateLib/PeiPchPolicyUpdatePreMem.c
> @@ -83,7 +83,6 @@ UpdatePeiPchPolicyPreMem (
> Status = GetConfigBlock ((VOID *) SiPreMemPolicy,
> &gIshPreMemConfigGuid, (VOID *) &IshPreMemConfig); ASSERT_EFI_ERROR
> (Status); - DciPreMemConfig->DciUsb3TypecUfpDbg = 2;
> PchTraceHubPreMemConfig->MemReg0Size = 3;
> PchTraceHubPreMemConfig->MemReg1Size = 3; //diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiCpuPolicyBoardConfig.c
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiCpuPolicyBoardConfig.c
> index d1d1920823..d4c5136c0a 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiCpuPolicyBoardConfig.c
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyB
> +++ oardConfigLib/PeiCpuPolicyBoardConfig.c
> @@ -44,6 +44,11 @@ UpdatePeiCpuPolicyBoardConfig (
> Status = GetConfigBlock ((VOID *) SiPolicyPpi, &gCpuConfigGuid, (VOID *)
> &CpuConfig); ASSERT_EFI_ERROR (Status); + //+ //Enable processor debug
> features+ //+ CpuConfig->DebugInterfaceEnable = 1;+ return Status; } diff -
> -git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPchPolicyBoardConfigPreMem.c
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPchPolicyBoardConfigPreMem.c
> index 01bb75525b..c79718f4ee 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPchPolicyBoardConfigPreMem.c
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyB
> +++ oardConfigLib/PeiPchPolicyBoardConfigPreMem.c
> @@ -25,12 +25,19 @@ UpdatePeiPchPolicyBoardConfigPreMem (
> { EFI_STATUS Status; PCH_GENERAL_PREMEM_CONFIG
> *PchGeneralPreMemConfig;+ PCH_DCI_PREMEM_CONFIG
> *DciPreMemConfig; DEBUG((DEBUG_INFO, "Updating PCH Policy by board
> config in Pre Mem\n")); Status = GetConfigBlock ((VOID *)
> SiPreMemPolicyPpi, &gPchGeneralPreMemConfigGuid, (VOID *)
> &PchGeneralPreMemConfig); ASSERT_EFI_ERROR (Status); + Status =
> GetConfigBlock ((VOID *) SiPreMemPolicyPpi, &gDciPreMemConfigGuid,
> (VOID *) &DciPreMemConfig);+ ASSERT_EFI_ERROR (Status);++
> DciPreMemConfig->PlatformDebugConsent = 3;+ DciPreMemConfig-
> >DciUsb3TypecUfpDbg = 1;+ return Status; } diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPolicyBoardConfigLib.inf
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPolicyBoardConfigLib.inf
> index aaf0abbf04..affb322c59 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyBoa
> rdConfigLib/PeiPolicyBoardConfigLib.inf
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/UpXtreme/Library/PeiPolicyB
> +++ oardConfigLib/PeiPolicyBoardConfigLib.inf
> @@ -54,6 +54,7 @@
> gPchGeneralConfigGuid ## CONSUMES
> gEfiTpmDeviceInstanceTpm20DtpmGuid
> gEfiTpmDeviceInstanceTpm12Guid+ gDciPreMemConfigGuid [Ppis]
> gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMESdiff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPo
> licyBoardConfigLib/PeiPchPolicyBoardConfigPreMem.c
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiP
> olicyBoardConfigLib/PeiPchPolicyBoardConfigPreMem.c
> index 00cf73dfd9..5d75bc5e1c 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPo
> licyBoardConfigLib/PeiPchPolicyBoardConfigPreMem.c
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/Pei
> +++ PolicyBoardConfigLib/PeiPchPolicyBoardConfigPreMem.c
> @@ -25,12 +25,18 @@ UpdatePeiPchPolicyBoardConfigPreMem (
> { EFI_STATUS Status; PCH_GENERAL_PREMEM_CONFIG
> *PchGeneralPreMemConfig;+ PCH_DCI_PREMEM_CONFIG
> *DciPreMemConfig; DEBUG((DEBUG_INFO, "Updating PCH Policy by board
> config in Pre Mem\n")); Status = GetConfigBlock ((VOID *)
> SiPreMemPolicyPpi, &gPchGeneralPreMemConfigGuid, (VOID *)
> &PchGeneralPreMemConfig); ASSERT_EFI_ERROR (Status); + Status =
> GetConfigBlock ((VOID *) SiPreMemPolicyPpi, &gDciPreMemConfigGuid,
> (VOID *) &DciPreMemConfig);+ ASSERT_EFI_ERROR (Status);++
> DciPreMemConfig->DciUsb3TypecUfpDbg = 2;+ return Status; } diff --git
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPo
> licyBoardConfigLib/PeiPolicyBoardConfigLib.inf
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiP
> olicyBoardConfigLib/PeiPolicyBoardConfigLib.inf
> index 15ef223050..5de11d62e4 100644
> ---
> a/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/PeiPo
> licyBoardConfigLib/PeiPolicyBoardConfigLib.inf
> +++
> b/Platform/Intel/WhiskeylakeOpenBoardPkg/WhiskeylakeURvp/Library/Pei
> +++ PolicyBoardConfigLib/PeiPolicyBoardConfigLib.inf
> @@ -54,6 +54,7 @@
> gPchGeneralConfigGuid ## CONSUMES
> gEfiTpmDeviceInstanceTpm20DtpmGuid
> gEfiTpmDeviceInstanceTpm12Guid+ gDciPreMemConfigGuid [Ppis]
> gEfiPeiReadOnlyVariable2PpiGuid ## CONSUMES--
> 2.24.0.windows.2
>
>
>
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#67741): https://edk2.groups.io/g/devel/message/67741
> Mute This Topic: https://groups.io/mt/78383406/3906523
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub [heng.luo@intel.com] -=-
> =-=-=-=-=
>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-08 2:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <16491FE4713F7C49.10388@groups.io>
2020-12-08 2:05 ` [edk2-devel] [PATCH] UpXtreme: Enable USB DCI debug Heng Luo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox