From nobody@FreeBSD.org  Thu Mar  3 01:55:05 2005
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 A560416A555
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Mar 2005 01:55:03 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 440F643D48
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  3 Mar 2005 01:55:03 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j231t2lW021068
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 3 Mar 2005 01:55:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j231t2Tj021066;
	Thu, 3 Mar 2005 01:55:02 GMT
	(envelope-from nobody)
Message-Id: <200503030155.j231t2Tj021066@www.freebsd.org>
Date: Thu, 3 Mar 2005 01:55:02 GMT
From: Chris Wee <wee@sygate.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: BTX loader crashes on boot on HP Proliant DL140
X-Send-Pr-Version: www-2.3

>Number:         78339
>Category:       i386
>Synopsis:       [boot] BTX loader crashes on boot on HP Proliant DL140
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 03 02:00:28 GMT 2005
>Closed-Date:    Mon May 26 11:45:25 UTC 2008
>Last-Modified:  Mon May 26 11:45:25 UTC 2008
>Originator:     Chris Wee
>Release:        5.3-STABLE
>Organization:
Sygate 
>Environment:
FreeBSD natasha 5.3-MAGELLAN FreeBSD 5.3-MAGELLAN #0: Wed Mar  2 03:15:34 UTC 2005     root@willow.at.sygate.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
         As soon as the 2nd stage loader starts, it halts with error message "BTX halted"
The full text looks like this

BTX loader 1.00 BTX version is 1.01
Console: internal video/keyboard
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS 639kB/2096064kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(root@willow.at.sygate.com, Tue Jan 18 04:54:33 UTC 2005)
-
int=0000000d err=00000000 efl=00030202 eip=00000b1e
eax=00002008 ebx=00000004 ecx=00001942 edx=0000fffc
esi=00005bae edi=00000004 ebp=000003d7 esp=000003cd
cs=e000 ds=0040 es=5bae fs=0000 gs=0000 ss-9e49
cs:eip=ee 58 5a c3 50 52 e8 79-02 8a 46 0c e8 39 00 8a
       46 0b e8 33 00 e8 80 02-8a 46 0e e8 2a 00 8a 46
ss:esp=04 20 80 00 00 07 5a 0f-1b 04 f0 01 fc ff 10 00
       40 ea 00 f0 00 04 00 7f-4e c0 00 70 00 e1 f0 01
BTX halted

>How-To-Repeat:
       Simply load this build. We load it via PXEboot, completely automated sysinstall. we can provide a CDROM iso with all the bits

This same build works on HP DL320, DL380, Dell SC400, SC420.
o it appears to be a HP DL140 problem, but we've upgraded the bios to the latest 04502T03, which 

It appears that Dragonfly has the same issue when dragonfly is tracking 5.3-STABLE.

http://leaf.dragonflybsd.org/mailarchive/bugs/2004-12/msg00133.html

another instance,

http://lists.freebsd.org/pipermail/freebsd-amd64/2005-February/003497.html

http://www.freebsdforums.org/forums/showthread.php?s=7b971a2b67cf87ba4b8462e84c4422ce&threadid=28403&goto=nextoldest

http://lists.freebsd.org/pipermail/freebsd-i386/2005-January/002037.html

>Fix:
         Some folks have reported success disabled DMA in the BIOS.

Unfortunately, the AMI box for DL140 does not have an option to disable DMA.


Examining the source for loader, it seems that the problem is in acpidetect() or in interact(), however, both of those are in some library and I'm not sure where that code is located.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hq 
State-Changed-When: Thu Mar 10 15:28:08 GMT 2005 
State-Changed-Why:  
New port added as 'devel/jep'. 

Thanks for your contribution! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78339 
State-Changed-From-To: closed->open 
State-Changed-By: hq 
State-Changed-When: Thu Mar 10 15:28:56 GMT 2005 
State-Changed-Why:  
Oops, I closed the wrong PR. Sorry for that. 

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

From: weechris <islandsoul@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/78339: BTX loader crashes on boot on HP Proliant DL140
Date: Fri, 18 Mar 2005 09:43:40 -0800

 Can anyone tell me if this problem is the result of a spurious interrupt?
 
 We seem to have much better luck booting with the network cables disconnected.
 
 I'm wondering if the problem is that a Wake-ON-LAN interrupt or other
 interrupt arrives before the boot loader has a chance to install
 interrupt handlers.
 However, even disabling WOL in the Broadcom config screen and disabling PXEboot
 does not prevent the problem from happening.
 
 
 we're trying to follow up with HP as well.
 
 The problem occurs more frequently under bios 04502T03
 
 than bios 3304T03 2/2/2004.
 
 we have it happening on at least 3 DL140s.
 
 -chris
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Tue Feb 19 18:57:00 UTC 2008 
State-Changed-Why:  
Have asked for feedback 


Responsible-Changed-From-To: freebsd-i386->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Tue Feb 19 18:57:00 UTC 2008 
Responsible-Changed-Why:  
Track 

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

From: Gavin Atkinson <gavin@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/78339: BTX loader crashes on boot on HP Proliant DL140
Date: Tue, 19 Feb 2008 18:57:55 +0000

 Hi, and sorry that this PR has sat for so long without anyone looking at
 it.  Can you tell me, have you seen this problem again with newer
 versions of FreeBSD?
 

From: Spartak Radchenko <spartak@aif.ru>
To: bug-followup@FreeBSD.org
Cc: gavin@FreeBSD.org
Subject: Re: i386/78339: BTX loader crashes on boot on HP Proliant DL140
Date: Wed, 26 Mar 2008 00:43:01 +0300

 The problem persists. FreeBSD 6.3R, HP ProLiant DL140 G3, BIOS version 
 BIOS O08 (11/16/2007).
 
 BTX Halted
 
 int=0000000d  err=00000000  efl=00010046  eip=000090d8
 eax=00000011  ebx=00002820  ecx=00000000  edx=004b08ee
 esi=00009731  edi=00001f98  ebp=00000000  esp=00001800
 cs=0008  ds=0000  es=0000    fs=0020  gs=0020  ss=0010
 cs:eip=0f 01 15 00 97 00 00 66-ea e5 90 18 00 b1 20 8e
        d1 8e d9 8e c1 8e e1 8e-e9 48 0f 22 c0 ea fa 90
 ss:esp=0a 69 6e 74 3d 30 30 30-30 30 30 30 64 20 20 65
        72 72 sd 30 30 30 30 30-30 30 30 20 20 65 66 6c
 
 --
 Spartak Radchenko SVR1-RIPE
State-Changed-From-To: feedback->open 
State-Changed-By: gavin 
State-Changed-When: Fri Mar 28 16:10:24 UTC 2008 
State-Changed-Why:  
Feedback was received 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78339 
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Fri Mar 28 16:10:56 UTC 2008 
State-Changed-Why:  
To submitter:  Could you try booting one of the snapshot ISOs located 
at http://snapshots.us.freebsd.org/snapshots/ and dated after March 12th? 
Some changes bave recently been made to the BTX loader that may well fix 
your issues. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78339 
State-Changed-From-To: feedback->closed 
State-Changed-By: gavin 
State-Changed-When: Mon May 26 11:43:26 UTC 2008 
State-Changed-Why:  
Close, feedback timeout (3 months).  This may well be fixed with 
the new BTX 

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