From nobody@FreeBSD.org  Wed Aug 25 02:39:13 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E670716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Aug 2004 02:39:13 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C5ADE43D41
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Aug 2004 02:39:13 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7P2dDwp003939
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 25 Aug 2004 02:39:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7P2dDl5003938;
	Wed, 25 Aug 2004 02:39:13 GMT
	(envelope-from nobody)
Message-Id: <200408250239.i7P2dDl5003938@www.freebsd.org>
Date: Wed, 25 Aug 2004 02:39:13 GMT
From: Jiafu He <jiafu_he@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 5.3Beta1 acpi-pci driver failure, ata disk attachment failure, machine hang.
X-Send-Pr-Version: www-2.3

>Number:         70925
>Category:       i386
>Synopsis:       [hang] 5.3Beta1 acpi-pci driver failure, ata disk attachment failure, machine hang.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 25 02:40:24 GMT 2004
>Closed-Date:    Thu Apr 19 01:24:40 GMT 2007
>Last-Modified:  Thu Apr 19 01:24:40 GMT 2007
>Originator:     Jiafu He
>Release:        5.3Beta1
>Organization:
>Environment:
Not available      
>Description:
Trying the new 5.3BETA-1 release. 5.2.1 problem (ATA INTERRUPT missing) disappears, however, ata hardisk still can't be correctly recognized and attached. In the end, the whole system hangs.

Below are the dmesg:
=====================================================================
/boot/kernel/acpi.ko text=0x406a8 data=0x1bc4+0x110c syms=[0x4+0x72d0+0x4+0x9754]
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2004 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 5.3-BETA1 #0: Sat Aug 21 08:19:34 UTC 2004
    root@mack.dcsl.buffalo.edu:/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.40GHz (2400.10-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUS
H,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 503250944 (479 MB)
avail memory = 478711808 (456 MB)
ACPI APIC Table: <VIAP4X AWRDACPI>
ioapic0 <Version 0.3> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <VIAP4X AWRDACPI> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
acpi link set: curr irq 0 != 21 for \_SB_.PCI0.ALKB (ignoring)
unknown: _SRS failed, irq 21 via \_SB_.PCI0.ALKB
acpi link set: curr irq 0 != 22 for \_SB_.PCI0.ALKC (ignoring)
unknown: _SRS failed, irq 22 via \_SB_.PCI0.ALKC
acpi link set: curr irq 0 != 23 for \_SB_.PCI0.ALKD (ignoring)
unknown: _SRS failed, irq 23 via \_SB_.PCI0.ALKD
agp0: <VIA Generic host to PCI bridge> mem 0xe8000000-0xebffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
lock order reversal
 1st 0xc1dcbee8 re0 (network driver) @ /usr/src/sys/dev/re/if_re.c:830
 2nd 0xc0e52060 ACPI root bus (ACPI root bus) @ /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/a
cpi.c:841
KDB: stack backtrace:
kdb_backtrace(0,ffffffff,c08bf7a8,c08bfcf8,c084f6cc) at kdb_backtrace+0x29
witness_checkorder(c0e52060,9,c0e4c4e8,349) at witness_checkorder+0x544
_sx_xlock(c0e52060,c0e4c4e8,349,0,1) at _sx_xlock+0x50
acpi_release_resource(c1d39600,c1df1d00,4,10,c1df3c80) at acpi_release_resource+0x23
bus_generic_release_resource(c1ce8e00,c1df1d00,4,10,c1df3c80) at bus_generic_release_resource+0x64
resource_list_release(c1df1c04,c1df7600,c1df1d00,4,10) at resource_list_release+0xfb
bus_generic_rl_release_resource(c1df7600,c1df1d00,4,10,c1df3c80) at bus_generic_rl_release_resource+
0x5e
bus_release_resource(c1df1d00,4,10,c1df3c80,c1df1d00) at bus_release_resource+0x61
re_probe(c1df1d00) at re_probe+0x1b5
device_probe_child(c1df7600,c1df1d00,c1cccac0,c1df1d00,c1df7600) at device_probe_child+0xc4
device_probe_and_attach(c1df1d00) at device_probe_and_attach+0x51
bus_generic_attach(c1df7600,6,c1cccac0,1,c0e3ac80) at bus_generic_attach+0x16
acpi_pci_attach(c1df7600) at acpi_pci_attach+0xec
device_attach(c1df7600,2e696370,c1df7600,c1ce8e00,0) at device_attach+0x58
device_probe_and_attach(c1df7600) at device_probe_and_attach+0xb4
bus_generic_attach(c1ce8e00,c1ce8e00,c1de5494,0,0) at bus_generic_attach+0x16
acpi_pcib_attach(c1ce8e00,c1de5494,0,c1021c5c,c0616ee4) at acpi_pcib_attach+0x14e
acpi_pcib_acpi_attach(c1ce8e00) at acpi_pcib_acpi_attach+0x20a
device_attach(c1ce8e00,c1ce8c80,c1ce8e00,c1d39600,0) at device_attach+0x58
device_probe_and_attach(c1ce8e00) at device_probe_and_attach+0xb4
bus_generic_attach(c1d39600,c1d39600,c1ccc0c0,1,c1d39580) at bus_generic_attach+0x16
acpi_probe_children(c1d39600,404cf50,c1d39600,c1d39600,0) at acpi_probe_children+0x63
acpi_attach(c1d39600) at acpi_attach+0x523
device_attach(c1d39600,c0e50620,c1d39600,c1d39780,0) at device_attach+0x58
device_probe_and_attach(c1d39600) at device_probe_and_attach+0xb4
bus_generic_attach(c1d39780,c1d39780,c1d39780,c1021d44,c06132cc) at bus_generic_attach+0x16
nexus_attach(c1d39780) at nexus_attach+0x13
device_attach(c1d39780,c0887ad0,c1d39780,c0887ad0,1029000) at device_attach+0x58
device_probe_and_attach(c1d39780) at device_probe_and_attach+0xb4
root_bus_configure(c1cd3780,c0810c01,0) at root_bus_configure+0x16
configure(0,101ec00,101e000,0,c043f4c5) at configure+0x1b
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
rl0: <RealTek 8139 10/100BaseTX> port 0xd000-0xd0ff mem 0xef000000-0xef0000ff irq 16 at device 12.0
on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:30:bd:22:77:87
rl0: [GIANT-LOCKED]
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 11 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 21 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port 0xe000-0xe00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at dev
ice 17.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff mem 0xef002000-0xef0020ff irq 11 at devic
e 18.0 on pci0
miibus1: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:50:2c:a0:21:b6
vr0: [GIANT-LOCKED]
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2400099292 Hz quality 800
Timecounters tick every 10.000 msec
KDB: stack backtrace:
kdb_backtrace(0,c08af48c,c08af5a0,c1021cac,c06062cd) at kdb_backtrace+0x29
sched_switch(c08af5a0,0) at sched_switch+0xdb
mi_switch(1,0) at mi_switch+0x24d
sleepq_switch(c1f6806c,c1021cfc,c05dff28,c1f6806c,0) at sleepq_switch+0xe0
sleepq_wait(c1f6806c,0,c0802860,20e,c1f68048) at sleepq_wait+0xb
cv_wait(c1f6806c,c1f68048,c1f68048,1,c1021d2c) at cv_wait+0x180
_sema_wait(c1f68048,c07c751b,65,c1f68000,c1021d4c) at _sema_wait+0x2e
ata_queue_request(c1f68000,c,ec0001b7,c1ccb400,0) at ata_queue_request+0x1a4
ata_getparam(c1ccb4a8,ec) at ata_getparam+0xa1
ata_identify_devices(c1ccb400) at ata_identify_devices+0xee
ata_boot_attach(0) at ata_boot_attach+0x27
run_interrupt_driven_config_hooks(0,101ec00,101e000,0,c043f4c5) at run_interrupt_driven_config_hooks
+0x18
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
KDB: current backend: ddb
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xe800-0xe8ff mem 0xef002000-0xef0020ff irq 11 at devic
e 18.0 on pci0
miibus1: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:50:2c:a0:21:b6
vr0: [GIANT-LOCKED]
fdc0: <floppy drive controller> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A, console
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
ppc0 port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xc0000-0xcbfff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x100>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2400096484 Hz quality 800
Timecounters tick every 10.000 msec
KDB: stack backtrace:
kdb_backtrace(0,c08af48c,c08af5a0,c1021cac,c06062cd) at kdb_backtrace+0x29
sched_switch(c08af5a0,0) at sched_switch+0xdb
mi_switch(1,0) at mi_switch+0x24d
sleepq_switch(c1f6806c,c1021cfc,c05dff28,c1f6806c,0) at sleepq_switch+0xe0
sleepq_wait(c1f6806c,0,c0802860,20e,c1f68048) at sleepq_wait+0xb
cv_wait(c1f6806c,c1f68048,c1f68048,1,c1021d2c) at cv_wait+0x180
_sema_wait(c1f68048,c07c751b,65,c1f68000,c1021d4c) at _sema_wait+0x2e
ata_queue_request(c1f68000,c,ec0001b7,c1ccb400,0) at ata_queue_request+0x1a4
ata_getparam(c1ccb4a8,ec) at ata_getparam+0xa1
ata_identify_devices(c1ccb400) at ata_identify_devices+0xee
ata_boot_attach(0) at ata_boot_attach+0x27
run_interrupt_driven_config_hooks(0,101ec00,101e000,0,c043f4c5) at run_interrupt_driven_config_hooks
+0x18
mi_startup() at mi_startup+0x96
begin() at begin+0x2c
md0: Preloaded image </boot/mfsroot> 4423680 bytes at 0xc09d6a1c
=====================================================================
>How-To-Repeat:
Insert installation cd disc1 and problem will happen as shown above.
>Fix:
      
>Release-Note:
>Audit-Trail:

From: "Will Saxon" <WillS@housing.ufl.edu>
To: <freebsd-gnats-submit@FreeBSD.org>, <jiafu_he@yahoo.com>
Cc:  
Subject: subject=Re: i386/70925: 5.3Beta1 acpi-pc driver failure, ata disk attachment failure, machine hang.
Date: Sun, 29 Aug 2004 17:18:25 -0400

 I haven't got a log to attach since I am using the machine that has the =
 boot problem.
 
 This disk hang is happening to me also with a current 5.3-BETA2 i386 ISO =
 and also a=20
 5.3-BETA2 kernel on an existing amd64 installation. If I have the SATA =
 controller
 enabled and allow ACPI to be loaded, boot will proceed to the point =
 where the SATA=20
 drive would be detected, then it hangs.=20
 
 I am able to boot normally if the SATA controller is disabled in the =
 BIOS. I am also=20
 able to boot normally if I disable ACPI.
 
 I don't know what happens if there are no attached SATA drives but the =
 SATA controller
 is left enabled.=20
 
 It may or may not be helpful, but this was not an issue with =
 5.2.1-RELEASE.=20
 
 -Will=20

From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, jiafu_he@yahoo.com
Cc:  
Subject: Re: i386/70925: [hang] 5.3Beta1 acpi-pci driver failure, ata disk attachment failure, machine hang.
Date: Wed, 23 Mar 2005 16:23:18 -0500

 Can you please try recent snapshots of both 5.4 and 6.0 and let me know if 
 they do or do not fix this problem?  Thanks.
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Thu Apr 19 01:24:05 UTC 2007 
State-Changed-Why:  
Feedback timeout (> 1 year). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70925 
>Unformatted:
