ACPICA: PCI: Undefined ACPI_ADR_SPACE_PCI_CONFIG when CONFIG_PCI is unset
Subsystems (2)
PATCH 1/1 ACPICA: PCI: Undefined ACPI_ADR_SPACE_PCI_CONFIG when CONFIG_PCI is unset
ACPI core subsystem initialization will fail when Kernel disabled PCI but ACPI tables still have PCI config address spaces.
Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined.
--- drivers/acpi/acpica/evhandler.c | 2 ++ include/acpi/acconfig.h | 4 ++++ 2 files changed, 6 insertions(+)
drivers/acpi/acpica/evhandler.c +2 -0
@@ -26,7 +26,9 @@ acpi_ev_install_handler(acpi_handle obj_handle,u8 acpi_gbl_default_address_spaces[ACPI_NUM_DEFAULT_SPACES ] = {ACPI_ADR_SPACE_SYSTEM_MEMORY ,ACPI_ADR_SPACE_SYSTEM_IO , +#ifdef ACPI_PCI_CONFIGUREDACPI_ADR_SPACE_PCI_CONFIG , +#endifACPI_ADR_SPACE_DATA_TABLE };
include/acpi/acconfig.h +4 -0
@@ -162,7 +162,11 @@/* Maximum space_ids for Operation Regions */ #define ACPI_MAX_ADDRESS_SPACE 255 +#ifdef ACPI_PCI_CONFIGURED #define ACPI_NUM_DEFAULT_SPACES 4 +#else +#define ACPI_NUM_DEFAULT_SPACES 3 +#endif /* Array sizes. Used for range checking also */
Signature · 1 line
2.33.1
Rafael J. Wysocki
maintainerQuoted 8 lines · Ruidong Tian
ACPI core subsystem initialization will fail when Kernel disabled PCI but ACPI tables still have PCI config address spaces.
Enable
ACPI_ADR_SPACE_PCI_CONFIGinacpi_gbl_default_address_spacesonly whenACPI_PCI_CONFIGUREDis defined.Signed-off-by Ruidong Tian <[email protected]>
As an ACPICA change, this should first be submitted (as a pull request) to the upstream ACPICA project on GitHub.
Having done that, please resubmit the patch with a Link tag pointing to the corresponding upstream pull request.
Thanks!
Quoted 38 lines
--- drivers/acpi/acpica/evhandler.c | 2 ++ include/acpi/acconfig.h | 4 ++++ 2 files changed, 6 insertions(+)drivers/acpi/acpica/evhandler.c +2
-0@@ -26,7 +26,9 @@ acpi_ev_install_handler(acpi_handle obj_handle,u8 acpi_gbl_default_address_spaces[ACPI_NUM_DEFAULT_SPACES ] = {ACPI_ADR_SPACE_SYSTEM_MEMORY ,ACPI_ADR_SPACE_SYSTEM_IO , +#ifdef ACPI_PCI_CONFIGUREDACPI_ADR_SPACE_PCI_CONFIG , +#endifACPI_ADR_SPACE_DATA_TABLE };include/acpi/acconfig.h +4
-1@@ -162,7 +162,11 @@/* Maximum space_ids for Operation Regions */ #define ACPI_MAX_ADDRESS_SPACE 255 +#ifdef ACPI_PCI_CONFIGURED #define ACPI_NUM_DEFAULT_SPACES 4 +#else +#define ACPI_NUM_DEFAULT_SPACES 3 +#endif /* Array sizes. Used for range checking also */ --2.33.1
This patch depends on kernel-specific ACPICA configuration, can I submit it to ACPICA
projects?
Quoted 55 lines · Rafael J. Wysocki
Quoted 7 lines · Ruidong Tian
ACPI core subsystem initialization will fail when Kernel disabled PCI but ACPI tables still have PCI config address spaces.
Enable
ACPI_ADR_SPACE_PCI_CONFIGinacpi_gbl_default_address_spacesonly whenACPI_PCI_CONFIGUREDis defined.Signed-off-by Ruidong Tian <[email protected]>As an ACPICA change, this should first be submitted (as a pull request) to the upstream ACPICA project on GitHub.
Having done that, please resubmit the patch with a Link tag pointing to the corresponding upstream pull request.
Thanks!
Quoted 38 lines
--- drivers/acpi/acpica/evhandler.c | 2 ++ include/acpi/acconfig.h | 4 ++++ 2 files changed, 6 insertions(+)drivers/acpi/acpica/evhandler.c +2
-0@@ -26,7 +26,9 @@ acpi_ev_install_handler(acpi_handle obj_handle,u8 acpi_gbl_default_address_spaces[ACPI_NUM_DEFAULT_SPACES ] = {ACPI_ADR_SPACE_SYSTEM_MEMORY ,ACPI_ADR_SPACE_SYSTEM_IO , +#ifdef ACPI_PCI_CONFIGUREDACPI_ADR_SPACE_PCI_CONFIG , +#endifACPI_ADR_SPACE_DATA_TABLE };include/acpi/acconfig.h +4
-1@@ -162,7 +162,11 @@/* Maximum space_ids for Operation Regions */ #define ACPI_MAX_ADDRESS_SPACE 255 +#ifdef ACPI_PCI_CONFIGURED #define ACPI_NUM_DEFAULT_SPACES 4 +#else +#define ACPI_NUM_DEFAULT_SPACES 3 +#endif /* Array sizes. Used for range checking also */ --2.33.1