|
@@ -90,6 +90,50 @@ static void __devinit pcibios_fixup_device_resources(struct pci_dev *dev)
|
|
|
rom_r->start = rom_r->end = rom_r->flags = 0;
|
|
|
}
|
|
|
|
|
|
+static int __devinit can_skip_ioresource_align(const struct dmi_system_id *d)
|
|
|
+{
|
|
|
+ pci_probe |= PCI_CAN_SKIP_ISA_ALIGN;
|
|
|
+ printk(KERN_INFO "PCI: %s detected, can skip ISA alignment\n", d->ident);
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+static struct dmi_system_id can_skip_pciprobe_dmi_table[] __devinitdata = {
|
|
|
+/*
|
|
|
+ * Systems where PCI IO resource ISA alignment can be skipped
|
|
|
+ * when the ISA enable bit in the bridge control is not set
|
|
|
+ */
|
|
|
+ {
|
|
|
+ .callback = can_skip_ioresource_align,
|
|
|
+ .ident = "IBM System x3800",
|
|
|
+ .matches = {
|
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
|
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "x3800"),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .callback = can_skip_ioresource_align,
|
|
|
+ .ident = "IBM System x3850",
|
|
|
+ .matches = {
|
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
|
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "x3850"),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .callback = can_skip_ioresource_align,
|
|
|
+ .ident = "IBM System x3950",
|
|
|
+ .matches = {
|
|
|
+ DMI_MATCH(DMI_SYS_VENDOR, "IBM"),
|
|
|
+ DMI_MATCH(DMI_PRODUCT_NAME, "x3950"),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {}
|
|
|
+};
|
|
|
+
|
|
|
+void __init dmi_check_skip_isa_align(void)
|
|
|
+{
|
|
|
+ dmi_check_system(can_skip_pciprobe_dmi_table);
|
|
|
+}
|
|
|
+
|
|
|
/*
|
|
|
* Called after each bus is probed, but before its children
|
|
|
* are examined.
|
|
@@ -462,6 +506,9 @@ char * __devinit pcibios_setup(char *str)
|
|
|
} else if (!strcmp(str, "routeirq")) {
|
|
|
pci_routeirq = 1;
|
|
|
return NULL;
|
|
|
+ } else if (!strcmp(str, "skip_isa_align")) {
|
|
|
+ pci_probe |= PCI_CAN_SKIP_ISA_ALIGN;
|
|
|
+ return NULL;
|
|
|
}
|
|
|
return str;
|
|
|
}
|