* [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation [not found] <cover.1672882404.git.isaac.w.oram@intel.com> @ 2023-01-05 1:34 ` Isaac Oram 2023-01-05 3:09 ` Chiu, Chasel 0 siblings, 1 reply; 3+ messages in thread From: Isaac Oram @ 2023-01-05 1:34 UTC (permalink / raw) To: devel; +Cc: Isaac Oram, Nate DeSimone, Chasel Chiu, Ankit Sinha, Suresh Ponnusamy 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 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation 2023-01-05 1:34 ` [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation Isaac Oram @ 2023-01-05 3:09 ` Chiu, Chasel 2023-01-10 0:09 ` Isaac Oram 0 siblings, 1 reply; 3+ messages in thread From: Chiu, Chasel @ 2023-01-05 3:09 UTC (permalink / raw) To: Oram, Isaac W, devel@edk2.groups.io Cc: Desimone, Nathaniel L, Sinha, Ankit, Ponnusamy, Suresh Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> > -----Original Message----- > From: Oram, Isaac W <isaac.w.oram@intel.com> > Sent: Wednesday, January 4, 2023 5:34 PM > To: devel@edk2.groups.io > Cc: Oram, Isaac W <isaac.w.oram@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Chiu, Chasel <chasel.chiu@intel.com>; > Sinha, Ankit <ankit.sinha@intel.com>; Ponnusamy, Suresh > <sureshkumarp@ami.com> > Subject: [edk2-devel][edk2-platforms][PATCH V1 1/1] > WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation > > 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/Fa > dt62.aslc > b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fa > dt62.aslc > index f37cf0a508..b7f15ef716 100644 > --- > a/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fa > dt62.aslc > +++ > b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/F > +++ adt62.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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation 2023-01-05 3:09 ` Chiu, Chasel @ 2023-01-10 0:09 ` Isaac Oram 0 siblings, 0 replies; 3+ messages in thread From: Isaac Oram @ 2023-01-10 0:09 UTC (permalink / raw) To: Chiu, Chasel, devel@edk2.groups.io Cc: Desimone, Nathaniel L, Sinha, Ankit, Ponnusamy, Suresh Pushed as a57865b571..3e0f5b21c9 -----Original Message----- From: Chiu, Chasel <chasel.chiu@intel.com> Sent: Wednesday, January 4, 2023 7:09 PM To: Oram, Isaac W <isaac.w.oram@intel.com>; devel@edk2.groups.io Cc: Desimone, Nathaniel L <nathaniel.l.desimone@intel.com>; Sinha, Ankit <ankit.sinha@intel.com>; Ponnusamy, Suresh <sureshkumarp@ami.com> Subject: RE: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> > -----Original Message----- > From: Oram, Isaac W <isaac.w.oram@intel.com> > Sent: Wednesday, January 4, 2023 5:34 PM > To: devel@edk2.groups.io > Cc: Oram, Isaac W <isaac.w.oram@intel.com>; Desimone, Nathaniel L > <nathaniel.l.desimone@intel.com>; Chiu, Chasel > <chasel.chiu@intel.com>; Sinha, Ankit <ankit.sinha@intel.com>; > Ponnusamy, Suresh <sureshkumarp@ami.com> > Subject: [edk2-devel][edk2-platforms][PATCH V1 1/1] > WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation > > 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/Fa > dt62.aslc > b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fa > dt62.aslc > index f37cf0a508..b7f15ef716 100644 > --- > a/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/Fa > dt62.aslc > +++ > b/Platform/Intel/WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Fadt/F > +++ adt62.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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-10 0:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <cover.1672882404.git.isaac.w.oram@intel.com> 2023-01-05 1:34 ` [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/AcpiTables: Fix EFI_ACPI_GPE0_BLK_LEN calculation Isaac Oram 2023-01-05 3:09 ` Chiu, Chasel 2023-01-10 0:09 ` Isaac Oram
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox