From nobody@FreeBSD.org  Sun Jul 15 08:41:48 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7EAA916A400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Jul 2007 08:41:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 6D4F913C441
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Jul 2007 08:41:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6F8flHW065245
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Jul 2007 08:41:47 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l6F8flAG065244;
	Sun, 15 Jul 2007 08:41:47 GMT
	(envelope-from nobody)
Message-Id: <200707150841.l6F8flAG065244@www.freebsd.org>
Date: Sun, 15 Jul 2007 08:41:47 GMT
From: Juergen Dankoweit <Juergen.Dankoweit@FreeBSD-Onkel.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: System hangs at SCSI bus reset with dual HBAs
X-Send-Pr-Version: www-3.0

>Number:         114597
>Category:       kern
>Synopsis:       [sym] System hangs at SCSI bus reset with dual HBAs
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-scsi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 15 08:50:02 GMT 2007
>Closed-Date:    Mon Apr 29 06:50:11 UTC 2013
>Last-Modified:  Mon Apr 29 06:50:11 UTC 2013
>Originator:     Juergen Dankoweit
>Release:        FreeBSD 7.0 current 06/2007
>Organization:
>Environment:
I only can tell you that it is FreeBSD 7.0 current 06/2007 with GENERIC kernel
>Description:
The following tests were made on production machines during a short downtime.
During boot time FreeBSD 7.0 current GENERIC hangs while examine the SCSI
bus. Only in "Safe Mode" it boots complete into login prompt.

I have tested the following cases:
normal boot: ACPI enabled and ACPI disabled
-------------------------------------------
Kernel messages
Waiting 5 sec to settle SCSI device
(noperiph: sym0:0:-1:-1) SCSI BUS reset delivered
(noperiph: sym1:0:-1:-1) SCSI BUS reset delivered
After this the machine hangs, no keyboard entries are possible, only hardware reset

Verbose logging:
----------------
Waiting 5 sec to settle SCSI device
(noperiph: sym0:0:-1:-1) SCSI BUS reset delivered
sym0: enabling clock multiplier
sym0: download SCSI SCRIPTS
(noperiph: sym1:0:-1:-1) SCSI BUS reset delivered
sym1: enabling clock multiplier
sym1: download SCSI SCRIPTS
After this the machine hangs, no keyboard entries are possible, only
hardware reset

From FreeBSD 5.5 I know that now the following message should be shown:
(noperiph: sym1:0:-1:-1) change from SE to SE

FreeBSD 4.11, 5.3 realese #3, 5.4 and 5.5 run perfect with this hardware
constellation. But FreeBSD 6.x and 7.x hang at the described position. I
have tested this on eight other systems with two HBAs and they show the
same behavior. All were SMP machines and the CPUs were correctly detected.
>How-To-Repeat:
Restart the system with FreeBSD 6.x or 7.x
>Fix:


>Release-Note:
>Audit-Trail:

From: mjacob@freebsd.org
To: Juergen Dankoweit <Juergen.Dankoweit@FreeBSD-Onkel.de>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/114597: System hangs at SCSI bus reset with dual HBAs
Date: Sun, 15 Jul 2007 02:09:38 -0700 (PDT)

 Yuu're missing some info:
 
 What kind of Symbios in all of the systems?
 Which architecture? i386 I would guess, but pls confirm
 You say 7.0 current in summary, but then say 6.x/7.x. Can you confirm 
 *any* 6.x release working for you?
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jul 15 13:51:46 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer(s). 

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

From: mjacob@freebsd.org
To: Juergen.Dankoweit@FreeBSD-Onkel.de
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/114597: System hangs at SCSI bus reset with dual HBAs
Date: Sun, 15 Jul 2007 09:19:23 -0700 (PDT)

 > Yes. 6.x does not work. The Safemode doesn't work, too.
 >
 > With 7.x I wanted to point out that all "7.0 currents" are meant.
 
 Down Safe Mode with 7.x work?

From: Matthew Jacob <mj@feral.com>
To: freebsd-gnats-submit@freebsd.org
Cc: freebsd-bugs@freebsd.org
Subject: Re: kern/114597: System hangs at SCSI bus reset with dual HBAs
Date: Sun, 15 Jul 2007 09:19:00 -0700 (PDT)

 ---------- Forwarded message ----------
 Date: Sun, 15 Jul 2007 13:31:41 +0200
 From: Juergen Dankoweit <Juergen.Dankoweit@t-online.de>
 Reply-To: Juergen.Dankoweit@FreeBSD-Onkel.de
 To: mjacob@freebsd.org
 Subject: Re: kern/114597: System hangs at SCSI bus reset with dual HBAs
 
 Hello,
 
 thanks for reading the bug report. The Symbios-HBAs use 53C895 and
 53C1010 chipsets. But it is not only Symbios. One machine has two
 Adaptec 29320 HBAs onboard and shows the same effect.
 All machines are i386.
 
 
 Am Sonntag, den 15.07.2007, 02:09 -0700 schrieb mjacob@freebsd.org:
 > Yuu're missing some info:
 >
 > What kind of Symbios in all of the systems?
 > Which architecture? i386 I would guess, but pls confirm
 > You say 7.0 current in summary, but then say 6.x/7.x. Can you confirm
 > *any* 6.x release working for you?
 
 Yes. 6.x does not work. The Safemode doesn't work, too.
 
 With 7.x I wanted to point out that all "7.0 currents" are meant.
 
 IDE is turned off. All disks are connected to the HBAs.
 
 Sorry that I have forgotten some infos. I had to wrote them down on a
 peace of paper.
 
 Best regards
 
 Juergen
 

