Bug 14083

Summary: CAM 3.3-RELEASE fails boot w/2940UW + non-wide device
Product: Base System Reporter: Geoffrey C. Speicher <geoff>
Component: kernAssignee: Justin T. Gibbs <gibbs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   

Description Geoffrey C. Speicher 1999-10-02 00:20:01 UTC
	Upgrade to 3.3 resulted in unbootable kernel, failing when probing
	SCSI devices, as shown in these portions from `desg`:

	ahc0: <Adaptec 2940 Ultra SCSI
	ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
	...
	ahc0:A:1: refuses WIDE negotiation.  Using 8bit transfers
	Unexpected busfree.  LASTPHASE == 0xa0
	SEQADDR == 0x153
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	ahc0:A:2: refuses WIDE negotiation.  Using 8bit transfers
	Rebooting...

	(The reboot was forced by Ctrl-Alt-Del, after the kernel was
	hanging there for several minutes.)

	Previously (all versions since CAM's inception), the
	"refuses WIDE negotiation" message would appear once per
	device, but everything would then work as expected.

Fix: 

Turn off wide transfers for non-wide devices in SCSI BIOS.  :)
	(Drives incapable of synchronous transfers still display
	a similar message but neither hangs nor produces the
	"Unexpected busfree" business.)
How-To-Repeat: 
	Boot an AHA-2940UW (maybe others?) with a non-wide device
	attached.  Make sure the SCSI BIOS is set to do wide
	transfers on the device, or everything will probably work
	just fine.
Comment 1 Justin T. Gibbs freebsd_committer freebsd_triage 1999-10-04 22:48:24 UTC
Responsible Changed
From-To: gnats-admin->gibbs

My driver. 
Comment 2 Justin T. Gibbs freebsd_committer freebsd_triage 1999-10-04 22:49:00 UTC
State Changed
From-To: open->feedback

I can't seem to reproduce this here with an ST34371N attached to 
a 2940UW.  The odd thing about this report is that CAM shouldn't 
even attempt to negotiate wide to a device that does not claim 
wide support.  What kind of device are you using?  Do you get 
the same behaviour using a 4.0-snap install floppy? 
Comment 3 Justin T. Gibbs freebsd_committer freebsd_triage 2001-02-24 20:11:37 UTC
State Changed
From-To: feedback->closed

No response from originator.