From os@brain.cc.rsu.ru  Thu Feb 23 13:25:26 2006
Return-Path: <os@brain.cc.rsu.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 72F3816A420
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Feb 2006 13:25:26 +0000 (GMT)
	(envelope-from os@brain.cc.rsu.ru)
Received: from mail.r61.net (mail.r61.net [195.208.245.235])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B92DD43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Feb 2006 13:25:25 +0000 (GMT)
	(envelope-from os@brain.cc.rsu.ru)
Received: from brain.cc.rsu.ru (brain.cc.rsu.ru [195.208.252.154])
	by mail.r61.net (8.13.4/8.13.4) with ESMTP id k1NDPMEL089377;
	Thu, 23 Feb 2006 16:25:22 +0300 (MSK)
	(envelope-from os@brain.cc.rsu.ru)
Received: from brain.cc.rsu.ru (localhost [127.0.0.1])
	by brain.cc.rsu.ru (8.13.5/8.13.5) with ESMTP id k1NDPMm1036240;
	Thu, 23 Feb 2006 16:25:22 +0300 (MSK)
	(envelope-from os@brain.cc.rsu.ru)
Received: (from os@localhost)
	by brain.cc.rsu.ru (8.13.5/8.13.5/Submit) id k1NDPMlJ036239;
	Thu, 23 Feb 2006 16:25:22 +0300 (MSK)
	(envelope-from os)
Message-Id: <200602231325.k1NDPMlJ036239@brain.cc.rsu.ru>
Date: Thu, 23 Feb 2006 16:25:22 +0300 (MSK)
From: Oleg Sharoiko <os@rsu.ru>
Reply-To: Oleg Sharoiko <os@rsu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: and@rsu.ru, bushman@rsu.ru
Subject: Boot hangs on ips0: resetting adapter, this may take up to 5 minutes
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         93750
>Category:       kern
>Synopsis:       [ips] Boot hangs on ips0: resetting adapter, this may take up to 5 minutes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 23 13:30:02 GMT 2006
>Closed-Date:    
>Last-Modified:  Tue Mar 21 00:47:24 GMT 2006
>Originator:     Oleg Sharoiko
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
Computer Center of Rostov State University
>Environment:
System: i386 FreeBSD ibm3.r61.net 6.0-RELEASE FreeBSD 6.0-RELEASE #1: Mon Feb 20 12:43:07 MSK 2006     os@ibm3.r61.net:/usr/obj/usr/src/sys/SMP  i386

Machine: Dual CPU IBM eServer xSeries 226 with IBM ServeRAID 6i

>Description:
During normal boot GENERIC kernel hangs with the last message being

ips0: resetting adapter, this may take up to 5 minutes

Ctrl-Alt-Del doesn't work. Pressing power button doesn't work either, 
have to push it and wait for several seconds to switch the system off.

With hint.apic.0.disabled=1 GENERIC seems to boot fine. It's also possible 
to boot FreeBSD/i386 when hyper-threading is enabled (4 logical CPUs) and 
kernel has SMP option (just tried default SMP kernel). With only 2 CPUs 
(HTT disabled) SMP kernel also hangs at the same point. FreeBSD/amd64 only 
boots with apic disabled. This is not specific for 6.0 as RELENG_6 and 
CURRENT also have this problem.

Logs of verbose boots and results of acpidump available at
http://rsu.ru/~os/ips/
I'm ready to provide any possible help needed to resolve this issue.

I've posted a message to freebsd-scsi and Scott Long pointed that this
sounds like an interrupt routing problem.

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=20652+0+archive/2006/freebsd-scsi/20060219.freebsd-scsi
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=23717+0+archive/2006/freebsd-scsi/20060219.freebsd-scsi

>How-To-Repeat:
	
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-i386 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Feb 23 15:38:26 UTC 2006 
Responsible-Changed-Why:  
This sounds as though it might be i386-specific. 

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

From: Oleg Sharoiko <os@rsu.ru>
To: bug-followup@FreeBSD.org, os@rsu.ru
Cc:  
Subject: Re: i386/93750: Boot hangs on ips0: resetting adapter, this may
	take up to 5 minutes
Date: Thu, 23 Feb 2006 20:33:44 +0300

 As I mentioned in the original report this also happens with amd64.
 Behaviour is slightly different: system boots only with
 hint.apic.0.disabled=1. SMP kernels don't boot when APIC is enabled no
 matter if HTT is on or off.
 
 -- 
 Oleg Sharoiko.
 Software and Network Engineer
 Computer Center of Rostov State University.
 
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Mar 21 00:46:19 UTC 2006 
Responsible-Changed-Why:  
This does not sound i386-specific. 

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