From: Juergen.Dankoweit@t-online.de (Juergen Dankoweit)
To: mjacob@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/114597: System hangs at SCSI bus reset with dual HBAs
Date: Sun, 15 Jul 2007 19:25:45 +0200

 Am Sonntag, den 15.07.2007, 09:19 -0700 schrieb mjacob@freebsd.org:
 > > Yes. 6.x does not work. The Safemode doesn't work, too.
 > >
 > > With 7.x I wanted to point out that all "7.0 currents" are meant.
 > 
 > Down Safe Mode with 7.x work?
 Yes it works in FreeBSD 7.x and NOT in FreeBSD 6.x
 

From: Juergen Dankoweit <Juergen.Dankoweit@T-Online.de>
To: bug-followup@FreeBSD.org, Juergen.Dankoweit@FreeBSD-Onkel.de
Cc:  
Subject: Re: kern/114597: [sym] System hangs at SCSI bus reset with dual
	HBAs
Date: Sun, 12 Aug 2007 11:08:21 +0200

 Hello,
 
 after thinking how to solve this awful problem, I found this solution
 which works great. Here the code snippet
 
    /* Checking for sym-driver is disabled in the device.hints */
    unit = device_get_unit(dev);
    if (resource_disabled("sym", unit)) {
       device_printf(dev, "sym_pci_probe: sym driver disabled\n");
       return (ENXIO);
    }
    /* ------------------------------------------------------- */
 
 It should be place in the following functions:
 ----------------------------------------------
 line 8465: static int sym_pci_probe(device_t dev);
 line 8482: static int sym_pci_attach(device_t dev);
 
 What does it do:
 ----------------
 It looks in the /boot/device.hints after the following entry:
 hints.sym.x.disabled="1" (where x = 0, 1, 2, ...)
 
 Why this solution:
 ------------------
 The problem is that FreeBSD finds on some systems the LSI chips even if
 they are disabled by the BIOS. To suppress this I added this hint. Now
 it is possible to install FreeBSD on systems with LSI where the boot
 sequence hangs. So it is possible to use an other host adaptor like
 Adaptec or so.
 
 Conclusion:
 -----------
 It is tested on several machines and it works great.
 It would be nice if this is in the next FreeBSD 7.0 snapshot.
 
 Best regards
 
 Juergen Dankoweit
 

From: Gavin Atkinson <gavin.atkinson@ury.york.ac.uk>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/114597: [hang]
Date: Fri, 18 Apr 2008 15:07:52 +0100

 Collecting together info from PR 88315 from same submitter so that all
 info is in one place from PRs 88315 and 93128:
 
 The system is a Siemens Primergy 470, dual PIII 450MHz.  It has two
 Symbios/LSI 83C895 HBAs, one is onboard and the second is on a separate
 PCI card.  The onboard HBA has LVD hard drives, the second only single
 ended devices are connected.  During the boot process of FreeBSD 6.0 RC1
 the machine hangs at the marked lines (the output was generated on a
 FBSD 5.3 STABLE 3) (PR 88315):
 
 primergy470# dmesg | grep sym
 sym0: <895> port 0x3000-0x30ff mem
 0xf0200000-0xf0200fff,0xf0201000-0xf02010ff irq 23 at device 1.0 on pci2
 sym0: Symbios NVRAM, ID 7, Fast-40, LVD, parity checking
 sym0: open drain IRQ line driver, using on-chip SRAM
 sym0: using LOAD/STORE-based firmware.
 sym1: <895> port 0x1800-0x18ff mem
 0xf0101000-0xf0101fff,0xf0102000-0xf01020ff irq 17 at device 13.0 on
 pci0
 sym1: Symbios NVRAM, ID 7, Fast-40, SE, parity checking
 sym1: open drain IRQ line driver, using on-chip SRAM
 sym1: using LOAD/STORE-based firmware.
 [^^^^^^^^^^^^^^^^^^^^^^^^^^ on FBSD 6.0RC1 it hangs here!]
 
 On 6.x it hangs at this position (PR 93128):
 (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered.
 (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered.
 (noperiph:sym1:0:-1:-1): SCSI BUS mode change from SE to SE.
 [ 5 minute hang here ] 
 da0 at sym0 bus 0 target 0 lun 0
 da0: <COMPAQ BD036735C8 B020> Fixed Direct Access SCSI-2 device
 da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
 da0: 34732MB (71132000 512 byte sectors: 255H 63S/T 4427C)
 [ then no more ]
 
 The machine showed the same symptoms with FreeBSD 5.3 RC2, but was fixed
 for 5.3 RC3.  It also worked under 5.4, but 6.0 and 6.2 failed in the
 same way.  7.0 boots, but only in safe mode.
State-Changed-From-To: open->closed 
State-Changed-By: sbruno 
State-Changed-When: Mon Apr 29 06:45:56 UTC 2013 
State-Changed-Why:  
This ticket is on an unsupported release of FreeBSD.  If this is 
still testable and is still occuring on a more modern release, open 
a new ticket with a boot verbose dmesg and pciconf -lv 

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