Skip to contentSkip to conversation

acpi: resource conflict check must handle disabled state

PATCH New Tony Zelenoff 1 participant 1 message Jun 15, 2012 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 acpi: resource conflict check must handle disabled state

If acpi disabled via kernel parameter, then resource checks should report no conflicts instead of reporting error.

Really, for intel chipsets there is lpc_pci driver, which checks proper resource allocation via acpi_check_resource_conflict.

When you specify acpi=off to the kernel parameters the check inside lpc_pci is done regardless of the parameter as it is done in all other drivers.

So, the acpi_check_resource_conflict must not report any errors to the caller is acpi is disabled.

kernel log error sample:
ACPI Exception: AE_BAD_PARAMETER, Thread 920463680 could not acquire Mutex [0x1] (20120320/utmutex-276)

[v2]
* wrote better comment to patch

---
 drivers/acpi/osl.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/acpi/osl.c +2 -0
index c3881b2..a05baa1 100644
@@ -1360,6 +1360,8 @@ int acpi_check_resource_conflict(const struct resource *res)
 	u8 warn = 0;
 	int clash = 0;
 
+	if (acpi_disabled)
+		return 0;
 	if (acpi_enforce_resources == ENFORCE_RESOURCES_NO)
 		return 0;
 	if (!(res->flags & IORESOURCE_IO) && !(res->flags & IORESOURCE_MEM))
Signature · 1 line
1.7.1