mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[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:
parent
8f60774a11
commit
0637a70a5d
12 changed files with 41 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue