Skip to content

Commit 9e9f46c

Browse files
committed
PCI: use ACPI _CRS data by default
At this point, it seems to solve more problems than it causes, so let's try using it by default. It's an easy revert if it ends up causing trouble. Reviewed-by: Yinghai Lu <yhlu.kernel@gmail.com> Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 3b073ed commit 9e9f46c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Documentation/kernel-parameters.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1787,7 +1787,7 @@ and is between 256 and 4096 characters. It is defined in the file
17871787
IRQ routing is enabled.
17881788
noacpi [X86] Do not use ACPI for IRQ routing
17891789
or for PCI scanning.
1790-
use_crs [X86] Use _CRS for PCI resource
1790+
nocrs [X86] Don't use _CRS for PCI resource
17911791
allocation.
17921792
routeirq Do IRQ routing for all PCI devices.
17931793
This is normally done in pci_enable_device(),

arch/x86/include/asm/pci_x86.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#define PCI_BIOS_IRQ_SCAN 0x2000
2626
#define PCI_ASSIGN_ALL_BUSSES 0x4000
2727
#define PCI_CAN_SKIP_ISA_ALIGN 0x8000
28-
#define PCI_USE__CRS 0x10000
28+
#define PCI_NO_ROOT_CRS 0x10000
2929
#define PCI_CHECK_ENABLE_AMD_MMCONF 0x20000
3030
#define PCI_HAS_IO_ECS 0x40000
3131
#define PCI_NOASSIGN_ROMS 0x80000

arch/x86/pci/acpi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
217217
#endif
218218
}
219219

220-
if (bus && (pci_probe & PCI_USE__CRS))
220+
if (bus && !(pci_probe & PCI_NO_ROOT_CRS))
221221
get_current_resources(device, busnum, domain, bus);
222222
return bus;
223223
}

arch/x86/pci/amd_bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void x86_pci_root_bus_res_quirks(struct pci_bus *b)
101101
struct pci_root_info *info;
102102

103103
/* don't go for it if _CRS is used */
104-
if (pci_probe & PCI_USE__CRS)
104+
if (!(pci_probe & PCI_NO_ROOT_CRS))
105105
return;
106106

107107
/* if only one root bus, don't need to anything */

arch/x86/pci/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ char * __devinit pcibios_setup(char *str)
515515
} else if (!strcmp(str, "assign-busses")) {
516516
pci_probe |= PCI_ASSIGN_ALL_BUSSES;
517517
return NULL;
518-
} else if (!strcmp(str, "use_crs")) {
519-
pci_probe |= PCI_USE__CRS;
518+
} else if (!strcmp(str, "nocrs")) {
519+
pci_probe |= PCI_NO_ROOT_CRS;
520520
return NULL;
521521
} else if (!strcmp(str, "earlydump")) {
522522
pci_early_dump_regs = 1;

0 commit comments

Comments
 (0)