Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2007 18:46:48 -0800
From:      "David Christensen" <davidch@broadcom.com>
To:        "Dominic Marks" <dom@helenmarks.co.uk>, freebsd-current@freebsd.org
Subject:   RE: CURRENT from 04/01/07 + bge NIC panic
Message-ID:  <09BFF2FA5EAB4A45B6655E151BBDD90302C25B4F@NT-IRVA-0750.brcm.ad.broadcom.com>
In-Reply-To: <20070108171952.2f1a0c8d.dom@helenmarks.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
The driver is calling into ukphy_service which means the PHY ID table is
not correct for -CURRENT.  Scott Long checked in some changes for the
RELENG_6 tree to support this chip on this platform in mid-December
which should be migrated to -CURRENT.  Could you try RELENG_6 to make
sure it's the same issue?

Dave

> -----Original Message-----
> From: owner-freebsd-current@freebsd.org=20
> [mailto:owner-freebsd-current@freebsd.org] On Behalf Of Dominic Marks
> Sent: Monday, January 08, 2007 9:20 AM
> To: freebsd-current@freebsd.org
> Subject: CURRENT from 04/01/07 + bge NIC panic
>=20
> Hello,
>=20
> I have a PowerEdge SC440 which panics when I set an IP to its
> bge interface. I have serial console and it is sitting a ddb
> prompt.
>=20
> This is plain CURRENT, I made my own snapshot hence the uname.
> I had a look at cvsweb but didn't see any commits to bge in
> since this source.
>=20
> # uname -a
> FreeBSD  7.0-SNAPSHOT-20060104 FreeBSD 7.0-SNAPSHOT-20060104
> #0: Thu Jan  4 20:43:26 UTC 2007    =20
> root@turtle.internal.graphdata.co.uk:/usr/obj/usr/src/sys/GENE
> RIC  i386
>=20
> # cat /var/run/dmesg.boot
> Copyright (c) 1992-2007 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992,
> 1993, 1994 The Regents of the University of California. All
> rights reserved. FreeBSD is a registered trademark of The
> FreeBSD Foundation. FreeBSD 7.0-SNAPSHOT-20060104 #0: Thu Jan
> 4 20:43:26 UTC 2007
> root@turtle.internal.graphdata.co.uk:/usr/obj/usr/src/sys/GENERIC
> WARNING: WITNESS option enabled, expect reduced performance.
> Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel
> (R) Celeron(R) CPU 2.80GHz (2793.09-MHz 686-class CPU) Origin =3D
> "GenuineIntel"  Id =3D 0xf49  Stepping =3D 9
> Features=3D0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE
P,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2>
,SS,HTT,TM,PBE>
> Features2=3D0x651d<SSE3,RSVD2,MON,DS_CPL,TM2,CNTX-ID,CX16,XTPR>
> AMD Features=3D0x20100000<NX,LM> AMD Features2=3D0x1<LAHF>
> real memory  =3D 535281664 (510 MB)
> avail memory =3D 510054400 (486 MB)
> ACPI APIC Table: <DELL   B8K    >
> ioapic0: Changing APIC ID to 8
> ioapic0 <Version 2.0> irqs 0-23 on motherboard
> lapic0: Forcing LINT1 to edge trigger
> kbd1 at kbdmux0
> ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112,
> RF2413, RF5413) acpi0: <DELL B8K    > on motherboard
> acpi0: Power Button (fixed)
> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on
> acpi0 cpu0: <ACPI CPU> on acpi0
> acpi_button0: <Power Button> on acpi0
> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
> pci2: <ACPI PCI bus> on pcib2
> pcib3: <ACPI PCI-PCI bridge> irq 16 at device 28.4 on pci0
> pci3: <ACPI PCI bus> on pcib3
> pcib4: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
> pci4: <ACPI PCI bus> on pcib4
> bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC
> rev. 0xb002> mem 0xefcf0000-0xefcfffff irq 17 at device 0.0 on
> pci4 miibus0: <MII bus> on bge0 ukphy0: <Generic IEEE 802.3u
> media interface> on miibus0 ukphy0:  10baseT, 10baseT-FDX,
> 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0:
> Ethernet address: 00:13:72:35:f5:d0 uhci0: <UHCI (generic) USB
> controller> port 0xff80-0xff9f irq 21 at device 29.0 on pci0=20
> uhci0: [GIANT-LOCKED]
> usb0: <UHCI (generic) USB controller> on uhci0
> usb0: USB revision 1.0
> uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1>
> on usb0 uhub0: 2 ports with 2 removable, self powered
> uhci1: <UHCI (generic) USB controller> port 0xff60-0xff7f irq
> 22 at device 29.1 on pci0
> uhci1: [GIANT-LOCKED]
> usb1: <UHCI (generic) USB controller> on uhci1
> usb1: USB revision 1.0
> uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1>
> on usb1 uhub1: 2 ports with 2 removable, self powered
> uhci2: <UHCI (generic) USB controller> port 0xff40-0xff5f irq
> 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED]
> usb2: <UHCI (generic) USB controller> on uhci2
> usb2: USB revision 1.0
> uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1>
> on usb2 uhub2: 2 ports with 2 removable, self powered
> uhci3: <UHCI (generic) USB controller> port 0xff20-0xff3f irq
> 23 at device 29.3 on pci0 uhci3: [GIANT-LOCKED]
> usb3: <UHCI (generic) USB controller> on uhci3
> usb3: USB revision 1.0
> uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1>
> on usb3 uhub3: 2 ports with 2 removable, self powered
> ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem
> 0xff980800-0xff980bff irq 21 at device 29.7 on pci0 ehci0:
> [GIANT-LOCKED] usb4: waiting for BIOS to give up control
> usb4: EHCI version 1.0
> usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
> usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
> usb4: USB revision 2.0
> uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1>
> on usb4 uhub4: 8 ports with 8 removable, self powered
> pcib5: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci5: <ACPI PCI bus> on pcib5
> vgapci0: <VGA-compatible display> port 0xdc00-0xdcff mem
> 0xe0000000-0xe7ffffff,0xefaf0000-0xefafffff irq 19 at device
> 7.0 on pci5 isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0 atapci0: <Intel ICH7 UDMA100
> controller> port=20
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf irq 16 at=20
> device 31.1 on pci0 ata0: <ATA channel 0> on atapci0
> ata1: <ATA channel 1> on atapci0
> atapci1: <Intel ICH7 SATA300 controller> port
> 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfecf
> mem 0xeffffc00-0xefffffff irq 20 at device 31.2 on pci0 ata2:
> <ATA channel 0> on atapci1 ata3: <ATA channel 1> on atapci1
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags
> 0x10 on acpi0 sio0: type 16550A, console sio0: [FAST]
> pmtimer0 on isa0
> orm0: <ISA Option ROMs> at iomem
> 0xc0000-0xc8fff,0xc9000-0xcafff,0xcb000-0xcbfff pnpid ORM0000
> on isa0 atkbdc0: <Keyboard controller (i8042)> at port
> 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0
> at atkbd0 atkbd0: [GIANT-LOCKED]
> ppc0: parallel port not found.
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=3D0x100>
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem
> 0xa0000-0xbffff on isa0 ukbd0: <CHICONY Compaq USB Keyboard,
> class 0/0, rev 1.10/1.05, addr 2> on uhub3 kbd2 at ukbd0
> uhid0: <CHICONY Compaq USB Keyboard, class 0/0, rev 1.10/1.05,
> addr 2> on uhub3 Timecounter "TSC" frequency 2793085123 Hz
> quality 800 Timecounters tick every 1.000 msec
> acd0: CDROM <LTN486S/YQSM> at ata0-master PIO4
> ad4: 238418MB <WDC WD2500JS-75NCB3 10.02E04> at ata2-master
> SATA150 Trying to mount root from ufs:/dev/ad4s1a
> WARNING: /var was not properly dismounted
> WARNING: /var/log was not properly dismounted
>=20
> # pciconf -lv
> hostb0@pci0:0:0:        class=3D0x060000 card=3D0x01df1028
> chip=3D0x27788086 rev=3D0x00 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D 'E7230/3000/3010 Processor to I/O Controller'
>     class    =3D bridge
>     subclass =3D HOST-PCI
> pcib1@pci0:1:0: class=3D0x060400 card=3D0x00000088 chip=3D0x27798086
> rev=3D0x00 hdr=3D0x01 vendor   =3D 'Intel Corporation'
>     device   =3D 'E7230/3000/3010 PCI Express Root Port'
>     class    =3D bridge
>     subclass =3D PCI-PCI
> pcib2@pci0:28:0:        class=3D0x060400 card=3D0x00000040
> chip=3D0x27d08086 rev=3D0x01 hdr=3D0x01 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) PCI Express Root Port'
>     class    =3D bridge
>     subclass =3D PCI-PCI
> pcib3@pci0:28:4:        class=3D0x060400 card=3D0x00000040
> chip=3D0x27e08086 rev=3D0x01 hdr=3D0x01 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801GR/GH/GHM (ICH7 Family) PCI Express Root
> Port' class    =3D bridge
>     subclass =3D PCI-PCI
> pcib4@pci0:28:5:        class=3D0x060400 card=3D0x00000040
> chip=3D0x27e28086 rev=3D0x01 hdr=3D0x01 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801GR/GH/GHM (ICH7 Family) PCI Express Root
> Port' class    =3D bridge
>     subclass =3D PCI-PCI
> uhci0@pci0:29:0:        class=3D0x0c0300 card=3D0x01df1028
> chip=3D0x27c88086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) USB Universal Host
> Controller' class    =3D serial bus
>     subclass =3D USB
> uhci1@pci0:29:1:        class=3D0x0c0300 card=3D0x01df1028
> chip=3D0x27c98086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) USB Universal Host
> Controller' class    =3D serial bus
>     subclass =3D USB
> uhci2@pci0:29:2:        class=3D0x0c0300 card=3D0x01df1028
> chip=3D0x27ca8086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) USB Universal Host
> Controller' class    =3D serial bus
>     subclass =3D USB
> uhci3@pci0:29:3:        class=3D0x0c0300 card=3D0x01df1028
> chip=3D0x27cb8086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) USB Universal Host
> Controller' class    =3D serial bus
>     subclass =3D USB
> ehci0@pci0:29:7:        class=3D0x0c0320 card=3D0x01df1028
> chip=3D0x27cc8086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) USB 2.0 Enhanced Host
> Controller' class    =3D serial bus
>     subclass =3D USB
> pcib5@pci0:30:0:        class=3D0x060401 card=3D0x00000050
> chip=3D0x244e8086 rev=3D0xe1 hdr=3D0x01 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801BA/CA/DB/DBL/EB/ER/FB/GB/HB
> (ICH2/3/4/4/5/5/6/7/8), 63xxESB Hub Interface to PCI Bridge'
> class    =3D bridge subclass =3D PCI-PCI
> isab0@pci0:31:0:        class=3D0x060100 card=3D0x00000000
> chip=3D0x27b88086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801GB/GR (ICH7 Family) LPC Interface
> Controller' class    =3D bridge
>     subclass =3D PCI-ISA
> atapci0@pci0:31:1:      class=3D0x01018a card=3D0x01df1028
> chip=3D0x27df8086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) Ultra ATA Storage
> Controller' class    =3D mass storage
>     subclass =3D ATA
> atapci1@pci0:31:2:      class=3D0x01018f card=3D0x01df1028
> chip=3D0x27c08086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801GB/GR/GH (ICH7 Family) Serial ATA Storage
> Controller' class    =3D mass storage
>     subclass =3D ATA
> none0@pci0:31:3:        class=3D0x0c0500 card=3D0x01df1028
> chip=3D0x27da8086 rev=3D0x01 hdr=3D0x00 vendor   =3D 'Intel =
Corporation'
>     device   =3D '82801G (ICH7 Family) SMBus Controller'
>     class    =3D serial bus
>     subclass =3D SMBus
> bge0@pci4:0:0:  class=3D0x020000 card=3D0x01df1028 chip=3D0x167a14e4
> rev=3D0x02 hdr=3D0x00 vendor   =3D 'Broadcom Corporation'
>     device   =3D 'NetXtreme BCM5754 Gigabit Ethernet PCI Express'
>     class    =3D network
>     subclass =3D ethernet
> vgapci0@pci5:7:0:       class=3D0x030000 card=3D0x01df1028
> chip=3D0x515e1002 rev=3D0x02 hdr=3D0x00 vendor   =3D 'ATI Technologies
> Inc.' device   =3D 'Radeon ES1000 Radeon ES1000'
>     class    =3D display
>     subclass =3D VGA
>=20
> To trigger the panic:
>=20
> # dhclient bge0
> panic: invalid ife->ifm_data (0xa) in mii_phy_setmedia
> cpuid =3D 0
> KDB: enter: panic
> [thread pid 650 tid 100063 ]
> Stopped at      kdb_enter+0x2b: nop
> db> where
> Tracing pid 650 tid 100063 td 0xc30ead80
> kdb_enter(c094055e) at kdb_enter+0x2b
> panic(c092025d,a,d0391b4b,c2,ce8eea68,...) at panic+0x11c
> mii_phy_setmedia(c2e74580) at mii_phy_setmedia+0x83
> ukphy_service(c2e74580,c2e74e40,2) at ukphy_service+0xfd
> mii_mediachg(c2e74e40,8803,c2e74e40,c2e6c800,c2e76000,...) at
> mii_mediachg+0x27 bge_stop
> (c2e76000,80206910,c30d0000,c2e76000,d60e6b80,...) at bge_stop
> +0x58b bge_init_locked(c2e76000) at bge_init_locked+0x36
> bge_ioctl(c2e6c800,80206910,c30d0000) at bge_ioctl+0x136
> ifhwioctl(80206910,c2e6c800,c30d0000,c30ead80) at ifhwioctl
> +0x3b2 ifioctl(c30de530,80206910,c30d0000,c30ead80,0,...) at
> ifioctl+0x101 soo_ioctl
> (c3010a20,80206910,c30d0000,c31fea00,c30ead80) at soo_ioctl
> +0x2db kern_ioctl(c30ead80,3,80206910,c30d0000) at kern_ioctl
> +0x296 ioctl(c30ead80,d60e6d00) at ioctl+0xf1 syscall(d60e6d38)
> at syscall+0x256 Xint0x80_syscall() at Xint0x80_syscall+0x20
> --- syscall (0, FreeBSD ELF32, nosys), eip =3D 0x2, esp =3D 0x247,
> ebp =3D 0x1 ---
>=20
> The panic comes from this KASSERT in mii_physubr.c
>=20
> 	KASSERT(ife->ifm_data >=3D0 && ife->ifm_data < MII_NMEDIA,
> 	    ("invalid ife->ifm_data (0x%x) in mii_phy_setmedia",
> 	    ife->ifm_data));
>=20
> Let me know what other information I can provide.
>=20
> Thanks,
> Dominic
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to=20
> "freebsd-current-unsubscribe@freebsd.org"
>=20
>=20




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