Skip to content

Commit 236e946

Browse files
committed
Revert "PCI: use ACPI _CRS data by default"
This reverts commit 9e9f46c. Quoting from the commit message: "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." And guess what? The _CRS code causes trouble. Signed-off-by: Linus Torvalds <[email protected]>
1 parent f27884a commit 236e946

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
@@ -1855,7 +1855,7 @@ and is between 256 and 4096 characters. It is defined in the file
18551855
IRQ routing is enabled.
18561856
noacpi [X86] Do not use ACPI for IRQ routing
18571857
or for PCI scanning.
1858-
nocrs [X86] Don't use _CRS for PCI resource
1858+
use_crs [X86] Use _CRS for PCI resource
18591859
allocation.
18601860
routeirq Do IRQ routing for all PCI devices.
18611861
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_NO_ROOT_CRS 0x10000
28+
#define PCI_USE__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
@@ -238,7 +238,7 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
238238
#endif
239239
}
240240

241-
if (bus && !(pci_probe & PCI_NO_ROOT_CRS))
241+
if (bus && (pci_probe & PCI_USE__CRS))
242242
get_current_resources(device, busnum, domain, bus);
243243
return bus;
244244
}

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_NO_ROOT_CRS))
104+
if (pci_probe & PCI_USE__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, "nocrs")) {
519-
pci_probe |= PCI_NO_ROOT_CRS;
518+
} else if (!strcmp(str, "use_crs")) {
519+
pci_probe |= PCI_USE__CRS;
520520
return NULL;
521521
} else if (!strcmp(str, "earlydump")) {
522522
pci_early_dump_regs = 1;

0 commit comments

Comments
 (0)