From owner-freebsd-current@FreeBSD.ORG Tue Jan 9 03:01:10 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 53E2E16A4C8 for ; Tue, 9 Jan 2007 03:01:10 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from mms1.broadcom.com (mms1.broadcom.com [216.31.210.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2711713C46B for ; Tue, 9 Jan 2007 03:01:09 +0000 (UTC) (envelope-from davidch@broadcom.com) Received: from 10.10.64.154 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (Email Firewall v6.3.0)); Mon, 08 Jan 2007 18:46:50 -0800 X-Server-Uuid: D7CB97D3-6392-476F-BE46-AB3D6F515C9A Received: by mail-irva-10.broadcom.com (Postfix, from userid 47) id 3D0E72AE; Mon, 8 Jan 2007 18:46:50 -0800 (PST) Received: from mail-irva-8.broadcom.com (mail-irva-8 [10.10.64.221]) by mail-irva-10.broadcom.com (Postfix) with ESMTP id 142A92AF; Mon, 8 Jan 2007 18:46:50 -0800 (PST) Received: from mail-irva-12.broadcom.com (mail-irva-12.broadcom.com [10.10.64.146]) by mail-irva-8.broadcom.com (MOS 3.7.5a-GA) with ESMTP id ESW58520; Mon, 8 Jan 2007 18:46:49 -0800 (PST) Received: from NT-IRVA-0750.brcm.ad.broadcom.com (nt-irva-0750 [10.8.194.64]) by mail-irva-12.broadcom.com (Postfix) with ESMTP id 5057A69CA3; Mon, 8 Jan 2007 18:46:49 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Mon, 8 Jan 2007 18:46:48 -0800 Message-ID: <09BFF2FA5EAB4A45B6655E151BBDD90302C25B4F@NT-IRVA-0750.brcm.ad.broadcom.com> In-Reply-To: <20070108171952.2f1a0c8d.dom@helenmarks.co.uk> Thread-Topic: CURRENT from 04/01/07 + bge NIC panic Thread-Index: AcczTX5VRLAPyNwVRu+5pkXcMUDe1QASn3Bw From: "David Christensen" To: "Dominic Marks" , freebsd-current@freebsd.org X-WSS-ID: 69BDDD903EK17812071-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Cc: Subject: RE: CURRENT from 04/01/07 + bge NIC panic X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jan 2007 03:01:10 -0000 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 ,SS,HTT,TM,PBE> > Features2=3D0x651d > AMD Features=3D0x20100000 AMD Features2=3D0x1 > real memory =3D 535281664 (510 MB) > avail memory =3D 510054400 (486 MB) > ACPI APIC Table: > ioapic0: Changing APIC ID to 8 > ioapic0 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: 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: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pcib1: irq 16 at device 1.0 on pci0 > pci1: on pcib1 > pcib2: irq 16 at device 28.0 on pci0 > pci2: on pcib2 > pcib3: irq 16 at device 28.4 on pci0 > pci3: on pcib3 > pcib4: irq 17 at device 28.5 on pci0 > pci4: on pcib4 > bge0: rev. 0xb002> mem 0xefcf0000-0xefcfffff irq 17 at device 0.0 on > pci4 miibus0: on bge0 ukphy0: 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: controller> port 0xff80-0xff9f irq 21 at device 29.0 on pci0=20 > uhci0: [GIANT-LOCKED] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: > on usb0 uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xff60-0xff7f irq > 22 at device 29.1 on pci0 > uhci1: [GIANT-LOCKED] > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: > on usb1 uhub1: 2 ports with 2 removable, self powered > uhci2: port 0xff40-0xff5f irq > 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] > usb2: on uhci2 > usb2: USB revision 1.0 > uhub2: > on usb2 uhub2: 2 ports with 2 removable, self powered > uhci3: port 0xff20-0xff3f irq > 23 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] > usb3: on uhci3 > usb3: USB revision 1.0 > uhub3: > on usb3 uhub3: 2 ports with 2 removable, self powered > ehci0: 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: on ehci0 > usb4: USB revision 2.0 > uhub4: > on usb4 uhub4: 8 ports with 8 removable, self powered > pcib5: at device 30.0 on pci0 > pci5: on pcib5 > vgapci0: port 0xdc00-0xdcff mem > 0xe0000000-0xe7ffffff,0xefaf0000-0xefafffff irq 19 at device > 7.0 on pci5 isab0: at device 31.0 on pci0 > isa0: on isab0 atapci0: controller> port=20 > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf irq 16 at=20 > device 31.1 on pci0 ata0: on atapci0 > ata1: on atapci0 > atapci1: port > 0xfe00-0xfe07,0xfe10-0xfe13,0xfe20-0xfe27,0xfe30-0xfe33,0xfec0-0xfecf > mem 0xeffffc00-0xefffffff irq 20 at device 31.2 on pci0 ata2: > on atapci1 ata3: on atapci1 > pci0: 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: at iomem > 0xc0000-0xc8fff,0xc9000-0xcafff,0xcb000-0xcbfff pnpid ORM0000 > on isa0 atkbdc0: at port > 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 > at atkbd0 atkbd0: [GIANT-LOCKED] > ppc0: parallel port not found. > sc0: 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: at port 0x3c0-0x3df iomem > 0xa0000-0xbffff on isa0 ukbd0: class 0/0, rev 1.10/1.05, addr 2> on uhub3 kbd2 at ukbd0 > uhid0: addr 2> on uhub3 Timecounter "TSC" frequency 2793085123 Hz > quality 800 Timecounters tick every 1.000 msec > acd0: CDROM at ata0-master PIO4 > ad4: 238418MB 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