From nobody@FreeBSD.org  Sat Jul  4 17:18:32 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 349D81065674
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  4 Jul 2009 17:18:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 0920D8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  4 Jul 2009 17:18:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n64HIVgh040737
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 4 Jul 2009 17:18:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n64HIV9F040736;
	Sat, 4 Jul 2009 17:18:31 GMT
	(envelope-from nobody)
Message-Id: <200907041718.n64HIV9F040736@www.freebsd.org>
Date: Sat, 4 Jul 2009 17:18:31 GMT
From: Chris Whitehouse <cwhiteh@onetel.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Asus M3N78-EM motherboard cannot boot with generic kernel.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         136327
>Category:       kern
>Synopsis:       [sbp] [boot] Asus M3N78-EM motherboard cannot boot with generic kernel.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-firewire
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 04 17:20:02 UTC 2009
>Closed-Date:    
>Last-Modified:  Tue Nov 15 11:50:02 UTC 2011
>Originator:     Chris Whitehouse
>Release:        7.2-RELEASE-p1
>Organization:
>Environment:
FreeBSD eco.config 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #0: Sat Jun 20 22:43:47 BST 2009     root@eco.config:/usr/src/sys/i386/compile/GENERIC  i386
>Description:
Motherboard will not boot with standard kernel, eg installation CD.

I'm trying to install on a new motherboard ASUS M3N78-EM. While booting from FreeBSD installation CD I'm getting

run_interrupts_driven_hooks: still waiting after 60 seconds for xpt_config

This is repeated a few times then installation stops and the machine stops responding.

I've tried various versions, including 6.4R, 7.0R 7.2R and
8.0-CURRENT-200905-i386-disc1.iso. I've also tried SATA mode and AHCI mode for the SATA controller.

I get a panic from the 8-CURRENT snapshot. The others might be panicking but I guess their standard kernel doesn't have debug stuff

Backtrace from 8-CURRENT (typed by hand).

panic: run_interrupt_driven_hooks: waited too long
cpuid=0
KDB: enter: panic
[thread pid 0 tid 100000 ]
stopped at   kdb_enter+0x3a: movl   $0,kdb_why
db> bt
Tracing pid 0 tid 100000 td 0xc0d88fd0
kdb_enter(c0c3d8cf,c0c3d8cf,c0c3feac,c1820d08,0,...) at kdb_enter+0x3a
panic(c0c3feac,0,c0c3fe43,70,ea60,...) at panic+0x136
run_interrupt_driven_config_hooks(0,181ec00,181ec00,181e000,1825000,...) at run_interrupt_driven_config_hooks+0x1c7
mi_startup() at mi_startup+0x96
begin()at begin+0x2c
db>

=============================================================

After some trial and error the problem seems to be device sbp in the kernel config file. Comment that out and rebuild kernel and it boots.

Here's a backtrace from 7.2R using a GENERIC kernel (with sbp enabled) with debug options added.

run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config
panic: run_interrupt_driven_config_hooks: waited too long
cpuid=0
KDB: enter: panic
[thread pid 0 tid 0 ]
stopped at   kdb_enter_why+0x3a:    movl   $0,kdb_why
db> bt
Tracing pid 0 tid 0 td 0xc0cc1b40
kdb_enter_why(c0b87110,c0b87110,c0b89425,c1020d0c,0,...) at
kdb_enter_why+0x3a
panic(c0b89425,0,c0b893c0,71,ea60,...) at panic+0x136
run_interrupt_driven_config_hooks(0,101ec00,101ec00,101e000,1025000,...)
at run_interrupt_driven_config_hooks+0x1b7
mi_startup() at mi_startup+0x96
begin()at begin+0x2c
db> 
>How-To-Repeat:
Boot the motherboard with any of the standard kernels listed above. 
>Fix:
Workaround:

Disable firewire in BIOS
Install from a standard CD
Reboot to hard disk
Build and install a custom kernel with device spb disabled
Reboot and enable firewire in the BIOS.

kldload sbp if required (I have tested that it loads, not whether it works.)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Fri Nov 11 19:48:49 UTC 2011 
State-Changed-Why:  
Can you still reproduce this on recent FreeBSD versions? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136327 
State-Changed-From-To: feedback->open 
State-Changed-By: jh 
State-Changed-When: Sat Nov 12 20:08:20 UTC 2011 
State-Changed-Why:  
Still a problem on 9.0-CURRENT. 


Responsible-Changed-From-To: freebsd-bugs->freebsd-firewire 
Responsible-Changed-By: jh 
Responsible-Changed-When: Sat Nov 12 20:08:20 UTC 2011 
Responsible-Changed-Why:  
Reassign. 

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

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, cwhiteh@onetel.com
Cc:  
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot
 boot with generic kernel.
Date: Sat, 12 Nov 2011 12:34:08 -0800

 Can you put this machine up somewhere that I can get into it and have
 root access?
 
 This is a long standing issue with firewire that I'd like to fix if
 possible.
 
 Sean
 

From: Chris Whitehouse <cwhiteh@onetel.com>
To: sbruno@FreeBSD.org
Cc: Sean Bruno <seanbru@yahoo-inc.com>, bug-followup@FreeBSD.org
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot boot
 with generic kernel.
