Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
On Sun, Jan 29, 2012 at 01:19:40PM +0900, Randy Bush wrote: > > What happens if you set hw.bge.allow_asf to 0 and use auto-negotiation > > on both sides? > > it works! the switch was already auto-neg, and i forced auto-neg on the > server side. > Apart from suspend/resume issue, bge(4) still needs more code to handle controllers with ASF/IPMI firmware. This part is mostly undocumented and hard to experiment due to lack of hardware access. Current IPMI/ASF handling code shows mixed results and setting hw.bge.allow_asf to 0 will break IPMI support. > thanks. this was not pleasant. did i remember to whine that i am in > tokyo and the server is on the beast coast of the states? :) > > i think a bit of a warning about hw.bge.allow_asf in UPDATING might help > folk. > > thank you *very* much for your help. > > randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
> What happens if you set hw.bge.allow_asf to 0 and use auto-negotiation > on both sides? it works! the switch was already auto-neg, and i forced auto-neg on the server side. thanks. this was not pleasant. did i remember to whine that i am in tokyo and the server is on the beast coast of the states? :) i think a bit of a warning about hw.bge.allow_asf in UPDATING might help folk. thank you *very* much for your help. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
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 metric 0 mtu 1500 > > options=8009b > ether 00:30:48:82:11:a2 > inet 198.180.150.1 netmask 0xff80 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 0x broadcast 198.180.150.2 > nd6 options=21 > 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 ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
>> 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 an additional datum. o with hw.bge.allow_asf untouched, i.e. default o with /boot/device.hints having hint.bge.0.disabled=1 o with /etc/rc.conf having ifconfig_bge0="198.180.150.1/25 media 1000baseTX" ifconfig_bge0_alias0="inet 198.180.150.2/32" etc o it boots but bge0 carrier is down and can not be brought up comment out the bge0 entries in /etc/rc.conf, and it boots, carrier is up, and can be hand configured with the address assignments, and works. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
> 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 metric 0 mtu 1500 options=8009b ether 00:30:48:82:11:a2 inet 198.180.150.1 netmask 0xff80 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 0x broadcast 198.180.150.2 nd6 options=21 media: Ethernet 1000baseT (none) status: no carrier randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
On Sat, Jan 28, 2012 at 09:34:04PM +0900, Randy Bush wrote: > >> ok, i > >> o used device.hints to disable both bge interfaces > >> o booted successfully > >> o used serial console > >> o ifconfiged bge0 to the normal addresses > >> o and it is working > >> > >> i suspect that something sucks in bge initialization at startup. > >> insightful, i know. sorry. > > > > Has that worked before with FreeBSD and if yes with which reversion? > > yes, the bge and config worked for a long time on 7.foo and 8.foo, most > recently 8.2. > 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+. Marius ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
>> ok, i >> o used device.hints to disable both bge interfaces >> o booted successfully >> o used serial console >> o ifconfiged bge0 to the normal addresses >> o and it is working >> >> i suspect that something sucks in bge initialization at startup. >> insightful, i know. sorry. > > Has that worked before with FreeBSD and if yes with which reversion? yes, the bge and config worked for a long time on 7.foo and 8.foo, most recently 8.2. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
On Thu, Jan 26, 2012 at 12:24:11PM +0900, Randy Bush wrote: > ok, i > o used device.hints to disable both bge interfaces > o booted successfully > o used serial console > o ifconfiged bge0 to the normal addresses > o and it is working > > i suspect that something sucks in bge initialization at startup. > insightful, i know. sorry. > Has that worked before with FreeBSD and if yes with which reversion? Marius ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
ok, i o used device.hints to disable both bge interfaces o booted successfully o used serial console o ifconfiged bge0 to the normal addresses o and it is working i suspect that something sucks in bge initialization at startup. insightful, i know. sorry. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
Re: 9-stable - ifmedia_set: no match for 0x0/0xfffffff
way cool. a /boot/device.hints entry of hint.acpi.bge.1.disable=1 did disable bge1. but now it's bge0, and i need that interface. and media are present! so i tried /etc/rc.conf ifconfig_bge0="198.180.150.1/25 media 1000baseTX" ifconfig_bge0_ipv6="inet6 2001:418:8006::1/64" ifconfig_bge0_alias0="inet 198.180.150.2/32" ifconfig_bge1="media 1000baseTX" pcib4: irq 12 at device 28.2 on pci0 pcib0: allocated type 3 (0xd010-0xd01f) for rid 20 of pcib4 pcib4: domain0 pcib4: secondary bus 4 pcib4: subordinate bus 4 pcib4: memory decode 0xd010-0xd01f pcib4: no prefetched decode ACPI: Found matching pin for 4.0.INTA at func 0: 12 pci4: on pcib4 pci4: domain=0, physical bus=4 found-> vendor=0x14e4, dev=0x1659, revid=0x11 domain=0, bus=4, slot=0, func=0 class=02-00-00, hdrtype=0x00, mfdev=0 cmdreg=0x0006, statreg=0x0010, cachelnsz=8 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=a, irq=12 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit map[10]: type Memory, range 64, base 0xd010, size 16, enabled pcib4: allocated memory range (0xd010-0xd010) for rid 10 of pci0:4:0:0 pcib4: matched entry for 4.0.INTA (src \_SB_.PCI0.LNKC:0) pcib4: slot 0 INTA routed to irq 12 via \_SB_.PCI0.LNKC pci0:4:0:0: bad VPD cksum, remain 14 bge0: mem 0xd010-0xd010 irq 12 at device 0.0 on pci4 bge0: CHIP ID 0x4101; ASIC REV 0x04; CHIP REV 0x41; PCI-E miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: OUI 0x001018, model 0x0018, rev. 0 brgphy0: no media present ifmedia_set: no match for 0x0/0xfff panic: ifmedia_set KDB: stack backtrace: #0 0xc05bc257 at kdb_backtrace+0x47 #1 0xc058db2f at panic+0xaf #2 0xc063e3d1 at ifmedia_set+0x41 #3 0xc04e94fa at miibus_mediainit+0x8a #4 0xc04e227f at brgphy_attach+0x3bf #5 0xc05b5f6f at device_attach+0x36f #6 0xc05b745c at device_probe_and_attach+0x2c #7 0xc05b7489 at bus_generic_attach+0x19 #8 0xc04e9987 at miibus_attach+0xd7 #9 0xc05b5f6f at device_attach+0x36f #10 0xc05b745c at device_probe_and_attach+0x2c #11 0xc05b7489 at bus_generic_attach+0x19 #12 0xc04e9f0c at mii_attach+0x40c #13 0xc04db0f3 at bge_attach+0x3a93 #14 0xc05b5f6f at device_attach+0x36f #15 0xc05b745c at device_probe_and_attach+0x2c #16 0xc05b7489 at bus_generic_attach+0x19 #17 0xc049e984 at acpi_pci_attach+0x194 Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
9-stable - ifmedia_set: no match for 0x0/0xfffffff
day old i386 current bge1: mem 0xd020-0xd020 irq 10 at device 0.0 on pci5 bge1: CHIP ID 0x4101; ASIC REV 0x04; CHIP REV 0x41; PCI-E miibus1: on bge1 brgphy1: PHY 1 on miibus1 brgphy1: OUI 0x001018, model 0x0018, rev. 0 brgphy1: no media present ifmedia_set: no match for 0x0/0xfff panic: ifmedia_set KDB: stack backtrace: #0 0xc05bc257 at kdb_backtrace+0x47 #1 0xc058db2f at panic+0xaf #2 0xc063e3d1 at ifmedia_set+0x41 #3 0xc04e94fa at miibus_mediainit+0x8a #4 0xc04e227f at brgphy_attach+0x3bf #5 0xc05b5f6f at device_attach+0x36f #6 0xc05b745c at device_probe_and_attach+0x2c #7 0xc05b7489 at bus_generic_attach+0x19 #8 0xc04e9987 at miibus_attach+0xd7 #9 0xc05b5f6f at device_attach+0x36f #10 0xc05b745c at device_probe_and_attach+0x2c #11 0xc05b7489 at bus_generic_attach+0x19 #12 0xc04e9f0c at mii_attach+0x40c #13 0xc04db0f3 at bge_attach+0x3a93 #14 0xc05b5f6f at device_attach+0x36f #15 0xc05b745c at device_probe_and_attach+0x2c #16 0xc05b7489 at bus_generic_attach+0x19 #17 0xc049e984 at acpi_pci_attach+0x194 Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. randy ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"