Skip to content

Commit 71db63a

Browse files
Ivan KokshayskyLinus Torvalds
authored andcommitted
[PATCH] increase PCIBIOS_MIN_IO on x86
There is a number of x86 laptops that have some non-PCI IO ports in the 0x1000-0x1fff range, and it's quite hard to control the correct order of resource allocation between PCI and other subsystems controlling these ports. Especially with modular kernel. So just increase PCIBIOS_MIN_IO to 0x4000 to prevent any new PCI resource allocations in the problematic range (this limitation must apply _only_ to the root bus resources - see Linus' change in pci_bus_alloc_resource). As PCIBIOS_MIN_IO and PCIBIOS_MIN_CARDBUS_IO are the same now on i386 and x86-64, we can remove the latter. Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 688d191 commit 71db63a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎include/asm-i386/pci.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ extern unsigned int pcibios_assign_all_busses(void);
1818
#define pcibios_scan_all_fns(a, b) 0
1919

2020
extern unsigned long pci_mem_start;
21-
#define PCIBIOS_MIN_IO 0x1000
21+
#define PCIBIOS_MIN_IO 0x4000
2222
#define PCIBIOS_MIN_MEM (pci_mem_start)
2323

24-
#define PCIBIOS_MIN_CARDBUS_IO 0x4000
25-
2624
void pcibios_config_init(void);
2725
struct pci_bus * pcibios_scan_root(int bus);
2826

‎include/asm-x86_64/pci.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ extern unsigned int pcibios_assign_all_busses(void);
2222
extern int no_iommu, force_iommu;
2323

2424
extern unsigned long pci_mem_start;
25-
#define PCIBIOS_MIN_IO 0x1000
25+
#define PCIBIOS_MIN_IO 0x4000
2626
#define PCIBIOS_MIN_MEM (pci_mem_start)
2727

28-
#define PCIBIOS_MIN_CARDBUS_IO 0x4000
29-
3028
void pcibios_config_init(void);
3129
struct pci_bus * pcibios_scan_root(int bus);
3230
extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value);

0 commit comments

Comments
 (0)