Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jun 2000 09:54:23 -0600 (MDT)
From:      Fred Clift <fred@veriohosting.com>
To:        freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org
Subject:   changed pci bus probe order from 3.2 to 4.0 -- ideas?
Message-ID:  <Pine.BSF.4.21.0006010951380.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 as to why switching cables, or changing which card gets
which IP address isn't really a good solution.  The short answer is that
the second card doesn't actually ever have a network cable plugged into it
at all, and is just there as a carrier of a home-brew network boot-bios.

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-stable" 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.0006010951380.4504-100000>