Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Sep 2012 14:08:27 -0700
From:      Navdeep Parhar <np@FreeBSD.org>
To:        freebsd-hackers@freebsd.org
Subject:   Order in which a driver attaches to devices
Message-ID:  <504910CB.8050007@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
I have a system with multiple cards supported by cxgbe(4).  When I build 
a kernel with the driver compiled in, it attaches to the cards in a 
different order from when it's loaded as a module.  Why?  The network 
interfaces get re-ordered and this is quite annoying.

Regards,
Navdeep

built-in:
t4nex0: <Chelsio T422-CR> mem 
0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 
at device 0.4 on pci8
cxgbe0: <port 0> on t4nex0
cxgbe1: <port 1> on t4nex0
cxgbe2: <port 2> on t4nex0
cxgbe3: <port 3> on t4nex0
t4nex1: <Chelsio T420-CR> mem 
0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 
at device 0.4 on pci6
cxgbe4: <port 0> on t4nex1
cxgbe5: <port 1> on t4nex1


kldload if_cxgb:
t4nex0: <Chelsio T420-CR> mem 
0xf8fc0000-0xf8ffffff,0xf9000000-0xf97fffff,0xf8fbe000-0xf8fbffff irq 32 
at device 0.4 on pci6
cxgbe0: <port 0> on t4nex0
cxgbe1: <port 1> on t4nex0
t4nex1: <Chelsio T422-CR> mem 
0xf9fc0000-0xf9ffffff,0xfa000000-0xfa7fffff,0xf9fbe000-0xf9fbffff irq 26 
at device 0.4 on pci8
cxgbe2: <port 0> on t4nex1
cxgbe3: <port 1> on t4nex1
cxgbe4: <port 2> on t4nex1
cxgbe5: <port 3> on t4nex1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?504910CB.8050007>