From b460c6f86b804f119516b2b47dc416658db248d7 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 14 Apr 2005 06:45:24 +0000 Subject: [PATCH] Probe PCI link devices early so that we turn them all off via _DIS before we start turning any of them back on again. This works around a bug in some BIOSen that alias two different link devices for APIC vs ATPIC modes onto the same physical hardware link. Submitted by: njl Tested by: Antoine Brodin antoine dot brodin at laposte dot net --- sys/dev/acpica/acpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 167ed1ab0419..2272a1893aa6 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -1495,6 +1495,7 @@ acpi_probe_order(ACPI_HANDLE handle, int *order) /* * 1. I/O port and memory system resource holders * 2. Embedded controllers (to handle early accesses) + * 3. PCI Link Devices */ ret = 0; if (acpi_MatchHid(handle, "PNP0C01") || acpi_MatchHid(handle, "PNP0C02")) { @@ -1503,6 +1504,9 @@ acpi_probe_order(ACPI_HANDLE handle, int *order) } else if (acpi_MatchHid(handle, "PNP0C09")) { *order = 2; ret = 1; + } else if (acpi_MatchHid(handle, "PNP0C0F")) { + *order = 3; + ret = 1; } return (ret);