Re: PCI in 112

Martin Mares (mj@ucw.cz)
Mon, 3 Aug 1998 12:16:47 +0200


Hello,

> The PCI code in 2.1.112 seems strange, I accidently booted 2.1.112 on a
> 486-100 ACC Micro 2087 chipset (4MB RAM) and no PCI today.
> The kernel detected all possible combinations of bus numbers and
> devices (65536 in all), discarding most (all?) of them due to invalid
> header types.

Please try this patch.

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"What's the difference between '486 and Pentium? About 2.10^-4"

--- arch/i386/kernel/bios32.c.mj Mon Aug 3 12:08:47 1998 +++ arch/i386/kernel/bios32.c Mon Aug 3 12:14:37 1998 @@ -920,6 +920,13 @@ struct pci_bus *b = &pci_root; int i; + /* + * Don't search for peer host bridges if we use config type 2 + * since it reads bogus values for non-existent busses and + * chipsets supporting multiple primary busses use conf1 anyway. + */ + if (access_pci == &pci_direct_conf2) + return; do { int n = b->subordinate+1; u16 l;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html