Bug 117316

Summary: [acpi] ACPI lockups on SuperMicro motherboard
Product: Base System Reporter: Doichin Dokov <root>
Component: amd64Assignee: freebsd-amd64 (Nobody) <amd64>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Doichin Dokov 2007-10-19 01:00:06 UTC
FreeBSD 7.0-PRERELEASE #0: Thu Oct 18 21:14:22 UTC 2007
    root@:/usr/src/sys/amd64/compile/NETONE
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 1210 (1795.51-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40f32  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  Cores per package: 2
usable memory = 1064964096 (1015 MB)
avail memory  = 1026363392 (978 MB)
ACPI APIC Table: <A M I  OEMAPIC >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
kbd1 at kbdmux0
acpi0: <A M I OEMXSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)
acpi0: reservation of 540, 20 (4) failed
acpi0: reservation of 500, 20 (4) failed
acpi0: reservation of 560, 20 (4) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3ff00000 (3) failed
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 13.0 on pci1
pci2: <ACPI PCI bus> on pcib2
twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xbc00-0xbc0f mem 0xfeaffc00-0xfeaffc0f,0xfe000000-0xfe7fffff irq 20 at device 1.0 on pci2
twe0: [GIANT-LOCKED]
twe0: [ITHREAD]
twe0: AEN: <twe0: incomplete unit for unknown unit 1>
twe0: AEN: <twe0: degraded unit for unknown unit 1>
twe0: 2 ports, Firmware FE8S 1.05.00.068, BIOS BE7X 1.08.00.048
pci0:2:3:0: bad VPD cksum, remain 14
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x2100> mem 0xfead0000-0xfeadffff irq 24 at device 3.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5704 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:30:48:57:c3:80
bge0: [ITHREAD]
pci0:2:3:1: bad VPD cksum, remain 14
bge1: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x2100> mem 0xfeac0000-0xfeacffff irq 25 at device 3.1 on pci2
miibus1: <MII bus> on bge1
brgphy1: <BCM5704 10/100/1000baseTX PHY> PHY 1 on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge1: Ethernet address: 00:30:48:57:c3:81
bge1: [ITHREAD]
isab0: <PCI-ISA bridge> at device 2.2 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, USB> at device 3.0 (no driver attached)
pci0: <serial bus, USB> at device 3.1 (no driver attached)
pci0: <serial bus, USB> at device 3.2 (no driver attached)
vgapci0: <VGA-compatible display> port 0xe000-0xe0ff mem 0xf0000000-0xf7ffffff,0xfebf0000-0xfebfffff at device 5.0 on pci0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse Explorer, device ID 4
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
When i try to do:
* ifconfig bge0 inet (whatever)...
the system just freezes - no panic, no errors - nothing. the only way to make it come back is hit the reset button

When i do:
* reboot
* shutdown -p now
it comes up to:
* twed0: detached
and then bails out again (no restart/shutdown follows)

Tried several ACPI settings in the SuperMicro motherboard BIOS (ACPI 1.0, 2.0, 3.0, MPTable 1.1, 1.4), but nothing helps.

When i repeatedly do 'ifconfig' to see the status of the ifs, the media status of bge0 changes from time to time (very frequently):
# ifconfig bge0
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:30:48:57:c3:80
        media: Ethernet autoselect
        status: no carrier

# ifconfig bge0
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:30:48:57:c3:80
        media: Ethernet autoselect (none <hw-loopback>)
        status: no carrier
# ifconfig bge0
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:30:48:57:c3:80
        media: Ethernet autoselect (autoselect <hw-loopback>)
        status: no carrier
# ifconfig bge0
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:30:48:57:c3:80
        media: Ethernet autoselect (10baseT/UTP <half-duplex,hw-loopback>)
        status: active

Here's the complete dmesg, i've pointed some strange lines with ">>":

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-15 on motherboard
ioapic1 <Version 1.1> irqs 16-31 on motherboard
ioapic2 <Version 1.1> irqs 32-47 on motherboard
kbd1 at kbdmux0
acpi0: <A M I OEMXSDT> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: Sleep Button (fixed)

How-To-Repeat: Setup the latest RELENG_7 on a SuperMicro H8SSL-i2 motherboard (ServerWorks HT1000-based, maybe other mobos with this chipset show the same behaviour), then try to ifconfig bge0, or try to reboot or shutdown the system.

Some notes:
* the RAID status of the 3ware unit IS degraded, so the messages about it
  are okay.
* the bge1 interface does work ok.
* usb was disabled in the kernel (thus the "no driver attached" messages -
  they are okay too)
Comment 1 freebsd-smp 2007-10-19 17:17:51 UTC
This is the same as kern/116328
Comment 2 Andriy Gapon freebsd_committer freebsd_triage 2010-12-05 10:12:41 UTC
State Changed
From-To: open->closed

Audit trail indicates that this is a duplicate of kern/116328, 
which is marked as resolved now.