From nathan!ue@mail.germany.eu.net  Wed Nov  6 01:07:41 1996
Received: from mail.ruhrgebiet.individual.net (in-ruhr.ruhr.de [193.100.176.38])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA03686
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 6 Nov 1996 01:07:39 -0800 (PST)
Received: by mail.ruhrgebiet.individual.net (8.7.1/8.6.12) with UUCP id KAA03966 for freebsd.org!FreeBSD-gnats-submit; Wed, 6 Nov 1996 10:04:28 +0100 (MET)
Received: by nathan.ruhr.de (Smail3.1.28.1 #4)
	id m0vL3lo-00048lC; Wed, 6 Nov 96 09:55 MET
Message-Id: <m0vL3lo-00048lC@nathan.ruhr.de>
Date: Wed, 6 Nov 96 09:55 MET
From: ue@nathan.ruhr.de
Reply-To: ue@mail.ruhrgebiet.individual.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: ahc0 driver hangs after wide negotiation with non-wide targets
X-Send-Pr-Version: 3.2

>Number:         1967
>Category:       kern
>Synopsis:       ahc0 driver hangs after wide negotiation with non-wide targets
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gibbs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov  6 01:10:02 PST 1996
>Closed-Date:    Wed Nov 6 10:39:29 PST 1996
>Last-Modified:  Wed Nov  6 10:41:05 PST 1996
>Originator:     Udo Erdelhoff
>Release:        FreeBSD 2.1.5-RELEASE
>Organization:
Udo Erdelhoff						ue@nathan.ruhr.de
>Environment:
Machine: P-100 on Asus TP4N
SCSI controller: Adaptec 2940 UW, factory defaults (above 1 Gig translation
                 enabled, sync and wide negotiation enabled, disconnect
                 allowed, max. sync rate 40 MHz).
ID0:	IBM DPES-31080         (sd0, narrow, used for DOS)
ID1:	IBM DORS-32160W        (sd1, wide, used for FreeBSD 2.1.5)
ID4:	Quantum Maverick 540 S (sd2, narrow, contains 2.1.0, currently unused)
ID5:	Pioneer DR-U10X        (cd0, narrow, CD-ROM)
*or*	Sanyo CRD 245SH        (cd0, narrow, CD-ROM)

OS Version: FreeBSD 2.1.5-RELEASE (Walnut Creek CD-ROM)
Kernel: default kernel on the CD-ROM

>Description:
The kernel detects that the adaptec 2940 is present. The ahc0 driver
displays detects the DPES and reports "target refuses wide negotiation,
using 8-bit transfers". The DORS is detected, no error message is 
displayed. The driver also detects the Maverick and display the "no
wide negotiation" message again. After that, the systems hangs.
The only way out is the reset switch, CTRL-ALT-DELETE doesn't work.
I thought it was the CD-ROM, so I exchanged the Pioneer with my old
Sanyo. That didn't help. It does not matter if the CD-ROM contains
a CD or not.

>How-To-Repeat:
Simply reboot :-)

>Fix:
Disallow Wide Negotiation for all narrow devies (sd0, sd2, cd0) in the
SCSI Device Configuration of the Adaptec.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gibbs 
State-Changed-When: Wed Nov 6 10:39:29 PST 1996 
State-Changed-Why:  
This bug is fixed in -current (Satoshi Asami has verified this) and will 
be committed to -stable later tonight.  It will also be fixed in the 
2.2 Release. 


Responsible-Changed-From-To: freebsd-bugs->gibbs 
Responsible-Changed-By: gibbs 
Responsible-Changed-When: Wed Nov 6 10:39:29 PST 1996 
Responsible-Changed-Why:  
My driver. 
>Unformatted:
