[PATCH] x86: Allow disabling early pci scans with pci=noearly or disallowing conf1

Some buggy systems can machine check when config space accesses
happen for some non existent devices.  i386/x86-64 do some early
device scans that might trigger this. Allow pci=noearly to disable
this. Also when type 1 is disabling also don't do any early
accesses which are always type1.

This moves the pci= configuration parsing to be a early parameter.
I don't think this can break anything because it only changes
a single global that is only used by PCI.

Cc: [email protected]
Cc: Trammell Hudson <[email protected]>

Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
Andi Kleen 2006-09-26 10:52:41 +02:00 • committed by Andi Kleen
commit 0637a70a5d
12 changed files with 41 additions and 6 deletions

View file

@ -953,13 +953,12 @@ static int __devinit pci_setup(char *str)
}
str = k;
}
return 1;
return 0;
}
early_param("pci", pci_setup);
device_initcall(pci_init);
__setup("pci=", pci_setup);
#if defined(CONFIG_ISA) || defined(CONFIG_EISA)
/* FIXME: Some boxes have multiple ISA bridges! */
struct pci_dev *isa_bridge;