From root@barbera.system.pl Wed Dec  8 07:42:31 1999
Return-Path: <root@barbera.system.pl>
Received: from barbera.system.pl (barbera.system.pl [195.205.185.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4B5E914E9B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Dec 1999 07:42:03 -0800 (PST)
	(envelope-from root@barbera.system.pl)
Received: (from root@localhost)
	by barbera.system.pl (8.9.3/8.9.3) id PAA00376;
	Wed, 8 Dec 1999 15:41:09 +0100 (CET)
	(envelope-from root)
Message-Id: <199912081441.PAA00376@barbera.system.pl>
Date: Wed, 8 Dec 1999 15:41:09 +0100 (CET)
From: saper@system.pl
Sender: root@barbera.system.pl
Reply-To: saper@system.pl
To: FreeBSD-gnats-submit@freebsd.org
Cc: saper@system.pl
Subject: ahc driver (Adaptec 7896) cannot see 4x18GB drives (but 3 are ok)
X-Send-Pr-Version: 3.2

>Number:         15356
>Category:       kern
>Synopsis:       ahc driver (Adaptec 7896) cannot see 4x18GB drives (but 3 are ok)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  8 07:50:01 PST 1999
>Closed-Date:    Sun Oct 28 11:21:31 PST 2001
>Last-Modified:  Sun Oct 28 11:22:36 PST 2001
>Originator:     Marcin Cieslak
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
SYSTEM Internet Provider
>Environment:

FreeBSD barbera.system.pl 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Mon Dec  6 16:18:04 CET 1999     toor@barbera.system.pl:/usr/src/sys/compile/Barbera.debug  i386

cvsuped as above.

ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> irq 11 at device 12.0 on pci0
ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> irq 11 at device 12.1 on pci0

Mounting root from ufs:/dev/da0s1a
da2 at ahc0 bus 0 target 2 lun 0
da2: <IBM DNES-318350Y SA30> Fixed Direct Access SCSI-3 device 
da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da2: 17501MB (35843670 512 byte sectors: 64H 32S/T 17501C)
da0 at ahc0 bus 0 target 0 lun 0
da0: <IBM DNES-318350Y SA30> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 17501MB (35843670 512 byte sectors: 64H 32S/T 17501C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <IBM DNES-318350Y SA30> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da1: 17501MB (35843670 512 byte sectors: 64H 32S/T 17501C)

da3: currently unplugged - same as da0..da2

All on a single channel. Properly terminated. 
Problem is the same whether drives are hardwired in the kernel or not.
I have increased SCSI_DELAY to 30 seconds.

Linux RedHat 6.0 and Solaris 7 can see all the drives.

The server is Intel 2U Rack Server with L440GX+ board and 
a single Pentium III.

Full description of hardware at http://www.intel.com/isp/ -> Products -> Servers -> 2U

>Description:

When all 4 drives are plugged-in, the boot process goes fine,
BIOS reports all of them (C..F). After SCSI bus reset
system aborts with no rootdev message. 
It's enough to unplug _any_ disk (despite da0 which contains the system)
and the system works fine.
Sometimes with full CAM debug enabled (all buses and targets) it works,
it happend to me that all disks showed up when booted with 3.2-Release
install floppy.

>How-To-Repeat:

Plug all 4 IBM 18GB drives onto one channel.

>Fix:

None :(



>Release-Note:
>Audit-Trail:

From: "Justin T. Gibbs" <gibbs@FreeBSD.org>
To: saper@system.pl
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/15356: ahc driver (Adaptec 7896) cannot see 4x18GB drives 
 (but 3 are ok)
Date: Wed, 08 Dec 1999 09:18:56 -0700

 >FreeBSD barbera.system.pl 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Mon Dec  6 16:18
 >:04 CET 1999     toor@barbera.system.pl:/usr/src/sys/compile/Barbera.debug  i3
 >86
 >
 >cvsuped as above.
 
 Can you verify that you have:
 
 $FreeBSD: src/sys/pci/ahc_pci.c,v 1.22 1999/12/06 18:29:03 gibbs Exp $
 
 It was designed to address a termination issue on these chips, and you
 may have just missed it.
 
 If either you already have this revision or you try the new one and it
 still doesn't work, send me the output from a boot -v.
 
 --
 Justin
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Sun Oct 28 11:21:31 PST 2001 
State-Changed-Why:  
Justin said this was fixed in source. 
Feedback time-out, assume it fixed the problem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=15356 
>Unformatted:
