public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build
@ 2021-09-29  1:03 Nate DeSimone
  2021-09-29  1:03 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build Nate DeSimone
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nate DeSimone @ 2021-09-29  1:03 UTC (permalink / raw)
  To: devel; +Cc: Chasel Chiu, Benjamin Doron

AspireVn7Dash572G currently does not build with Visual Studio.
This is due to the Visual C++ compiler generating warnings with the GCC
compiler does not. The two classes of issues are unused local variables
and implicit integer casts that could result in truncation. Visual C++
requires an explicit cast in cases where integer truncation is possible.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Benjamin Doron <benjamin.doron00@gmail.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
---
 .../AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c    | 9 +++++----
 .../Library/BoardInitLib/DxeBoardInitLib.c               | 3 ++-
 .../Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c    | 3 +--
 .../BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c    | 7 +++----
 .../PeiSiliconPolicyUpdateLib.inf                        | 2 ++
 5 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c
index ea8a8ae11e..6e752b4e22 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c
+++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c
@@ -2,6 +2,7 @@
   Board-specific EC commands.
 
   Copyright (c) 2021, Baruch Binyamin Doron
+  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -167,8 +168,8 @@ EcIdxRead (
     return;
   }
 
-  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, Address >> 8);
-  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, Address);
+  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, (UINT8) (Address >> 8));
+  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, (UINT8) Address);
   *Data = IoRead8 (EC_INDEX_IO_DATA_PORT);
 }
 
@@ -184,8 +185,8 @@ EcIdxWrite (
   IN  UINT8                  Data
   )
 {
-  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, Address >> 8);
-  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, Address);
+  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, (UINT8) (Address >> 8));
+  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, (UINT8) Address);
   IoWrite8 (EC_INDEX_IO_DATA_PORT, Data);
 }
 
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/DxeBoardInitLib.c b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/DxeBoardInitLib.c
index 4bce51886e..5c5c26d85c 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/DxeBoardInitLib.c
+++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/DxeBoardInitLib.c
@@ -2,6 +2,7 @@
   Aspire VN7-572G Board Initialization DXE library
 
   Copyright (c) 2021, Baruch Binyamin Doron
