RE: CURRENT from 04/01/07 + bge NIC panic

From: David Christensen <davidch_at_broadcom.com>
Date: Mon, 8 Jan 2007 18:46:48 -0800
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_at_freebsd.org 
> [mailto:owner-freebsd-current_at_freebsd.org] On Behalf Of Dominic Marks
> Sent: Monday, January 08, 2007 9:20 AM
> To: freebsd-current_at_freebsd.org
> Subject: CURRENT from 04/01/07 + bge NIC panic
> 
> Hello,
> 
> 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.
> 
> 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.
> 
> # uname -a
> FreeBSD  7.0-SNAPSHOT-20060104 FreeBSD 7.0-SNAPSHOT-20060104
> #0: Thu Jan  4 20:43:26 UTC 2007     
> root_at_turtle.internal.graphdata.co.uk:/usr/obj/usr/src/sys/GENE
> RIC  i386
> 
> # 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_at_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 =
> "GenuineIntel"  Id = 0xf49  Stepping = 9
> Features=0xbfebfbff<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=0x651d<SSE3,RSVD2,MON,DS_CPL,TM2,CNTX-ID,CX16,XTPR>
> AMD Features=0x20100000<NX,LM> AMD Features2=0x1<LAHF>
> real memory  = 535281664 (510 MB)
> avail memory = 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 
> 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 
> 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf irq 16 at 
> 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=0x100>
> 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
> 
> # pciconf -lv
> hostb0_at_pci0:0:0:        class=0x060000 card=0x01df1028
> chip=0x27788086 rev=0x00 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = 'E7230/3000/3010 Processor to I/O Controller'
>     class    = bridge
>     subclass = HOST-PCI
> pcib1_at_pci0:1:0: class=0x060400 card=0x00000088 chip=0x27798086
> rev=0x00 hdr=0x01 vendor   = 'Intel Corporation'
>     device   = 'E7230/3000/3010 PCI Express Root Port'
>     class    = bridge
>     subclass = PCI-PCI
> pcib2_at_pci0:28:0:        class=0x060400 card=0x00000040
> chip=0x27d08086 rev=0x01 hdr=0x01 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) PCI Express Root Port'
>     class    = bridge
>     subclass = PCI-PCI
> pcib3_at_pci0:28:4:        class=0x060400 card=0x00000040
> chip=0x27e08086 rev=0x01 hdr=0x01 vendor   = 'Intel Corporation'
>     device   = '82801GR/GH/GHM (ICH7 Family) PCI Express Root
> Port' class    = bridge
>     subclass = PCI-PCI
> pcib4_at_pci0:28:5:        class=0x060400 card=0x00000040
> chip=0x27e28086 rev=0x01 hdr=0x01 vendor   = 'Intel Corporation'
>     device   = '82801GR/GH/GHM (ICH7 Family) PCI Express Root
> Port' class    = bridge
>     subclass = PCI-PCI
> uhci0_at_pci0:29:0:        class=0x0c0300 card=0x01df1028
> chip=0x27c88086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) USB Universal Host
> Controller' class    = serial bus
>     subclass = USB
> uhci1_at_pci0:29:1:        class=0x0c0300 card=0x01df1028
> chip=0x27c98086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) USB Universal Host
> Controller' class    = serial bus
>     subclass = USB
> uhci2_at_pci0:29:2:        class=0x0c0300 card=0x01df1028
> chip=0x27ca8086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) USB Universal Host
> Controller' class    = serial bus
>     subclass = USB
> uhci3_at_pci0:29:3:        class=0x0c0300 card=0x01df1028
> chip=0x27cb8086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) USB Universal Host
> Controller' class    = serial bus
>     subclass = USB
> ehci0_at_pci0:29:7:        class=0x0c0320 card=0x01df1028
> chip=0x27cc8086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) USB 2.0 Enhanced Host
> Controller' class    = serial bus
>     subclass = USB
> pcib5_at_pci0:30:0:        class=0x060401 card=0x00000050
> chip=0x244e8086 rev=0xe1 hdr=0x01 vendor   = 'Intel Corporation'
>     device   = '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    = bridge subclass = PCI-PCI
> isab0_at_pci0:31:0:        class=0x060100 card=0x00000000
> chip=0x27b88086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801GB/GR (ICH7 Family) LPC Interface
> Controller' class    = bridge
>     subclass = PCI-ISA
> atapci0_at_pci0:31:1:      class=0x01018a card=0x01df1028
> chip=0x27df8086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) Ultra ATA Storage
> Controller' class    = mass storage
>     subclass = ATA
> atapci1_at_pci0:31:2:      class=0x01018f card=0x01df1028
> chip=0x27c08086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage
> Controller' class    = mass storage
>     subclass = ATA
> none0_at_pci0:31:3:        class=0x0c0500 card=0x01df1028
> chip=0x27da8086 rev=0x01 hdr=0x00 vendor   = 'Intel Corporation'
>     device   = '82801G (ICH7 Family) SMBus Controller'
>     class    = serial bus
>     subclass = SMBus
> bge0_at_pci4:0:0:  class=0x020000 card=0x01df1028 chip=0x167a14e4
> rev=0x02 hdr=0x00 vendor   = 'Broadcom Corporation'
>     device   = 'NetXtreme BCM5754 Gigabit Ethernet PCI Express'
>     class    = network
>     subclass = ethernet
> vgapci0_at_pci5:7:0:       class=0x030000 card=0x01df1028
> chip=0x515e1002 rev=0x02 hdr=0x00 vendor   = 'ATI Technologies
> Inc.' device   = 'Radeon ES1000 Radeon ES1000'
>     class    = display
>     subclass = VGA
> 
> To trigger the panic:
> 
> # dhclient bge0
> panic: invalid ife->ifm_data (0xa) in mii_phy_setmedia
> cpuid = 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 = 0x2, esp = 0x247,
> ebp = 0x1 ---
> 
> The panic comes from this KASSERT in mii_physubr.c
> 
> 	KASSERT(ife->ifm_data >=0 && ife->ifm_data < MII_NMEDIA,
> 	    ("invalid ife->ifm_data (0x%x) in mii_phy_setmedia",
> 	    ife->ifm_data));
> 
> Let me know what other information I can provide.
> 
> Thanks,
> Dominic
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to 
> "freebsd-current-unsubscribe_at_freebsd.org"
> 
> 
Received on Tue Jan 09 2007 - 02:01:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:04 UTC