Re: Re[2]: Me too: "PCI: Discovered primary peer bus xx"

Martin Mares (mj@ucw.cz)
Mon, 3 Aug 1998 19:40:01 +0200


Hello,

> I tried the kernel options you suggested; the results are below. I didn't
> mention this in my original post, but just for the record: I'm building the
> kernel for UP with GCC v2.7.2.3.
[snip, snip]

This patch should fix all observed peer bridge detection problems,
sending it to Linus in few minutes...

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
"Black holes are where God divided by zero."

--- 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