From nobody@FreeBSD.org  Tue Nov 26 16:00:47 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 4B85ED5F
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 16:00:47 +0000 (UTC)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 21BFA28FD
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 16:00:47 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rAQG0kVL050139
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Nov 2013 16:00:46 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rAQG0kiO049978;
	Tue, 26 Nov 2013 16:00:46 GMT
	(envelope-from nobody)
Message-Id: <201311261600.rAQG0kiO049978@oldred.freebsd.org>
Date: Tue, 26 Nov 2013 16:00:46 GMT
From: Benjamin Stier <benjamin.stier@ub.uni-tuebingen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel panic with bge(4) on SunFire X2100
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         184311
>Category:       kern
>Synopsis:       [bge] [panic] kernel panic with bge(4) on SunFire X2100
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 26 16:10:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon May 19 20:10:01 UTC 2014
>Originator:     Benjamin Stier
>Release:        9.2-RELEASE-p1
>Organization:
UB Tuebingen
>Environment:
FreeBSD  9.2-RELEASE-p1 FreeBSD 9.2-RELEASE-p1 #0: Mon Nov 25 12:19:51 CET 2013     root@***:/usr/obj/usr/src/sys/UBT  amd64
>Description:
I'm tried updating a SunFire X2100 from 9.1-RELEASE to 9.2-RELEASE-p1 on a SunFire X2100. The machine was running without problems on 9.1-RELEASE.
After updating, the system won't boot and panics with the following message:

--- SNIP ---
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004101> mem 0xfdaf0000-0xfdafffff irq 19 at device 0.0 on pci4
bge0: CHIP ID 0x00004101; ASIC REV 0x04; CHIP REV 0x41; PCI-E
miibus1: <MII bus> on bge0
brgphy0: <BCM5750 1000BASE-T media interface> PHY 1 on miibus1
brgphy0:  no media present
ifmedia_set: no match for 0x0/0xfffffff
panic: ifmedia_set
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff80834966 at kdb_backtrace+0x66
#1 0xffffffff807fcb5e at panic+0x1ce
#2 0xffffffff808be5a3 at ifmedia_set+0x53
#3 0xffffffff8051e58d at brgphy_attach+0x18d
#4 0xffffffff8082d70c at device_attach+0xcc
#5 0xffffffff8082ec8a at bus_generic_attach+0x1a
#6 0xffffffff80525b88 at miibus_attach+0xe8
#7 0xffffffff8082d70c at device_attach+0xcc
#8 0xffffffff8082ec8a at bus_generic_attach+0x1a
#9 0xffffffff8052625f at mii_attach+0x52f
#10 0xffffffff803e03f1 at bge_attach+0x3cf1
#11 0xffffffff8082d70c at device_attach+0xcc
#12 0xffffffff8082ec8a at bus_generic_attach+0x1a
#13 0xffffffff803320a4 at acpi_pci_attach+0x164
#14 0xffffffff8082d70c at device_attach+0xcc
#15 0xffffffff8082ec8a at bus_generic_attach+0x1a
#16 0xffffffff80333eda at acpi_pcib_attach+0x19a
#17 0xffffffff803350db at acpi_pcib_pci_attach+0x9b
--- SNIP ---

I can provide further information if needed.
>How-To-Repeat:

>Fix:
Disabling "hw.bge.allow_asf" on the loader prompt makes the machine boot. However it was working fine without this setting before, so this is not a real fix. 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-amd64->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Nov 26 21:21:23 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=184311 

