public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Lu, James" <james.lu@intel.com>
To: "Guo, Gua" <gua.guo@intel.com>,
	"Chen, Gang C" <gang.c.chen@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Dong, Guo" <guo.dong@intel.com>, "Rhodes, Sean" <sean@starlabs.systems>
Subject: Re: [edk2-devel] [PATCH 1/1] UefiPayloadPkg/UefiPayloadEntry: Remove SCI enabling check
Date: Mon, 8 Jan 2024 07:51:07 +0000	[thread overview]
Message-ID: <CH3PR11MB7819848DE3E1DCC712060519886B2@CH3PR11MB7819.namprd11.prod.outlook.com> (raw)
In-Reply-To: <BL1PR11MB54780A9090D8E8E04A1FBCB7EF6B2@BL1PR11MB5478.namprd11.prod.outlook.com>

Reviewed-by: James Lu <james.lu@intel.com>


Thanks, 
James


-----Original Message-----
From: Guo, Gua <gua.guo@intel.com> 
Sent: Monday, January 8, 2024 3:30 PM
To: Chen, Gang C <gang.c.chen@intel.com>; devel@edk2.groups.io
Cc: Dong, Guo <guo.dong@intel.com>; Lu, James <james.lu@intel.com>; Rhodes, Sean <sean@starlabs.systems>
Subject: RE: [PATCH 1/1] UefiPayloadPkg/UefiPayloadEntry: Remove SCI enabling check

Reviewed-by: Gua Guo <gua.guo@intel.com>

-----Original Message-----
From: Chen, Gang C <gang.c.chen@intel.com> 
Sent: Monday, January 8, 2024 3:26 PM
To: devel@edk2.groups.io
Cc: Guo, Gua <gua.guo@intel.com>; Dong, Guo <guo.dong@intel.com>; Lu, James <james.lu@intel.com>; Rhodes, Sean <sean@starlabs.systems>; Chen, Gang C <gang.c.chen@intel.com>
Subject: [PATCH 1/1] UefiPayloadPkg/UefiPayloadEntry: Remove SCI enabling check

It's too early to check the SCI enable status, which is set in the BDS phase ususally. Remove the check from UPL.

Signed-off-by: Gang Chen <gang.c.chen@intel.com>
Cc: Gua Guo <gua.guo@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: James Lu <james.lu@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
---
 UefiPayloadPkg/UefiPayloadEntry/AcpiTable.c | 38 ---------------------
 1 file changed, 38 deletions(-)

diff --git a/UefiPayloadPkg/UefiPayloadEntry/AcpiTable.c b/UefiPayloadPkg/UefiPayloadEntry/AcpiTable.c
index 1b9208b6d3..748728981a 100644
--- a/UefiPayloadPkg/UefiPayloadEntry/AcpiTable.c
+++ b/UefiPayloadPkg/UefiPayloadEntry/AcpiTable.c
@@ -134,44 +134,6 @@ Done:
   ASSERT (Fadt->Pm1aEvtBlk != 0);   ASSERT (Fadt->Gpe0Blk != 0); -  DEBUG_CODE_BEGIN ();-  BOOLEAN  SciEnabled;--  //-  // Check the consistency of SCI enabling-  //--  //-  // Get SCI_EN value-  //-  if (Fadt->Pm1CntLen == 4) {-    SciEnabled = (IoRead32 (Fadt->Pm1aCntBlk) & BIT0) ? TRUE : FALSE;-  } else {-    //-    // if (Pm1CntLen == 2), use 16 bit IO read;-    // if (Pm1CntLen != 2 && Pm1CntLen != 4), use 16 bit IO read as a fallback-    //-    SciEnabled = (IoRead16 (Fadt->Pm1aCntBlk) & BIT0) ? TRUE : FALSE;-  }--  if (!(Fadt->Flags & EFI_ACPI_5_0_HW_REDUCED_ACPI) &&-      (Fadt->SmiCmd == 0) &&-      !SciEnabled)-  {-    //-    // The ACPI enabling status is inconsistent: SCI is not enabled but ACPI-    // table does not provide a means to enable it through FADT->SmiCmd-    //-    DEBUG ((-      DEBUG_ERROR,-      "ERROR: The ACPI enabling status is inconsistent: SCI is not"-      " enabled but the ACPI table does not provide a means to enable it through FADT->SmiCmd."-      " This may cause issues in OS.\n"-      ));-  }--  DEBUG_CODE_END ();-   return RETURN_SUCCESS; } -- 
2.40.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113369): https://edk2.groups.io/g/devel/message/113369
Mute This Topic: https://groups.io/mt/103593439/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



      reply	other threads:[~2024-01-08  7:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-08  7:25 [edk2-devel] [PATCH 0/1] Remove SCI status check from UPL Chen, Gang C
2024-01-08  7:25 ` [edk2-devel] [PATCH 1/1] UefiPayloadPkg/UefiPayloadEntry: Remove SCI enabling check Chen, Gang C
2024-01-08  7:25 ` [edk2-devel] [PATCH 0/1] Remove SCI status check from UPL Chen, Gang C
2024-01-08  7:25 ` [edk2-devel] [PATCH 1/1] UefiPayloadPkg/UefiPayloadEntry: Remove SCI enabling check Chen, Gang C
2024-01-08  7:29   ` Guo, Gua
2024-01-08  7:51     ` Lu, James [this message]

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=CH3PR11MB7819848DE3E1DCC712060519886B2@CH3PR11MB7819.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