Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2000 08:53:59 -0600 (MDT)
From:      Fred Clift <fred@veriohosting.com>
To:        freebsd-questions@freebsd.org
Subject:   change in pci bus probe order between 3.2 and 4.0?
Message-ID:  <Pine.BSF.4.21.0006010842540.4504-100000@vespa.orem.iserver.com>

next in thread | raw e-mail | index | archive | help

Hi.  I've just switched to 4.0 right now and I have a problem.

(well the first problem is that I dont know enough about freebsd, but I
digress)

I have two fxp network cards in box (intel ether express pro 10/100), one
of which is integrated into the motherboard, the other of which is pluged
into an active pci riser card.

In 3.2 and 4.0, the pci-bus on the riser card is pci3 and the
'integrated' pci bus is 0. 

In 3.2 pci0 is scanned first, for devices and the integrated card is found
and made fxp0, then pci1, pci2 and finally pci3, finding the second card,
making it fxp1.

In 4.0 it seems that pci3, then pci2 then pci1 then pci0 are being probed,
finding the cards in the other order, and swapping what is fxp0 and fxp1.



The problem is that the cards get swapped.  It's a long story why just
switching the cables on the cards isn't really an option (lots of
machines, wiring in racks of lots of machines shouldn't depend on which
kernel or even which os the box is running, etc...)

So, is there some way in the kernel config file to wire down which busses
fxp0 and fxp1 live on?  The only experience I have with this is playing
around with isa sound cards in my desktop machine...

Or alternatively, I _think_ that the bus probe stuff is in
/usr/src/sys/kern/subr_bus.c  I tried fiddling with device_add_child and
device_add_child_ordered, but in retrospect it seems that that would just
ocntrol the order in which an individual bus is scanned.  How can I change
the order in which the busses are scanned? 


Thanks in advance for any help you can give me.

Fred

-- 
Fred Clift - fred@veriohosting.com -- Remember: If brute 
force doesn't work, you're just not using enough.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006010842540.4504-100000>