From: hiren panchasara <hiren@FreeBSD.org>
To: bug-followup@FreeBSD.org, benjamin.stier@ub.uni-tuebingen.de
Cc:  
Subject: Re: kern/184311: [bge] [panic] kernel panic with bge(4) on SunFire X2100
Date: Mon, 19 May 2014 13:08:14 -0700

 I just hit this on FreeBSD10.
 
 vgapci0: <VGA-compatible display> mem
 0xc9000000-0xc9ffffff,0xd0000000-0xd7ffffff irq 16 at device 5.0 on
 pci1
 vgapci0: Boot video device
 pcib2: <ACPI PCI-PCI bridge> at device 12.0 on pci0
 pci2: <ACPI PCI bus> on pcib2
 bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev.
 0x004101> mem
 0xca000000-0xca00ffff irq 16 at device 0.0 on pci2
 bge0: CHIP ID 0x00004101; ASIC REV 0x04; CHIP REV 0x41; PCI-E
 miibus0: <MII bus> on bge0
 brgphy0: <BCM5750 1000BASE-T media interface> PHY 1 on miibus0
 brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
 bge0: Ethernet address: 00:17:08:92:b6:e9
 pcib3: <ACPI PCI-PCI bridge> at device 13.0 on pci0
 pci3: <ACPI PCI bus> on pcib3
 bge1: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev.
 0x004101> mem
 0xca100000-0xca10ffff irq 19 at device 0.0 on pci3
 bge1: CHIP ID 0x00004101; ASIC REV 0x04; CHIP REV 0x41; PCI-E
 miibus1: <MII bus> on bge1
 brgphy1: <BCM5750 1000BASE-T media interface> PHY 1 on miibus1
 brgphy1:  no media present
 ifmedia_set: no match for 0x0/0xfffffff
 panic: ifmedia_set
 cpuid = 0
 KDB: stack backtrace:
 db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
 0xffffffff81a3f1b0
 kdb_backtrace() at kdb_backtrace+0x39/frame 0xffffffff81a3f260
 vpanic() at vpanic+0x126/frame 0xffffffff81a3f2a0
 panic() at panic+0x43/frame 0xffffffff81a3f300
 ifmedia_set() at ifmedia_set+0x5a/frame 0xffffffff81a3f310
 brgphy_attach() at brgphy_attach+0x3a4/frame 0xffffffff81a3f350
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f3b0
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f3d0
 miibus_attach() at miibus_attach+0xbd/frame 0xffffffff81a3f410
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f470
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f490
 mii_attach() at mii_attach+0x435/frame 0xffffffff81a3f520
 bge_attach() at bge_attach+0x4151/frame 0xffffffff81a3f600
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f660
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f680
 acpi_pci_attach() at acpi_pci_attach+0x15f/frame 0xffffffff81a3f6d0
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f730
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f750
 acpi_pcib_attach() at acpi_pcib_attach+0x23d/frame 0xffffffff81a3f7a0
 acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0x9f/frame
 0xffffffff81a3f7e0
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f840
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f860
 acpi_pci_attach() at acpi_pci_attach+0x15f/frame 0xffffffff81a3f8b0
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3f910
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3f930
 acpi_pcib_attach() at acpi_pcib_attach+0x23d/frame 0xffffffff81a3f980
 acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x2a9/frame
 0xffffffff81a3f9d0
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3fa30
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3fa50
 acpi_attach() at acpi_attach+0xdd4/frame 0xffffffff81a3fb10
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3fb70
 bus_generic_attach() at bus_generic_attach+0x4a/frame
 0xffffffff81a3fb90
 nexus_acpi_attach() at nexus_acpi_attach+0x76/frame 0xffffffff81a3fbc0
 device_attach() at device_attach+0x3a2/frame 0xffffffff81a3fc20
 bus_generic_new_pass() at bus_generic_new_pass+0x116/frame
 0xffffffff81a3fc50
 bus_set_pass() at bus_set_pass+0x8f/frame 0xffffffff81a3fc80
 configure() at configure+0xa/frame 0xffffffff81a3fc90
 mi_startup() at mi_startup+0x118/frame 0xffffffff81a3fcb0
 btext() at btext+0x2c
 Uptime: 1s
 Automatic reboot in 15 seconds - press a key on the console to abort
 Rebooting...
>Unformatted:
