9-stable - ifmedia_set: no match for 0x0/0xfffffff

Marius Strobl marius at alchemy.franken.de
Sat Jan 28 21:38:59 UTC 2012


On Sun, Jan 29, 2012 at 04:56:28AM +0900, Randy Bush wrote:
> > Hrm, the problem apparently is that while when probing, the PHY
> > still knows about the media it supports, it just has forgotten
> > about it after the reset during attach. There was a change prior
> > to 8.2 which would turn this from silently being ignored (which
> > generally might or might not work) into resulting what you see
> > now (the upper layers arguably shouldn't trigger a panic in this
> > case though). I can't remember a change to either bge(4) or
> > brgphy(4) between 8.2 and now which could trigger this though.
> > Have you tried to set the loader-tunable hw.bge.allow_asf to 0?
> > The default for that option still is different between 8 and 9+.
> 
> it no longer panics when booting, but the interface comes up not seeing
> carrier
> 
> bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
>         ether 00:30:48:82:11:a2
>         inet 198.180.150.1 netmask 0xffffff80 broadcast 198.180.150.127
>         inet6 fe80::230:48ff:fe82:11a2%bge0 prefixlen 64 scopeid 0x1 
>         inet6 2001:418:8006::1 prefixlen 64 
>         inet 198.180.150.2 netmask 0xffffffff broadcast 198.180.150.2
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>         media: Ethernet 1000baseT (none)
>         status: no carrier
> 

Are you sure that the other end is also forced to 1000baseT half-duplex?
What happens if you set hw.bge.allow_asf to 0 and use auto-negotiation
on both sides?

Marius



More information about the freebsd-stable mailing list