From: "Isaac Oram" <isaac.w.oram@intel.com>
To: devel@edk2.groups.io
Cc: Isaac Oram <isaac.w.oram@intel.com>,
Nate DeSimone <nathaniel.l.desimone@intel.com>,
Chasel Chiu <chasel.chiu@intel.com>,
Ankit Sinha <ankit.sinha@intel.com>,
Suresh Ponnusamy <sureshkumarp@ami.com>
Subject: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation
Date: Wed, 4 Jan 2023 17:34:15 -0800 [thread overview]
Message-ID: <154285e560df24b2cf6a0a7dd9b09577dd10ce37.1672882404.git.isaac.w.oram@intel.com> (raw)
In-Reply-To: <cover.1672882404.git.isaac.w.oram@intel.com>
Block length incorrectly calculated off of the block width.
Reverted EFI_ACPI_GPE0_BLK_WIDTH change and added #defines
for X_GPE0 and X_GPE1 contents.
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Ankit Sinha <ankit.sinha@intel.com>
Cc: Suresh Ponnusamy <sureshkumarp@ami.com>
Signed-off-by: Isaac Oram <isaac.w.oram@intel.com>
---
.../Features/Acpi/AcpiTables/Fadt/Fadt62.aslc | 16 +++++++-------
.../WhitleyOpenBoardPkg/Include/Acpi/Fadt.h | 21 ++++++++++++++++++-
2 files changed, 28 insertions(+), 9 deletions(-)
diff --git a/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fadt62.aslc b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fadt62.aslc
index f37cf0a508..b7f15ef716 100644
--- a/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fadt62.aslc
+++ b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fadt62.aslc
@@ -143,19 +143,19 @@ EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE Fadt = {
//
// X_General Purpose Event 0 Register Block
//
- {EFI_ACPI_GPE0_BLK_ADDRESS_SPACE_ID,
- EFI_ACPI_GPE0_BLK_BIT_WIDTH,
- EFI_ACPI_GPE0_BLK_BIT_OFFSET,
+ {EFI_ACPI_X_GPE0_BLK_ADDRESS_SPACE_ID,
+ EFI_ACPI_X_GPE0_BLK_BIT_WIDTH,
+ EFI_ACPI_X_GPE0_BLK_BIT_OFFSET,
EFI_ACPI_6_2_BYTE,
- EFI_ACPI_GPE0_BLK_ADDRESS},
+ EFI_ACPI_X_GPE0_BLK_ADDRESS},
//
// X_General Purpose Event 1 Register Block
//
- {EFI_ACPI_GPE1_BLK_ADDRESS_SPACE_ID,
- EFI_ACPI_GPE1_BLK_BIT_WIDTH,
- EFI_ACPI_GPE1_BLK_BIT_OFFSET,
+ {EFI_ACPI_X_GPE1_BLK_ADDRESS_SPACE_ID,
+ EFI_ACPI_X_GPE1_BLK_BIT_WIDTH,
+ EFI_ACPI_X_GPE1_BLK_BIT_OFFSET,
EFI_ACPI_6_2_UNDEFINED,
- EFI_ACPI_GPE1_BLK_ADDRESS}
+ EFI_ACPI_X_GPE1_BLK_ADDRESS}
};
VOID*
diff --git a/Platform/Intel/WhitleyOpenBoardPkg/Include/Acpi/Fadt.h b/Platform/Intel/WhitleyOpenBoardPkg/Include/Acpi/Fadt.h
index ebfd21b6cc..8857879370 100644
--- a/Platform/Intel/WhitleyOpenBoardPkg/Include/Acpi/Fadt.h
+++ b/Platform/Intel/WhitleyOpenBoardPkg/Include/Acpi/Fadt.h
@@ -152,10 +152,19 @@ For Watson Creek we set this to 0 and then dynamically update this to 1 in the D
// Information
//
#define EFI_ACPI_GPE0_BLK_ADDRESS_SPACE_ID EFI_ACPI_6_2_SYSTEM_IO
-#define EFI_ACPI_GPE0_BLK_BIT_WIDTH 0 // size of R_PCH_ACPI_GPE0_STS_127_96 + R_PCH_ACPI_GPE0_EN_127_96
+#define EFI_ACPI_GPE0_BLK_BIT_WIDTH 0x100 // size of R_PCH_ACPI_GPE0_STS_127_96 + R_PCH_ACPI_GPE0_EN_127_96
#define EFI_ACPI_GPE0_BLK_BIT_OFFSET 0x00
#define EFI_ACPI_GPE0_BLK_ADDRESS (EFI_ACPI_PM1A_EVT_BLK_ADDRESS + 0x80)
+//
+// X General Purpose Event 0 Register Block Generic Address
+// Information
+//
+#define EFI_ACPI_X_GPE0_BLK_ADDRESS_SPACE_ID EFI_ACPI_6_2_SYSTEM_IO
+#define EFI_ACPI_X_GPE0_BLK_BIT_WIDTH 0x00
+#define EFI_ACPI_X_GPE0_BLK_BIT_OFFSET 0x00
+#define EFI_ACPI_X_GPE0_BLK_ADDRESS EFI_ACPI_GPE0_BLK_ADDRESS
+
//
// General Purpose Event 1 Register Block Generic Address
// Information
@@ -164,6 +173,16 @@ For Watson Creek we set this to 0 and then dynamically update this to 1 in the D
#define EFI_ACPI_GPE1_BLK_BIT_WIDTH 0x0
#define EFI_ACPI_GPE1_BLK_BIT_OFFSET 0x0
#define EFI_ACPI_GPE1_BLK_ADDRESS 0x0
+
+//
+// X General Purpose Event 1 Register Block Generic Address
+// Information
+//
+#define EFI_ACPI_X_GPE1_BLK_ADDRESS_SPACE_ID EFI_ACPI_6_2_SYSTEM_IO
+#define EFI_ACPI_X_GPE1_BLK_BIT_WIDTH 0x00
+#define EFI_ACPI_X_GPE1_BLK_BIT_OFFSET 0x00
+#define EFI_ACPI_X_GPE1_BLK_ADDRESS 0x00
+
//
// Reset Register Generic Address Information
//
--
2.39.0.windows.1
next parent reply other threads:[~2023-01-05 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1672882404.git.isaac.w.oram@intel.com>
2023-01-05 1:34 ` Isaac Oram [this message]
2023-01-05 3:09 ` [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation Chiu, Chasel
2023-01-10 0:09 ` Isaac Oram
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=154285e560df24b2cf6a0a7dd9b09577dd10ce37.1672882404.git.isaac.w.oram@intel.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