Date: Sat, 12 Nov 2011 23:48:35 +0000

 On 12/11/2011 20:34, Sean Bruno wrote:
 > Can you put this machine up somewhere that I can get into it and have
 > root access?
 >
 > This is a long standing issue with firewire that I'd like to fix if
 > possible.
 >
 > Sean
 >
 >
 I should be able to but I need to check as I don't own my internet 
 connection. Also I need to set up a fresh install but that won't take long.
 
 How would we arrange restarts since the machine needs to be physically 
 turned off and turned on again after a hang and we are in different time 
 zones? Best I can imagine is you would have to email me and I do it as 
 soon as I receive it, which could be a while. Or would you be able to 
 avoid restarts?
 
 Chris

From: Sean Bruno <seanbru@yahoo-inc.com>
To: Chris Whitehouse <cwhiteh@onetel.com>
Cc: "sbruno@FreeBSD.org" <sbruno@FreeBSD.org>,
        "bug-followup@FreeBSD.org"
 <bug-followup@FreeBSD.org>
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot
 boot with generic kernel.
Date: Sun, 13 Nov 2011 09:16:31 -0800

 On Sat, 2011-11-12 at 15:48 -0800, Chris Whitehouse wrote:
 > On 12/11/2011 20:34, Sean Bruno wrote:
 > > Can you put this machine up somewhere that I can get into it and have
 > > root access?
 > >
 > > This is a long standing issue with firewire that I'd like to fix if
 > > possible.
 > >
 > > Sean
 > >
 > >
 > I should be able to but I need to check as I don't own my internet 
 > connection. Also I need to set up a fresh install but that won't take long.
 > 
 > How would we arrange restarts since the machine needs to be physically 
 > turned off and turned on again after a hang and we are in different time 
 > zones? Best I can imagine is you would have to email me and I do it as 
 > soon as I receive it, which could be a while. Or would you be able to 
 > avoid restarts?
 > 
 > Chris
 
 Well, I was going to try and use a kernel without sbp and load sbp as a
 kmod.  I had hoped that I could get a serial console on it as well, but
 I'd like to see what the machine is like first.
 
 Sean
 

From: Chris Whitehouse <cwhiteh@onetel.com>
To: Sean Bruno <seanbru@yahoo-inc.com>
Cc: "sbruno@FreeBSD.org" <sbruno@FreeBSD.org>, 
 "bug-followup@FreeBSD.org" <bug-followup@FreeBSD.org>
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot boot
 with generic kernel.
Date: Sun, 13 Nov 2011 21:16:57 +0000

 On 13/11/2011 17:16, Sean Bruno wrote:
 > On Sat, 2011-11-12 at 15:48 -0800, Chris Whitehouse wrote:
 >> On 12/11/2011 20:34, Sean Bruno wrote:
 >>> Can you put this machine up somewhere that I can get into it and have
 >>> root access?
 >>>
 >>> This is a long standing issue with firewire that I'd like to fix if
 >>> possible.
 >>>
 >>> Sean
 >>>
 >>>
 >> I should be able to but I need to check as I don't own my internet
 >> connection. Also I need to set up a fresh install but that won't take long.
 >>
 >> How would we arrange restarts since the machine needs to be physically
 >> turned off and turned on again after a hang and we are in different time
 >> zones? Best I can imagine is you would have to email me and I do it as
 >> soon as I receive it, which could be a while. Or would you be able to
 >> avoid restarts?
 >>
 >> Chris
 >
 > Well, I was going to try and use a kernel without sbp and load sbp as a
 > kmod.  I had hoped that I could get a serial console on it as well, but
 > I'd like to see what the machine is like first.
 >
 > Sean
 >
 >
 Hi,
 
 should be up now, I'm sending details offlist.
 
 Firewire is enabled in BIOS and I rebuilt the kernel with device sbp 
 disabled.
 
 #kldload sbp
 seems to work, as in it loads and doesn't crash the machine but I don't 
 have any devices to hand to test further than that.
 
 Chris

From: Sean Bruno <seanbru@yahoo-inc.com>
To: bug-followup@FreeBSD.org, cwhiteh@onetel.com
Cc:  
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot
 boot with generic kernel.
Date: Mon, 14 Nov 2011 16:27:49 -0800

 Can you post the very verbose version of pciconf?
 
 also, can you post the output when loading sbp.ko and the dmesg from the
 box?
 
 Sean
 

From: Chris Whitehouse <cwhiteh@onetel.com>
To: Sean Bruno <seanbru@yahoo-inc.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/136327: [sbp] [boot] Asus M3N78-EM motherboard cannot boot
 with generic kernel.
Date: Tue, 15 Nov 2011 11:46:33 +0000

 On 15/11/2011 00:27, Sean Bruno wrote:
 > Can you post the very verbose version of pciconf?
 >
 > also, can you post the output when loading sbp.ko and the dmesg from the
 > box?
 >
 > Sean
 >
 >
 http://www.fishercroft.plus.com
 
 dmesg_-a.txt is dmesg -a
 
 pciconf_-lv.txt is pciconf -lv
 
 #kldload sbp
 #tail -2 /var/log/messages
 Nov 15 11:29:09 sbpi386 su: chrisw to root on /dev/pts/0
 Nov 15 11:31:43 sbpi386 kernel: sbp0: <SBP-2/SCSI over FireWire> on 
 firewire0
 
 cheers
 
 Chris
>Unformatted:
