From danny@cs.huji.ac.il  Thu Nov 27 09:17:55 2003
Return-Path: <danny@cs.huji.ac.il>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 850EB16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Nov 2003 09:17:55 -0800 (PST)
Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7AA3643FE1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Nov 2003 09:17:52 -0800 (PST)
	(envelope-from danny@cs.huji.ac.il)
Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=exim)
	by cs.huji.ac.il with esmtp
	id 1APPm2-000JSo-3L
	for FreeBSD-gnats-submit@freebsd.org; Thu, 27 Nov 2003 19:17:50 +0200
Received: from danny by pampa.cs.huji.ac.il with local (Exim 4.12)
	id 1APPm1-0001UV-00
	for FreeBSD-gnats-submit@freebsd.org; Thu, 27 Nov 2003 19:17:49 +0200
Message-Id: <E1APPm1-0001UV-00@pampa.cs.huji.ac.il>
Date: Thu, 27 Nov 2003 19:17:50 +0200
From: Danny Braniss <danny@cs.huji.ac.il>
Reply-To: Danny Braniss <danny@cs.huji.ac.il>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: acpi causes boot to hang
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59732
>Category:       kern
>Synopsis:       acpi causes boot to hang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jhb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 27 09:20:08 PST 2003
>Closed-Date:    Fri Nov 11 18:48:50 GMT 2005
>Last-Modified:  Fri Nov 11 19:00:23 GMT 2005
>Originator:     Danny Braniss
>Release:        FreeBSD 5.2-BETA i386
>Organization:
>Environment:
System: FreeBSD 5.2-BETA #0: Wed Nov 26 09:50:24 IST 2003 danny@xpc:/r+d/obj/r+d/5.2/src/sys/HUJI

Description:
CPU: AMD Athlon(tm) XP 2800+ (2079.56-MHz 686-class CPU)

without acpi this box boots ok, with acpi it hangs
 ...
 Timecounter "TSC" frequency 2079564456 Hz quality 800
 Timecounters tick every 10.000 msec
 lo0: bpf attached

the full log is avilable from
	ftp://ftp.cs.huji.ac.il/users/danny/freebsd/acpi.log
and the output of acpidump is
	ftp://ftp.cs.huji.ac.il/users/danny/freebsd/danny.asl

can't say when it first appeared, because it's the first time this box is
running current.

danny
>Description:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:

From: Andrey Beresovsky <and@rsu.ru>
To: freebsd-gnats-submit@FreeBSD.org, danny@cs.huji.ac.il
Cc: freebsd-current@FreeBSD.org
Subject: Re: kern/59732: acpi causes boot to hang
Date: Wed, 24 Dec 2003 23:30:07 +0300 (MSK)

 I confirm this (my computer hangs on both CURRENT and RELENG_5_2). My machine:
 motherboard ASUS A7N8X Deluxe, chipset NForce2.
 
 What kind of information I can provide to help fix this?
 
 BTW, FreeBSD-5.1 boots w/o hang, Win XP and Linux (Gentoo) also runs OK.
 
 --
 Beresovsky Andrey

From: "Samuel J. Greear" <sjg@evilcode.net>
To: freebsd-gnats-submit@FreeBSD.org, danny@cs.huji.ac.il
Cc:  
Subject: Re: kern/59732: acpi causes boot to hang
Date: Sat, 27 Dec 2003 14:22:59 -0700

 Same problem here, confirmed with Dec. 26 build.   NForce2 Ultra chipset.
 Only my box seems to make it a bit further, init gets launched prior to
 hardlock. Considering the popularity of this platform unless this problem is 
 isolated to a few motherboards I would consider this a potential 
 show-stopper.  Pass some ACPI clue this way and I'll do what I can.
 
 Sam
 

From: Bruce Evans <bde@zeta.org.au>
To: "Samuel J. Greear" <sjg@evilcode.net>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/59732: acpi causes boot to hang
Date: Sat, 27 Dec 2003 21:18:57 +1100 (EST)

 On Fri, 26 Dec 2003, Samuel J. Greear wrote:
 
 >  Same problem here, confirmed with Dec. 26 build.   NForce2 Ultra chipset.
 >  Only my box seems to make it a bit further, init gets launched prior to
 >  hardlock. Considering the popularity of this platform unless this problem is
 >  isolated to a few motherboards I would consider this a potential
 >  show-stopper.  Pass some ACPI clue this way and I'll do what I can.
 
 Configuring the apic causes interrupt storms on all (?*) interrupts
 on an ASUS A7N8X-E with Nforce2.  Workarounds are to not configure the
 apic or to not configure acpi since not configuring acpi breaks use
 of the apic due to a nonexistent or wrong mptable (it's not an SMP
 motherboard).
 
 (*) The first time I looked, the storms seemed to be only on pci
 interrupts.  Later, they seemed to be weirder -- even npx0 got endless
 interrupts, but at a much lower frequency than pci interrupts.
 
 Bruce
Responsible-Changed-From-To: freebsd-bugs->jhb 
Responsible-Changed-By: njl 
Responsible-Changed-When: Mon Jan 12 10:42:44 PST 2004 
Responsible-Changed-Why:  
I'm going to pass this to jhb@ since he did our APIC work.  One workaround 
with ACPI may be to set hint.apic.0.disabled="1" in loader.conf. 

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

From: John Baldwin <jhb@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org, danny@cs.huji.ac.il
Cc:  
Subject: Re: kern/59732: acpi causes boot to hang
Date: Mon, 12 Jan 2004 15:46:30 -0500

 This may be a BIOS bug.  I think that Peter had a similar problem on an Nvidia 
 amd64 motherboard that also used link devices for APIC interrupt routing 
 (which is odd in and of itself) but it had all the IRQ's off by one value, 
 i.e. 23 instead of 22, etc.  For now you probably just want to disable the 
 APIC via 'hint.apic.0.disabled=1'.
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
 

From: John Baldwin <jhb@FreeBSD.org>
To: bug-followup@FreeBSD.org,
 danny@cs.huji.ac.il
Cc:  
Subject: Re: kern/59732: acpi causes boot to hang
Date: Fri, 2 Sep 2005 13:54:24 -0400

 Can anyone confirm if the problems still persist on FreeBSD 5.4 or 6.0 or 
 later?
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org

From: Danny Braniss <danny@cs.huji.ac.il>
To: John Baldwin <jhb@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/59732: acpi causes boot to hang 
Date: Sun, 04 Sep 2005 11:44:17 +0300

 > Can anyone confirm if the problems still persist on FreeBSD 5.4 or 6.0 or 
 > later?
 > 
 on the same box, with APIC enabled:
 5.4 x86 	boots ok
 5.4 amd64	gets stuck on boot
 6.0 amd64	boots ok
 
 danny
 
 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Fri Nov 11 18:48:27 GMT 2005 
State-Changed-Why:  
Just disable APIC on 5.x as a workaround or upgrade to 6.0 where it is 
reported to be fixed. 

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

From: John Baldwin <jhb@freebsd.org>
To: bug-followup@freebsd.org, danny@cs.huji.ac.il
Cc:  
Subject: Re: kern/59732: acpi causes boot to hang
Date: Fri, 11 Nov 2005 13:48:05 -0500

 If 6.0 works fine then it is probably related to the irq0 stuff and the use of 
 the lapic timer on 6.0.  Just disable APIC as a workaround on 5.x.
 
 -- 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
>Unformatted:
