Skip to content

Commit 2ba8468

Browse files
author
Linus Torvalds
committed
Revert PCIBIOS_MIN_IO changes for 2.6.13
This reverts commits 71db63a [PATCH] increase PCIBIOS_MIN_IO on x86 and 0b2bfb4 ACPI: increase PCIBIOS_MIN_IO on x86 since Lukas Sandströ<lukass@etek.chalmers.se> reports that this breaks his on-board nvidia audio. We should re-visit this later. For now we revert the change Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent b4b08e5 commit 2ba8468

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎drivers/acpi/motherboard.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ACPI_MODULE_NAME ("acpi_motherboard")
4343
*/
4444
#define IS_RESERVED_ADDR(base, len) \
4545
(((len) > 0) && ((base) > 0) && ((base) + (len) < IO_SPACE_LIMIT) \
46-
&& ((base) + (len) > 0x1000))
46+
&& ((base) + (len) > PCIBIOS_MIN_IO))
4747

4848
/*
4949
* Clearing the flag (IORESOURCE_BUSY) allows drivers to use

‎include/asm-i386/pci.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ 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 0x4000
21+
#define PCIBIOS_MIN_IO 0x1000
2222
#define PCIBIOS_MIN_MEM (pci_mem_start)
2323

24+
#define PCIBIOS_MIN_CARDBUS_IO 0x4000
25+
2426
void pcibios_config_init(void);
2527
struct pci_bus * pcibios_scan_root(int bus);
2628

‎include/asm-x86_64/pci.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ 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 0x4000
25+
#define PCIBIOS_MIN_IO 0x1000
2626
#define PCIBIOS_MIN_MEM (pci_mem_start)
2727

28+
#define PCIBIOS_MIN_CARDBUS_IO 0x4000
29+
2830
void pcibios_config_init(void);
2931
struct pci_bus * pcibios_scan_root(int bus);
3032
extern int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, u32 *value);

0 commit comments

Comments
 (0)