public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Nate DeSimone" <nathaniel.l.desimone@intel.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>,
	"mikuback@linux.microsoft.com" <mikuback@linux.microsoft.com>
Cc: "Chiu, Chasel" <chasel.chiu@intel.com>,
	"Chaganty, Rangasai V" <rangasai.v.chaganty@intel.com>
Subject: Re: [edk2-devel] [edk2-platforms][PATCH v1 2/3] KabylakeSiliconPkg: Fix invalid debug macros
Date: Wed, 12 Oct 2022 00:37:56 +0000	[thread overview]
Message-ID: <MW4PR11MB5821AFAC7A5A48AD5563F075CD229@MW4PR11MB5821.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20221005040648.4139-3-mikuback@linux.microsoft.com>

Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Michael
> Kubacki
> Sent: Tuesday, October 4, 2022 9:07 PM
> To: devel@edk2.groups.io
> Cc: Chiu, Chasel <chasel.chiu@intel.com>; Chaganty, Rangasai V
> <rangasai.v.chaganty@intel.com>
> Subject: [edk2-devel] [edk2-platforms][PATCH v1 2/3] KabylakeSiliconPkg:
> Fix invalid debug macros
> 
> From: Michael Kubacki <michael.kubacki@microsoft.com>
> 
> REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4095
> 
> Updates several debug macros in KabylakeSiliconPkg to correctly match print
> specifiers to actual arguments.
> 
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Cc: Sai Chaganty <rangasai.v.chaganty@intel.com>
> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
> ---
> 
> Silicon/Intel/KabylakeSiliconPkg/Cpu/Library/PeiCpuPolicyLib/CpuPrintPolicy.
> c | 19 +++++++++++--------
>  Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiOcWdtLib/PeiOcWdtLib.c
> |  4 ++--
>  2 files changed, 13 insertions(+), 10 deletions(-)
> 
> diff --git
> a/Silicon/Intel/KabylakeSiliconPkg/Cpu/Library/PeiCpuPolicyLib/CpuPrintPoli
> cy.c
> b/Silicon/Intel/KabylakeSiliconPkg/Cpu/Library/PeiCpuPolicyLib/CpuPrintPoli
> cy.c
> index f13ca92661ae..d20945b7cae3 100644
> ---
> a/Silicon/Intel/KabylakeSiliconPkg/Cpu/Library/PeiCpuPolicyLib/CpuPrintPoli
> cy.c
> +++ b/Silicon/Intel/KabylakeSiliconPkg/Cpu/Library/PeiCpuPolicyLib/CpuPr
> +++ intPolicy.c
> @@ -39,13 +39,16 @@ CpuPowerMgmtBasicConfigPrint (
>    )
>  {
>    DEBUG ((DEBUG_INFO, "------------------ CPU Power Mgmt Basic Config -----
> -------------\n"));
> -  DEBUG ((DEBUG_INFO, " CPU_POWER_MGMT_BASIC_CONFIG :
> OneCoreRatioLimit : 0x%X , TwoCoreRatioLimit = 0x%X , ThreeCoreRatioLimit
> = 0x%X , FourCoreRatioLimit = 0x%X \n",  CpuPowerMgmtBasicConfig-
> >OneCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->TwoCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->ThreeCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->FourCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->FiveCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->SixCoreRatioLimit, \
> -          CpuPowerMgmtBasicConfig->SevenCoreRatioLimit, \
> +  DEBUG ((DEBUG_INFO,
> +          " CPU_POWER_MGMT_BASIC_CONFIG : OneCoreRatioLimit : 0x%X ,
> TwoCoreRatioLimit = 0x%X , ThreeCoreRatioLimit = 0x%X ,
> FourCoreRatioLimit = 0x%X\n"
> +          "                               FiveCoreRatioLimit : 0x%X , SixCoreRatioLimit = 0x%X ,
> SevenCoreRatioLimit = 0x%X , EightCoreRatioLimit = 0x%X\n",
> +          CpuPowerMgmtBasicConfig->OneCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->TwoCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->ThreeCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->FourCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->FiveCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->SixCoreRatioLimit,
> +          CpuPowerMgmtBasicConfig->SevenCoreRatioLimit,
>            CpuPowerMgmtBasicConfig->EightCoreRatioLimit));
>    DEBUG ((DEBUG_INFO, " CPU_POWER_MGMT_BASIC_CONFIG: Hwp :
> 0x%x\n", CpuPowerMgmtBasicConfig->Hwp));
>    DEBUG ((DEBUG_INFO, " CPU_POWER_MGMT_BASIC_CONFIG:
> SkipSetBootPState : 0x%x\n", CpuPowerMgmtBasicConfig-
> >SkipSetBootPState));
> @@ -151,7 +154,7 @@ CpuPidTestConfigPrint (  {
>    UINT32 Index = 0;
>    DEBUG ((DEBUG_INFO, "------------------ CPU PID Test Config ------------------
> \n"));
> -  DEBUG ((DEBUG_INFO, " CPU_PID_TEST_CONFIG : PidTuning : 0x%X\n",
> Index,  CpuPidTestConfig->PidTuning));
> +  DEBUG ((DEBUG_INFO, " CPU_PID_TEST_CONFIG : PidTuning : 0x%X\n",
> + CpuPidTestConfig->PidTuning));
>    if ( CpuPidTestConfig->PidTuning == 1) {
>      for (Index = PID_DOMAIN_KP; Index <= PID_DOMAIN_KD; Index++) {
>          DEBUG ((DEBUG_INFO, " CPU_PID_TEST_CONFIG : Ratl[%X] : 0x%X\n",
> Index,  CpuPidTestConfig->Ratl[Index])); diff --git
> a/Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiOcWdtLib/PeiOcWdtLib.c
> b/Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiOcWdtLib/PeiOcWdtLib.c
> index e8c8dab6e7ad..467f71bff92b 100644
> ---
> a/Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiOcWdtLib/PeiOcWdtLib.c
> +++ b/Silicon/Intel/KabylakeSiliconPkg/Pch/Library/PeiOcWdtLib/PeiOcWdtL
> +++ ib.c
> @@ -75,7 +75,7 @@ OcWdtResetCheck (
>    /// Timeout status bits are cleared by writing '1'
>    ///
>    if (Readback & (B_PCH_OC_WDT_CTL_ICCSURV_STS |
> B_PCH_OC_WDT_CTL_NO_ICCSURV_STS)) {
> -    DEBUG ((DEBUG_ERROR, "(WDT) Expiration detected.\n", Readback));
> +    DEBUG ((DEBUG_ERROR, "(WDT) Expiration detected. Read back =
> + 0x%08x\n", Readback));
>      Readback |= B_PCH_OC_WDT_CTL_FAILURE_STS;
>      Readback |= (B_PCH_OC_WDT_CTL_ICCSURV_STS |
> B_PCH_OC_WDT_CTL_NO_ICCSURV_STS);
>      Readback &= ~(B_PCH_OC_WDT_CTL_UNXP_RESET_STS);
> @@ -102,7 +102,7 @@ OcWdtResetCheck (
>        ///
>        /// No WDT expiration and no unexpected reset - clear Failure status
>        ///
> -      DEBUG ((DEBUG_INFO, "(WDT) Status OK.\n", Readback));
> +      DEBUG ((DEBUG_INFO, "(WDT) Status OK.\n"));
>        Readback &= ~(B_PCH_OC_WDT_CTL_FAILURE_STS);
>        Readback |= (B_PCH_OC_WDT_CTL_ICCSURV_STS |
> B_PCH_OC_WDT_CTL_NO_ICCSURV_STS);
>      }
> --
> 2.28.0.windows.1
> 
> 
> 
> -=-=-=-=-=-=
> Groups.io Links: You receive all messages sent to this group.
> View/Reply Online (#94740): https://edk2.groups.io/g/devel/message/94740
> Mute This Topic: https://groups.io/mt/94129546/1767664
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [nathaniel.l.desimone@intel.com]
> -=-=-=-=-=-=
> 


  reply	other threads:[~2022-10-12  0:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-05  4:06 [edk2-platforms][PATCH v1 0/3] Silicon/Intel: Fix invalid DEBUG() macros Michael Kubacki
2022-10-05  4:06 ` [edk2-platforms][PATCH v1 1/3] CoffeelakeSiliconPkg: Fix invalid debug macros Michael Kubacki
2022-10-12  0:37   ` [edk2-devel] " Nate DeSimone
2022-10-12 13:58     ` Michael Kubacki
2022-10-05  4:06 ` [edk2-platforms][PATCH v1 2/3] KabylakeSiliconPkg: " Michael Kubacki
2022-10-12  0:37   ` Nate DeSimone [this message]
2022-10-05  4:06 ` [edk2-platforms][PATCH v1 3/3] TigerlakeSiliconPkg: " Michael Kubacki
2022-10-12  0:37   ` Nate DeSimone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW4PR11MB5821AFAC7A5A48AD5563F075CD229@MW4PR11MB5821.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox