Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

bce: Device not configured

90 views
Skip to first unread message

Jan Winter

unread,
Mar 13, 2012, 9:08:46 AM3/13/12
to
Hello,

on an Dell Blade m610 is not possible to change the network media option:

ifconfig bce0 media 100baseTX mediaopt full-duplex up
ifconfig: SIOCSIFMEDIA (media): Device not configured

Setting the media option to "autoselect" and connecting the m610 to a
100 MBit switch, I always get "no carrier"
only 1g full-duplex seems to be working. I have tested this on
8.3-prerelease and 9-stable

any Ideas?

cheers
Jan

pciconf -lv
bce0@pci0:1:0:0: class=0x020000 card=0x02871028 chip=0x163a14e4
rev=0x20 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'NetXtreme II BCM5709S Gigabit Ethernet'
class = network
subclass = ethernet

dmesg
bce0: <Broadcom NetXtreme II BCM5709 1000Base-SX (C0)> mem
0xda000000-0xdbffffff irq 36 at device 0.0 on pci1
miibus0: <MII bus> on bce0
brgphy0: <BCM5709S 1000/2500baseSX PHY> PHY 2 on miibus0
brgphy0: 1000baseSX-FDX, auto
bce0: Ethernet address: 00:26:b9:fb:04:0c
bce0: ASIC (0x57092000); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.0.11);
Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NCSI 2.0.5)
Coal (RX:6,6,18,18; TX:20,20,80,80)
bce1: <Broadcom NetXtreme II BCM5709 1000Base-SX (C0)> mem
0xdc000000-0xddffffff irq 48 at device 0.1 on pci1
miibus1: <MII bus> on bce1
brgphy1: <BCM5709S 1000/2500baseSX PHY> PHY 2 on miibus1
brgphy1: 1000baseSX-FDX, auto
bce1: Ethernet address: 00:26:b9:fb:04:0e
bce1: ASIC (0x57092000); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.0.11);
Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|MFW); MFW (NCSI 2.0.5)
Coal (RX:6,6,18,18; TX:20,20,80,80)



_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stabl...@freebsd.org"

YongHyeon PYUN

unread,
Mar 14, 2012, 2:40:47 PM3/14/12
to
I'm not sure you're seeing one of long standing remote PHY issue of
blade box but would you try the patch at the following URL?
http://people.freebsd.org/~yongari/bce/bce.rphy.diff

After applying the patch, show me the dmesg output(bce(4) and
brgphy(4) related ones) and 'ifconfig -m bce0'.
Note, the patch was not tested at all(lack of hardware).

Jan Winter

unread,
Mar 14, 2012, 10:34:20 AM3/14/12
to
Hello,

thank you very much, for your quick support
Now its looking much better

ifconfig -m bce0
bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500

options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>

capabilities=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
ether 00:26:b9:fb:04:0c
inet 192.168.100.30 netmask 0xffffff00 broadcast 192.168.100.255
inet6 fe80::226:b9ff:fefb:40c%bce0 prefixlen 64 tentative
scopeid 0x1
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
supported media:
media autoselect
media 1000baseT mediaopt full-duplex
media 1000baseT
media 100baseTX mediaopt full-duplex
media 100baseTX
media 10baseT/UTP mediaopt full-duplex
media 10baseT/UTP

dmesg:
.....
bce0: <Broadcom NetXtreme II BCM5709 1000Base-SX (C0)> mem
0xda000000-0xdbffffff irq 36 at device 0.0 on pci1
bce0: attempting to allocate 1 MSI vectors (16 supported)
msi: routing MSI IRQ 256 to local APIC 16 vector 52
bce0: using IRQ 256 for MSI
bce0: Remote PHY : TP
bce0: bpf attached
bce0: Ethernet address: 00:26:b9:fb:04:0c
bce0: ASIC (0x57092000); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.0.11);
Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|Remote PHY(TP)|MFW); MFW (NCSI 2.0.5)
Coal (RX:6,6,18,18; TX:20,20,80,80)
bce1: <Broadcom NetXtreme II BCM5709 1000Base-SX (C0)> mem
0xdc000000-0xddffffff irq 48 at device 0.1 on pci1
bce1: attempting to allocate 1 MSI vectors (16 supported)
msi: routing MSI IRQ 257 to local APIC 16 vector 53
bce1: using IRQ 257 for MSI
bce1: Remote PHY : TP
bce1: bpf attached
bce1: Ethernet address: 00:26:b9:fb:04:0e
bce1: ASIC (0x57092000); Rev (C0); Bus (PCIe x4, 2.5Gbps); B/C (5.0.11);
Bufs (RX:2;TX:2;PG:8); Flags (SPLT|MSI|Remote PHY(TP)|MFW); MFW (NCSI 2.0.5)
Coal (RX:6,6,18,18; TX:20,20,80,80)
.....

I have done a quick test with 100 and 1000 MBit, both working very well.
Its possible to get a Patch for 8 Stable?


thank in advance
Jan

Sami Halabi

unread,
Mar 14, 2012, 4:58:33 PM3/14/12
to
Hi,
I'm having this card on my IBM X3550, FBSD8.1-R-p8:
# pciconf -lv
bce0@pci0:11:0:0: class=0x020000 card=0x03a91014 chip=0x163914e4
rev=0x20 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'NetXtreme II Gigabit Ethernet (BCM5709)'
class = network
subclass = ethernet
bce1@pci0:11:0:1: class=0x020000 card=0x03a91014 chip=0x163914e4
rev=0x20 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'NetXtreme II Gigabit Ethernet (BCM5709)'
class = network
subclass = ethernet

# lspci
0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709
Gigabit Ethernet (rev 20)
0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709
Gigabit Ethernet (rev 20)

the box is running for about 200 days so i don't have dmesg output.

do i need to patch?


Sami
>> http://people.freebsd.org/~**yongari/bce/bce.rphy.diff<http://people.freebsd.org/~yongari/bce/bce.rphy.diff>
>>
>> After applying the patch, show me the dmesg output(bce(4) and
>> brgphy(4) related ones) and 'ifconfig -m bce0'.
>> Note, the patch was not tested at all(lack of hardware).
>>
>
> Hello,
>
> thank you very much, for your quick support
> Now its looking much better
>
> ifconfig -m bce0
> bce0: flags=8843<UP,BROADCAST,**RUNNING,SIMPLEX,MULTICAST> metric 0 mtu
> 1500
> options=c01bb<RXCSUM,TXCSUM,**VLAN_MTU,VLAN_HWTAGGING,JUMBO_**
> MTU,VLAN_HWCSUM,TSO4,VLAN_**HWTSO,LINKSTATE>
> capabilities=c01bb<RXCSUM,**TXCSUM,VLAN_MTU,VLAN_**
> HWTAGGING,JUMBO_MTU,VLAN_**HWCSUM,TSO4,VLAN_HWTSO,**LINKSTATE>
> ether 00:26:b9:fb:04:0c
> inet 192.168.100.30 netmask 0xffffff00 broadcast 192.168.100.255
> inet6 fe80::226:b9ff:fefb:40c%bce0 prefixlen 64 tentative scopeid
> 0x1
> nd6 options=29<PERFORMNUD,**IFDISABLED,AUTO_LINKLOCAL>
> ______________________________**_________________
> freebsd...@freebsd.org mailing list
> http://lists.freebsd.org/**mailman/listinfo/freebsd-**stable<http://lists.freebsd.org/mailman/listinfo/freebsd-stable>
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@**freebsd.org<freebsd-stabl...@freebsd.org>
> "
>



--
Sami Halabi
Information Systems Engineer
NMS Projects Expert

YongHyeon PYUN

unread,
Mar 15, 2012, 1:29:28 PM3/15/12
to
> >http://people.freebsd.org/~yongari/bce/bce.rphy.diff
> >
> >After applying the patch, show me the dmesg output(bce(4) and
> >brgphy(4) related ones) and 'ifconfig -m bce0'.
> >Note, the patch was not tested at all(lack of hardware).
>
> Hello,
>
> thank you very much, for your quick support
> Now its looking much better
>
> ifconfig -m bce0
> bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>
> options=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
>
> capabilities=c01bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
> ether 00:26:b9:fb:04:0c
> inet 192.168.100.30 netmask 0xffffff00 broadcast 192.168.100.255
> inet6 fe80::226:b9ff:fefb:40c%bce0 prefixlen 64 tentative
> scopeid 0x1
> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Thanks a lot for testing. This patch was made long time ago but I
haven't had chance to commit it due to lack of access to hardware.
Because the patch bypasses mii(4) layer and makes it hard to read
code, I didn't like the patch but it seems the patch makes bce(4)
usable on blade boxes at least.
I'll commit the patch next week.

> Its possible to get a Patch for 8 Stable?
>

I will do MFC to stable/[7-9]. And bce.rphy.diff should be applied
cleanly to stable/[7-9].

>
> thank in advance
> Jan

YongHyeon PYUN

unread,
Mar 15, 2012, 1:42:46 PM3/15/12
to
On Wed, Mar 14, 2012 at 10:58:33PM +0200, Sami Halabi wrote:
> Hi,
> I'm having this card on my IBM X3550, FBSD8.1-R-p8:
> # pciconf -lv
> bce0@pci0:11:0:0: class=0x020000 card=0x03a91014 chip=0x163914e4
> rev=0x20 hdr=0x00
> vendor = 'Broadcom Corporation'
> device = 'NetXtreme II Gigabit Ethernet (BCM5709)'
> class = network
> subclass = ethernet
> bce1@pci0:11:0:1: class=0x020000 card=0x03a91014 chip=0x163914e4
> rev=0x20 hdr=0x00
> vendor = 'Broadcom Corporation'
> device = 'NetXtreme II Gigabit Ethernet (BCM5709)'
> class = network
> subclass = ethernet
>
> # lspci
> 0b:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709
> Gigabit Ethernet (rev 20)
> 0b:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709
> Gigabit Ethernet (rev 20)
>
> the box is running for about 200 days so i don't have dmesg output.
>
> do i need to patch?
>

I think you don't need the patch unless you're suffering from link
establishment issue. The patch was made to support remote PHY
capability of Broadcom controller which is commonly found on Dell
blade systems.

Jan Winter

unread,
Mar 15, 2012, 10:20:10 AM3/15/12
to
On 03/15/12 18:29, YongHyeon PYUN wrote:
> On Wed, Mar 14, 2012 at 03:34:20PM +0100, Jan Winter wrote:
>> On 03/14/12 19:40, YongHyeon PYUN wrote:
>>> On Tue, Mar 13, 2012 at 02:08:46PM +0100, Jan Winter wrote:
>>>> Hello,
>>>>
>>>> on an Dell Blade m610 is not possible to change the network media option:
>>>>
>>>> ifconfig bce0 media 100baseTX mediaopt full-duplex up
>>>> ifconfig: SIOCSIFMEDIA (media): Device not configured
>>>>
>>>> Setting the media option to "autoselect" and connecting the m610 to a
>>>> 100 MBit switch, I always get "no carrier"
>>>> only 1g full-duplex seems to be working. I have tested this on
>>>> 8.3-prerelease and 9-stable
>>>>
>>>> any Ideas?
>>>>
>>>> cheers
>>>> Jan
>>>>
>>>> pciconf -lv
>>>> bce0@pci0:1:0:0: class=0x020000 card=0x02871028 chip=0x163a14e4
>>>> rev=0x20 hdr=0x00
>>>> vendor = 'Broadcom Corporation'
>>>> device = 'NetXtreme II BCM5709S Gigabit Ethernet'
>>>> class = network
>>>> subclass = ethernet
>>>>
I getting erros with the 8-stable source

cd /usr/src
patch < /usr/home/jan/bce.rphy.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/dev/bce/if_bce.c
|===================================================================
|--- sys/dev/bce/if_bce.c (revision 232950)
|+++ sys/dev/bce/if_bce.c (working copy)
--------------------------
Patching file sys/dev/bce/if_bce.c using Plan A...
Hunk #1 succeeded at 364.
Hunk #2 succeeded at 373.
Hunk #3 succeeded at 420.
Hunk #4 succeeded at 760.
Hunk #5 succeeded at 1307.
Hunk #6 succeeded at 1357.
Hunk #7 succeeded at 1396.
Hunk #8 failed at 1428.
Hunk #9 succeeded at 1578.
Hunk #10 succeeded at 2045.
Hunk #11 succeeded at 2074.
Hunk #12 succeeded at 2113.
Hunk #13 succeeded at 2123.
Hunk #14 succeeded at 2133.
Hunk #15 succeeded at 3217.
Hunk #16 succeeded at 5106.
Hunk #17 succeeded at 6171.
Hunk #18 failed at 6255.
Hunk #19 succeeded at 6366.
Hunk #20 succeeded at 6465.
Hunk #21 succeeded at 6510.
Hunk #22 succeeded at 7223.
Hunk #23 succeeded at 7830.
Hunk #24 succeeded at 8527.
Hunk #25 succeeded at 8554.
2 out of 25 hunks failed--saving rejects to sys/dev/bce/if_bce.c.rej
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: sys/dev/bce/if_bcereg.h
|===================================================================
|--- sys/dev/bce/if_bcereg.h (revision 232950)
|+++ sys/dev/bce/if_bcereg.h (working copy)
--------------------------
Patching file sys/dev/bce/if_bcereg.h using Plan A...
Hunk #1 succeeded at 814.
Hunk #2 succeeded at 1096.
Hunk #3 succeeded at 6491.


with 9-stable i didn't see that errors. Or did I something wrong?

YongHyeon PYUN

unread,
Mar 16, 2012, 1:32:15 PM3/16/12
to
Oops, try this one for stable/8.
http://people.freebsd.org/~yongari/bce/bce.rphy.stable8.diff

Jan Winter

unread,
Mar 16, 2012, 11:50:22 AM3/16/12
to
thank you for the 8-stable patch! but i am sorry this patch doesn't
work. I getting a kernel trap on boot.
The bce driver is compiled as module

pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
bce0: <Broadcom NetXtreme II BCM5709 1000Base-SX (C0)> mem
0xda000000-0xdbffffff irq 36 at device 0.0 on pci1
bce0: Remote PHY : TP
bce0: Ethernet address: 00:26:b9:fa:f0:78
bce0: [ITHREAD]


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 10
fault virtual address = 0x88
fault code = supervisor read data, page not present
instruction pointer = 0x20:0xffffffff80626551
stack pointer = 0x28:0xffffffff80f8b3e0
frame pointer = 0x28:0xffffffff80f8b410
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
trap number = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff8062fe6e at kdb_backtrace+0x5e
#1 0xffffffff805fd087 at panic+0x187
#2 0xffffffff808f3170 at trap_fatal+0x290
#3 0xffffffff808f34c1 at trap_pfault+0x201
#4 0xffffffff808f397f at trap+0x3df
#5 0xffffffff808daed4 at calltrap+0x8
#6 0xffffffff80f352b8 at bce_attach+0x3268
#7 0xffffffff80629999 at device_attach+0x69
#8 0xffffffff8062b16a at bus_generic_attach+0x1a
#9 0xffffffff802074af at acpi_pci_attach+0x14f
#10 0xffffffff80629999 at device_attach+0x69
#11 0xffffffff8062b16a at bus_generic_attach+0x1a
#12 0xffffffff80209217 at acpi_pcib_attach+0x1a7
#13 0xffffffff8020a125 at acpi_pcib_pci_attach+0x95
#14 0xffffffff80629999 at device_attach+0x69
#15 0xffffffff8062b16a at bus_generic_attach+0x1a
#16 0xffffffff802074af at acpi_pci_attach+0x14f
#17 0xffffffff80629999 at device_attach+0x69
Uptime: 1s
Automatic reboot in 15 seconds - press a key on the console to abort

YongHyeon PYUN

unread,
Mar 17, 2012, 7:45:08 PM3/17/12
to
Sorry, there was a typo. I've uploaded updated one for stable/8(The
URL is the same).

Jan Winter

unread,
Mar 21, 2012, 8:07:06 AM3/21/12
to
that patch seems to work great.
thank you

Jan
0 new messages