After giving this some thought, I think we can #define ACPI_PCI_CONFIGURED in the global configuration file (I think it is acconfig.h) - and document why and when it should be removed.
Bob
-----Original Message-----
From: Moore, Robert <redacted>
Sent: Thursday, March 04, 2021 9:37 AM
To: <redacted>
Cc: Kaneda, Erik <redacted>; Wysocki, Rafael J <redacted>; Xinyang Ge <redacted>; <redacted>; <redacted>; <redacted>
Subject: [Devel] Re: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined
-----Original Message-----
From: Weidong Cui <redacted>
Sent: Thursday, March 04, 2021 9:06 AM
To: Moore, Robert <redacted>
Cc: Kaneda, Erik <redacted>; Wysocki, Rafael J <redacted>; Xinyang Ge <redacted>; <redacted>; <redacted>; <redacted>; Len Brown <lenb@kernel.org>
Subject: Re: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined
Well, I don't like the fact that PCI_CONFIGURED would have to be defined by each current host:
quoted
+#ifdef ACPI_PCI_CONFIGURED
I would rather the logic be reversed:
quoted
+#ifdef ACPI_PCI_NOT_CONFIGURED
Thank you for the comments, Erik and Bob!
ACPI_PCI_CONFIGURED is defined in aclinux.h (see below) and used in several places in evhandler.c and exregion.c.
I'm not sure why we want to introduce ACPI_PCI_NOT_CONFIGURED. Bob, I don't understand your concerns about "have to be defined by each current host". Can you please shed some light on it?
It is required in aclinux.h, and thus it is required in every host-dependent configuration file (acfreebsd.h, acmacosx.h, acnetbsd.h, achaiku.h, etc.) I would rather not force these host-specific header files to change.
Bob
#ifdef CONFIG_PCI
#define ACPI_PCI_CONFIGURED
#endif
-----Original Message-----
From: Kaneda, Erik <redacted>
Sent: Wednesday, March 03, 2021 10:29 AM
To: Weidong Cui <redacted>; Moore, Robert
[off-list ref]; Wysocki, Rafael J
[off-list ref]
Cc: Xinyang Ge <redacted>; <redacted>;
devel@acpica.org; linux-kernel@vger.kernel.org; Len Brown
[off-list ref]
Subject: RE: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in
acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is
defined
This looks good to me. Bob, do you have any comments?
Erik
quoted
-----Original Message-----
From: Weidong Cui <redacted>
Sent: Monday, February 8, 2021 7:18 PM
To: Moore, Robert <redacted>; Kaneda, Erik
[off-list ref]; Wysocki, Rafael J
[off-list ref]; Len Brown [off-list ref]
Cc: Weidong Cui <redacted>; Xinyang Ge
[off-list ref]; linux-acpi@vger.kernel.org; devel@acpica.org;
linux- kernel@vger.kernel.org
Subject: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in
acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is
defined
Signed-off-by: Weidong Cui <redacted>
Signed-off-by: Xinyang Ge <redacted>
---
drivers/acpi/acpica/evhandler.c | 2 ++
include/acpi/acconfig.h | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/drivers/acpi/acpica/evhandler.c
b/drivers/acpi/acpica/evhandler.c index 5884eba04..4c25ad433 100644
--- a/drivers/acpi/acpica/evhandler.c
30 more quoted lines
_______________________________________________
Devel mailing list -- devel@acpica.org
To unsubscribe send an email to devel-leave@acpica.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s