[PATCH][2.4.26-pre5][x86_64] pci=noapci bogus warning

From: Mikael Pettersson
Date: Sat Mar 20 2004 - 18:12:08 EST


Andi,

2.4.26-pre5 on x86_64 does implement pci=noacpi, but
using the option triggers a scary message from PCI that
the option is unknown. (It's really e820.c and ACPI
that implement it.)

This is highly confusing when once's trying to figure
out which combination of apic/noapic, acpi=, and pci=
leads to a working system :-(

The patch below fixes this by updating pci-pc.c to
handle "pci=noacpi" like i386 does.

[My MSI K8T-NEO-FIS2R needs ACPI for poweroff (since
there's no APM in the x86_64 kernel), and then pci=noacpi
to prevent ACPI from overriding the perfectly good MP
table's data and mess up the timer and the NIC.]

/Mikael

diff -ruN linux-2.4.26-pre5/arch/x86_64/kernel/pci-pc.c linux-2.4.26-pre5.x86_64-pci=noacpi-fix/arch/x86_64/kernel/pci-pc.c
--- linux-2.4.26-pre5/arch/x86_64/kernel/pci-pc.c 2003-11-29 00:28:11.000000000 +0100
+++ linux-2.4.26-pre5.x86_64-pci=noacpi-fix/arch/x86_64/kernel/pci-pc.c 2004-03-20 23:22:27.000000000 +0100
@@ -645,6 +645,9 @@
} else if (!strncmp(str, "lastbus=", 8)) {
pcibios_last_bus = simple_strtol(str+8, NULL, 0);
return NULL;
+ } else if (!strncmp(str, "noacpi", 6)) {
+ acpi_noirq_set();
+ return NULL;
}
return str;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/