pluknet
2009-Jul-16 07:09 UTC
[bce] panic on boot in bce(4) on 7.2: invalid ife->ifm_data (0xa)
Hi. I got the following kernel panic on boot: invalid ife->ifm_data (0xa) in mii_phy_setmedia This is near /sys/dev/mii/mii_physubr.c:126 KASSERT(ife->ifm_data >=0 && ife->ifm_data < MII_NMEDIA, ("invalid ife->ifm_data (0x%x) in mii_phy_setmedia", ife->ifm_data)); Kernel is 7.2 GENERIC plus debug options: options KDB options DDB options LOCK_PROFILING options INVARIANTS # Enable calls of extra sanity checking options INVARIANT_SUPPORT # Extra sanity checks of internal structures, required by INVARIANTS options WITNESS # Enable checks to detect deadlocks and cycles options DEBUG_LOCKS options DEBUG_VFS_LOCKS options DIAGNOSTIC options BREAK_TO_DEBUGGER options STACK I have no the serial connection on this box this time, so ddb pictures captured with a camera are here: http://test.myrz.ru/tmp/panic_on_bce/ Verbose dmesg from stock GENERIC attached. bce0@pci0:11:0:0: class=0x020000 card=0x03a91014 chip=0x163914e4 rev=0x20 hdr=0x00 vendor = 'Broadcom Corporation' device = 'NetXtreme II BCM5709 Gigabit Ethernet' 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 BCM5709 Gigabit Ethernet' class = network subclass = ethernet -- wbr, pluknet -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.verbose Type: application/octet-stream Size: 55464 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090716/0a6f23d3/dmesg.obj
Xin LI
2009-Aug-06 02:06 UTC
[bce] panic on boot in bce(4) on 7.2: invalid ife->ifm_data (0xa)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, pluknet wrote:> Hi. > > I got the following kernel panic on boot: > invalid ife->ifm_data (0xa) in mii_phy_setmedia > > This is near /sys/dev/mii/mii_physubr.c:126 > KASSERT(ife->ifm_data >=0 && ife->ifm_data < MII_NMEDIA, > ("invalid ife->ifm_data (0x%x) in mii_phy_setmedia", > ife->ifm_data));I believe that this was because the (un)merged brgphy bits. Is it possible for you to use 7.2-STABLE instead? Otherwise you will need a patched kernel: http://people.freebsd.org/~delphij/misc/bce-5709phy.diff Please make sure that you have a full kernel build. Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkp6Ok0ACgkQi+vbBBjt66B2UwCgr7QbRH9wrFh0vN6nqNOhb7wa HIIAnRa96OSZpWQIZl2NVamwQWOpeLUT =Qmtq -----END PGP SIGNATURE-----
pluknet
2009-Oct-15 12:46 UTC
[bce] panic on boot in bce(4) on 7.2: invalid ife->ifm_data (0xa)
2009/8/6 Xin LI <delphij@delphij.net>:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > pluknet wrote: >> Hi. >> >> I got the following kernel panic on boot: >> invalid ife->ifm_data (0xa) in mii_phy_setmedia >> >> This is near /sys/dev/mii/mii_physubr.c:126 >> ? ? ? ? KASSERT(ife->ifm_data >=0 && ife->ifm_data < MII_NMEDIA, >> ? ? ? ? ? ? ("invalid ife->ifm_data (0x%x) in mii_phy_setmedia", >> ? ? ? ? ? ? ife->ifm_data)); > > I believe that this was because the (un)merged brgphy bits. ?Is it > possible for you to use 7.2-STABLE instead? ?Otherwise you will need a > patched kernel: > > ? ? ? ?http://people.freebsd.org/~delphij/misc/bce-5709phy.diff > > Please make sure that you have a full kernel build. >I see no panic with this patch on 7.2. Thanks. -- wbr, pluknet