Subject: Re: ahc attaches UW disk with 10MHz only?
To: None <port-i386@netbsd.org>
From: Greg A. Woods <woods@most.weird.com>
List: port-i386
Date: 09/28/1999 01:39:55
[ On , September 27, 1999 at 21:52:45 (GMT), Matthias Scheler wrote: ]
> Subject: Re: ahc attaches UW disk with 10MHz only?
>
> It must be a configuration problem because it works in general:
> 
> ahc0: target 0 using 16Bit transfers
> ahc0: target 0 synchronous at 20.0MHz, offset = 0x8
> sd0 at scsibus0 targ 0 lun 0: <IBM, DDRS-39130W, S97B> SCSI2 0/direct fixed
> sd0: 8715 MB, 8387 cyl, 10 head, 212 sec, 512 bytes/sect x 17850000 sectors

It did not work in 1.3.3.

> > (The AHA 2940UW has its "ultra" option activated).
> 
> Update to the newest BIOS and double check if says "40MHz" for that device.

The BIOS?  Which BIOS?  Why would even the host adapter card's BIOS have
anything whatsoever to do with the way the NetBSD SCSI driver negotiates
with the drives?  (With the card setup, yes, but the SCSI targets?!?!?!)

Sep 27 09:31:21 admin /netbsd: ahc0 at pci1 dev 4 function 0
Sep 27 09:31:21 admin /netbsd: ahc0: interrupting at irq 14
Sep 27 09:31:21 admin /netbsd: ahc0: Using left over BIOS settings
Sep 27 09:31:21 admin /netbsd: ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
Sep 27 09:31:21 admin /netbsd: scsibus0 at ahc0 channel 0: 16 targets
Sep 27 09:31:22 admin /netbsd: ahc0: target 0 using 16Bit transfers
Sep 27 09:31:22 admin /netbsd: ahc0: target 0 synchronous at 10.0MHz, offset = 0x8
Sep 27 09:31:22 admin /netbsd: ahc0: target 0 Tagged Queuing Device
Sep 27 09:31:22 admin /netbsd: sd0 at scsibus0 targ 0 lun 0: <IBM, DGHS09U, 0350> SCSI3 0/direct fixed
Sep 27 09:31:22 admin /netbsd: sd0: 8748MB, 8152 cyl, 10 head, 219 sec, 512 bytes/sect x 17916240 sectors
Sep 27 09:31:22 admin /netbsd: ahc0: target 1 using 16Bit transfers
Sep 27 09:31:22 admin /netbsd: ahc0: target 1 synchronous at 10.0MHz, offset = 0x8
Sep 27 09:31:22 admin /netbsd: ahc0: target 1 Tagged Queuing Device
Sep 27 09:31:22 admin /netbsd: sd1 at scsibus0 targ 1 lun 0: <IBM, DGHS09U, 0350> SCSI3 0/direct fixed
Sep 27 09:31:22 admin /netbsd: sd1: 8748MB, 8152 cyl, 10 head, 219 sec, 512 bytes/sect x 17916240 sectors

Those drives are fast&wide ultra scsi-3 drives and are reported as 20MHz
under FreeBSD-3.0 (and benchmark much faster on FreeBSD too!).

If I recall correctly I even hard-coded the "SCSI BIOS probes" at 40MHz
and still the NetBSD driver responded no differently.

As I recall from trying to resolve differences between the NetBSD AHC
driver and the much newer and FreeBSD driver (CAM), the older drivers
were simply doing the wrong things (and sometimes even just reporting
the wrong things about what they did).  Fixing the older drivers does
seem to be much harder even than porting the CAM framework....

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>