+  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
   SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -46,7 +47,7 @@ EcSendTime (
   SendEcCommand (0xE0);
   for (Index = 0; Index < 4; Index++) {
     // Shift bytes
-    EcTimeByte = EcTime >> Index*8;
+    EcTimeByte = (UINT8) (EcTime >> (Index * 8));
     DEBUG ((DEBUG_INFO, "EC: Sending 0x%x (iteration %d)\n", EcTimeByte, Index));
     SendEcData (EcTimeByte);
   }
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c
index d379fdb0d4..344e06859e 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c
+++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c
@@ -1,6 +1,6 @@
 /** @file
 
-Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -29,7 +29,6 @@ GetAspireVn7Dash572GBoardId (
   OUT UINT8    *BoardId
   )
 {
-  EFI_STATUS    Status;
   UINT16        DataBuffer;
 
   ReadEcAdcConverter (MODEL_ID_AD, &DataBuffer);
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c
index 2946e174ca..77722f5d60 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c
+++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c
@@ -1,6 +1,6 @@
 /** @file
 
-Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
 SPDX-License-Identifier: BSD-2-Clause-Patent
 
 **/
@@ -40,7 +40,6 @@ EcInit (
   UINT16         ABase;
   UINT16         Pm1Sts;
   UINT32         GpeSts;
-  UINT16         XhciPmCs;
 
   /* This is called via a "$FNC" in a PeiOemModule pointer table, with "$DPX" on SiInit */
   IoWrite8 (0x6C, 0x5A);  // 6Ch is the EC sideband port
@@ -66,13 +65,13 @@ EcInit (
       IoWrite32 (ABase + R_PCH_ACPI_GPE0_STS_127_96, GpeSts);
       /* Clear xHCI PM_CS[PME_Status] - RW/1C - and disable xHCI PM_CS[PME_En] */
       PciAndThenOr16 (PCI_LIB_ADDRESS(PCI_BUS_NUMBER_PCH_XHCI, PCI_DEVICE_NUMBER_PCH_XHCI, PCI_FUNCTION_NUMBER_PCH_XHCI, R_PCH_XHCI_PWR_CNTL_STS),
-                      ~B_PCH_XHCI_PWR_CNTL_STS_PME_EN,
+                      (UINT16) ~B_PCH_XHCI_PWR_CNTL_STS_PME_EN,
                       B_PCH_XHCI_PWR_CNTL_STS_PME_STS
                       );
 
       /* Enter S3 sleep */
       IoAndThenOr32 (ABase + R_PCH_ACPI_PM1_CNT,
-                     ~(B_PCH_ACPI_PM1_CNT_SLP_TYP | B_PCH_ACPI_PM1_CNT_SLP_EN),
+                     (UINT32) ~(B_PCH_ACPI_PM1_CNT_SLP_TYP | B_PCH_ACPI_PM1_CNT_SLP_EN),
                      V_PCH_ACPI_PM1_CNT_S3
                      );
       IoWrite32 (ABase + R_PCH_ACPI_PM1_CNT, B_PCH_ACPI_PM1_CNT_SLP_EN);
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
index ad85326bf9..0a8cf91b07 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
+++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
@@ -53,6 +53,8 @@
   gHsioSataPreMemConfigGuid                     ## CONSUMES
   gSaMiscPeiPreMemConfigGuid                    ## CONSUMES
   gFspNonVolatileStorageHobGuid                 ## CONSUMES
+  gIoApicConfigGuid                             ## CONSUMES
+  gHpetPreMemConfigGuid                         ## CONSUMES
   gLockDownConfigGuid
   gPchGeneralConfigGuid
   gCpuPowerMgmtBasicConfigGuid
-- 
2.27.0.windows.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build
  2021-09-29  1:03 [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build Nate DeSimone
@ 2021-09-29  1:03 ` Nate DeSimone
  2021-09-29  1:12   ` Chiu, Chasel
  2021-09-29  1:11 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build Chiu, Chasel
       [not found] ` <16A9255C60D9E335.27626@groups.io>
  2 siblings, 1 reply; 5+ messages in thread
From: Nate DeSimone @ 2021-09-29  1:03 UTC (permalink / raw)
  To: devel; +Cc: Chasel Chiu

Commit d281e9e broke the build for KabylakeOpenBoardPkg due
to DxeMultiBoardAcpiSupportLib having a dependency on
BoardAcpiTableLib that was never declared. This change adds
a correct declaration of the library dependency and fixes the build.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
---
 .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
 .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
index 9fe27f9fda..dc597c4808 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
+++ b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
@@ -1,7 +1,7 @@
 ### @file
 # System 76 GalagoPro3 board multi-board DXE ACPI table support functionality.
 #
-# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>
 #
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -26,6 +26,7 @@
   BaseLib
   IoLib
   PciLib
+  BoardAcpiTableLib
   AslUpdateLib
 
 [Packages]
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
index e5de9268e7..8438b16a6e 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
+++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
@@ -1,7 +1,7 @@
 ### @file
 # Kaby Lake RVP 3 Multi-Board ACPI Support library
 #
-# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
 #
 # SPDX-License-Identifier: BSD-2-Clause-Patent
 #
@@ -26,6 +26,7 @@
   BaseLib
   IoLib
   PciLib
+  BoardAcpiTableLib
   AslUpdateLib
 
 [Packages]
-- 
2.27.0.windows.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build
  2021-09-29  1:03 [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build Nate DeSimone
  2021-09-29  1:03 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build Nate DeSimone
@ 2021-09-29  1:11 ` Chiu, Chasel
       [not found] ` <16A9255C60D9E335.27626@groups.io>
  2 siblings, 0 replies; 5+ messages in thread
From: Chiu, Chasel @ 2021-09-29  1:11 UTC (permalink / raw)
  To: Desimone, Nathaniel L, devel@edk2.groups.io; +Cc: Benjamin Doron


Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>


> -----Original Message-----
> From: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com>
> Sent: Wednesday, September 29, 2021 9:03 AM
> To: devel@edk2.groups.io
> Cc: Chiu, Chasel <chasel.chiu@intel.com>; Benjamin Doron
> <benjamin.doron00@gmail.com>
> Subject: [edk2-platforms] [PATCH V1]
> KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build
> 
> AspireVn7Dash572G currently does not build with Visual Studio.
> This is due to the Visual C++ compiler generating warnings with the GCC
> compiler does not. The two classes of issues are unused local variables and
> implicit integer casts that could result in truncation. Visual C++ requires an
> explicit cast in cases where integer truncation is possible.
> 
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Cc: Benjamin Doron <benjamin.doron00@gmail.com>
> Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
> ---
>  .../AspireVn7Dash572G/Library/BoardEcLib/EcCommands.c    | 9 +++++----
>  .../Library/BoardInitLib/DxeBoardInitLib.c               | 3 ++-
>  .../Library/BoardInitLib/PeiAspireVn7Dash572GDetect.c    | 3 +--
>  .../BoardInitLib/PeiAspireVn7Dash572GInitPostMemLib.c    | 7 +++----
>  .../PeiSiliconPolicyUpdateLib.inf                        | 2 ++
>  5 files changed, 13 insertions(+), 11 deletions(-)
> 
> diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcL
> ib/EcCommands.c
> b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcL
> ib/EcCommands.c
> index ea8a8ae11e..6e752b4e22 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardEcL
> ib/EcCommands.c
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/Boar
> +++ dEcLib/EcCommands.c
> @@ -2,6 +2,7 @@
>    Board-specific EC commands.
> 
>    Copyright (c) 2021, Baruch Binyamin Doron
> +  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
>    SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -167,8 +168,8 @@ EcIdxRead (
>      return;
>    }
> 
> -  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, Address >> 8);
> -  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, Address);
> +  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, (UINT8) (Address >> 8));
> +  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, (UINT8) Address);
>    *Data = IoRead8 (EC_INDEX_IO_DATA_PORT);  }
> 
> @@ -184,8 +185,8 @@ EcIdxWrite (
>    IN  UINT8                  Data
>    )
>  {
> -  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, Address >> 8);
> -  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, Address);
> +  IoWrite8 (EC_INDEX_IO_HIGH_ADDR_PORT, (UINT8) (Address >> 8));
> +  IoWrite8 (EC_INDEX_IO_LOW_ADDR_PORT, (UINT8) Address);
>    IoWrite8 (EC_INDEX_IO_DATA_PORT, Data);  }
> 
> diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/DxeBoardInitLib.c
> b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/DxeBoardInitLib.c
> index 4bce51886e..5c5c26d85c 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/DxeBoardInitLib.c
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/Boar
> +++ dInitLib/DxeBoardInitLib.c
> @@ -2,6 +2,7 @@
>    Aspire VN7-572G Board Initialization DXE library
> 
>    Copyright (c) 2021, Baruch Binyamin Doron
> +  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
>    SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -46,7 +47,7 @@ EcSendTime (
>    SendEcCommand (0xE0);
>    for (Index = 0; Index < 4; Index++) {
>      // Shift bytes
> -    EcTimeByte = EcTime >> Index*8;
> +    EcTimeByte = (UINT8) (EcTime >> (Index * 8));
>      DEBUG ((DEBUG_INFO, "EC: Sending 0x%x (iteration %d)\n", EcTimeByte,
> Index));
>      SendEcData (EcTimeByte);
>    }
> diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GDetect.c
> b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GDetect.c
> index d379fdb0d4..344e06859e 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GDetect.c
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/Boar
> +++ dInitLib/PeiAspireVn7Dash572GDetect.c
> @@ -1,6 +1,6 @@
>  /** @file
> 
> -Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -29,7 +29,6 @@ GetAspireVn7Dash572GBoardId (
>    OUT UINT8    *BoardId
>    )
>  {
> -  EFI_STATUS    Status;
>    UINT16        DataBuffer;
> 
>    ReadEcAdcConverter (MODEL_ID_AD, &DataBuffer); diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GInitPostMemLib.c
> b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GInitPostMemLib.c
> index 2946e174ca..77722f5d60 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/BoardInit
> Lib/PeiAspireVn7Dash572GInitPostMemLib.c
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Library/Boar
> +++ dInitLib/PeiAspireVn7Dash572GInitPostMemLib.c
> @@ -1,6 +1,6 @@
>  /** @file
> 
> -Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2017 - 2021, Intel Corporation. All rights reserved.<BR>
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -40,7 +40,6 @@ EcInit (
>    UINT16         ABase;
>    UINT16         Pm1Sts;
>    UINT32         GpeSts;
> -  UINT16         XhciPmCs;
> 
>    /* This is called via a "$FNC" in a PeiOemModule pointer table, with "$DPX" on
> SiInit */
>    IoWrite8 (0x6C, 0x5A);  // 6Ch is the EC sideband port @@ -66,13 +65,13 @@
> EcInit (
>        IoWrite32 (ABase + R_PCH_ACPI_GPE0_STS_127_96, GpeSts);
>        /* Clear xHCI PM_CS[PME_Status] - RW/1C - and disable xHCI
> PM_CS[PME_En] */
>        PciAndThenOr16 (PCI_LIB_ADDRESS(PCI_BUS_NUMBER_PCH_XHCI,
> PCI_DEVICE_NUMBER_PCH_XHCI, PCI_FUNCTION_NUMBER_PCH_XHCI,
> R_PCH_XHCI_PWR_CNTL_STS),
> -                      ~B_PCH_XHCI_PWR_CNTL_STS_PME_EN,
> +                      (UINT16) ~B_PCH_XHCI_PWR_CNTL_STS_PME_EN,
>                        B_PCH_XHCI_PWR_CNTL_STS_PME_STS
>                        );
> 
>        /* Enter S3 sleep */
>        IoAndThenOr32 (ABase + R_PCH_ACPI_PM1_CNT,
> -                     ~(B_PCH_ACPI_PM1_CNT_SLP_TYP |
> B_PCH_ACPI_PM1_CNT_SLP_EN),
> +                     (UINT32) ~(B_PCH_ACPI_PM1_CNT_SLP_TYP |
> + B_PCH_ACPI_PM1_CNT_SLP_EN),
>                       V_PCH_ACPI_PM1_CNT_S3
>                       );
>        IoWrite32 (ABase + R_PCH_ACPI_PM1_CNT,
> B_PCH_ACPI_PM1_CNT_SLP_EN); diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/Pe
> iSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
> b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/Pe
> iSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
> index ad85326bf9..0a8cf91b07 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Library/Pe
> iSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/AspireVn7Dash572G/Policy/Libra
> +++ ry/PeiSiliconPolicyUpdateLib/PeiSiliconPolicyUpdateLib.inf
> @@ -53,6 +53,8 @@
>    gHsioSataPreMemConfigGuid                     ## CONSUMES
>    gSaMiscPeiPreMemConfigGuid                    ## CONSUMES
>    gFspNonVolatileStorageHobGuid                 ## CONSUMES
> +  gIoApicConfigGuid                             ## CONSUMES
> +  gHpetPreMemConfigGuid                         ## CONSUMES
>    gLockDownConfigGuid
>    gPchGeneralConfigGuid
>    gCpuPowerMgmtBasicConfigGuid
> --
> 2.27.0.windows.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build
  2021-09-29  1:03 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build Nate DeSimone
@ 2021-09-29  1:12   ` Chiu, Chasel
  0 siblings, 0 replies; 5+ messages in thread
From: Chiu, Chasel @ 2021-09-29  1:12 UTC (permalink / raw)
  To: Desimone, Nathaniel L, devel@edk2.groups.io


Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>

> -----Original Message-----
> From: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com>
> Sent: Wednesday, September 29, 2021 9:03 AM
> To: devel@edk2.groups.io
> Cc: Chiu, Chasel <chasel.chiu@intel.com>
> Subject: [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build
> 
> Commit d281e9e broke the build for KabylakeOpenBoardPkg due to
> DxeMultiBoardAcpiSupportLib having a dependency on BoardAcpiTableLib that
> was never declared. This change adds a correct declaration of the library
> dependency and fixes the build.
> 
> Cc: Chasel Chiu <chasel.chiu@intel.com>
> Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
> ---
>  .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
>  .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/Dx
> eMultiBoardAcpiSupportLib.inf
> b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/Dx
> eMultiBoardAcpiSupportLib.inf
> index 9fe27f9fda..dc597c4808 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/Dx
> eMultiBoardAcpiSupportLib.inf
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLi
> +++ b/DxeMultiBoardAcpiSupportLib.inf
> @@ -1,7 +1,7 @@
>  ### @file
>  # System 76 GalagoPro3 board multi-board DXE ACPI table support functionality.
>  #
> -# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
> +# Copyright (c) 2019 - 2021, Intel Corporation. All rights
> +reserved.<BR>
>  #
>  # SPDX-License-Identifier: BSD-2-Clause-Patent  # @@ -26,6 +26,7 @@
>    BaseLib
>    IoLib
>    PciLib
> +  BoardAcpiTableLib
>    AslUpdateLib
> 
>  [Packages]
> diff --git
> a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/D
> xeMultiBoardAcpiSupportLib.inf
> b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/D
> xeMultiBoardAcpiSupportLib.inf
> index e5de9268e7..8438b16a6e 100644
> ---
> a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/D
> xeMultiBoardAcpiSupportLib.inf
> +++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpi
> +++ Lib/DxeMultiBoardAcpiSupportLib.inf
> @@ -1,7 +1,7 @@
>  ### @file
>  # Kaby Lake RVP 3 Multi-Board ACPI Support library  # -# Copyright (c) 2017 -
> 2019, Intel Corporation. All rights reserved.<BR>
> +# Copyright (c) 2017 - 2021, Intel Corporation. All rights
> +reserved.<BR>
>  #
>  # SPDX-License-Identifier: BSD-2-Clause-Patent  # @@ -26,6 +26,7 @@
>    BaseLib
>    IoLib
>    PciLib
> +  BoardAcpiTableLib
>    AslUpdateLib
> 
>  [Packages]
> --
> 2.27.0.windows.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [edk2-devel] [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build
       [not found] ` <16A9255C60D9E335.27626@groups.io>
@ 2021-09-29  1:49   ` Nate DeSimone
  0 siblings, 0 replies; 5+ messages in thread
From: Nate DeSimone @ 2021-09-29  1:49 UTC (permalink / raw)
  To: devel@edk2.groups.io, Desimone, Nathaniel L; +Cc: Chiu, Chasel

Pushed: https://github.com/tianocore/edk2-platforms/commit/437dd50

-----Original Message-----
From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Nate DeSimone
Sent: Tuesday, September 28, 2021 6:03 PM
To: devel@edk2.groups.io
Cc: Chiu, Chasel <chasel.chiu@intel.com>
Subject: [edk2-devel] [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build

Commit d281e9e broke the build for KabylakeOpenBoardPkg due to DxeMultiBoardAcpiSupportLib having a dependency on BoardAcpiTableLib that was never declared. This change adds a correct declaration of the library dependency and fixes the build.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
---
 .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
 .../Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
index 9fe27f9fda..dc597c4808 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
+++ b/Platform/Intel/KabylakeOpenBoardPkg/GalagoPro3/Library/BoardAcpiLi
+++ b/DxeMultiBoardAcpiSupportLib.inf
@@ -1,7 +1,7 @@
 ### @file
 # System 76 GalagoPro3 board multi-board DXE ACPI table support functionality.
 #
-# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2019 - 2021, Intel Corporation. All rights 
+reserved.<BR>
 #
 # SPDX-License-Identifier: BSD-2-Clause-Patent  # @@ -26,6 +26,7 @@
   BaseLib
   IoLib
   PciLib
+  BoardAcpiTableLib
   AslUpdateLib
 
 [Packages]
diff --git a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
index e5de9268e7..8438b16a6e 100644
--- a/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpiLib/DxeMultiBoardAcpiSupportLib.inf
+++ b/Platform/Intel/KabylakeOpenBoardPkg/KabylakeRvp3/Library/BoardAcpi
+++ Lib/DxeMultiBoardAcpiSupportLib.inf
@@ -1,7 +1,7 @@
 ### @file
 # Kaby Lake RVP 3 Multi-Board ACPI Support library  # -# Copyright (c) 2017 - 2019, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2017 - 2021, Intel Corporation. All rights 
+reserved.<BR>
 #
 # SPDX-License-Identifier: BSD-2-Clause-Patent  # @@ -26,6 +26,7 @@
   BaseLib
   IoLib
   PciLib
+  BoardAcpiTableLib
   AslUpdateLib
 
 [Packages]
--
2.27.0.windows.1







^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-09-29  1:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-29  1:03 [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build Nate DeSimone
2021-09-29  1:03 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build Nate DeSimone
2021-09-29  1:12   ` Chiu, Chasel
2021-09-29  1:11 ` [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg/AspireVn7Dash572G: Fix Visual Studio Build Chiu, Chasel
     [not found] ` <16A9255C60D9E335.27626@groups.io>
2021-09-29  1:49   ` [edk2-devel] [edk2-platforms] [PATCH V1] KabylakeOpenBoardPkg: Fix Build Nate DeSimone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox