Subject: kern/10933: ahc w/ Adaptec-7895 recognizes everything as 5.7MHz
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin J. Laubach <mjl@emsi.priv.at>
List: netbsd-bugs
Date: 09/01/2000 08:34:15
>Number: 10933
>Category: kern
>Synopsis: ahc w/ Adaptec-7895 recognizes everything as 5.7MHz
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 01 08:35:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Martin J. Laubach
>Release: 1.5_ALPHA2
>Organization:
>Environment:
System: NetBSD at-intranet.xxx.at 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (XXX-E60) #0: Wed Aug 16 16:42:30 CEST 2000 mjl@at-intranet.xxx.at:/home/users/mjl/netbsd/src/sys/arch/i386/compile/XXX-E60 i386
>Description:
fvdl said he would get around to this later in the release
cycle, so just that it doesn't get lost:
I just installed NetBSD 1.5B on a HP NetServer E60, and
noticed that our Adaptec 7895 driver seems to get the maximum
speed for scsi devices wrong. See the dmesg snipped below and
notice the weird "5.7MHz" -- Linux says it talks at 40MB/s
which would equate to 20MHz. (And this is what I'd expect from
a high price server machine anyway.)
All Ultra/Wide options are enabled in the Adaptec's BIOS.
ahc0 at pci0 dev 5 function 0
ahc0: interrupting at irq 10
ahc0: Using left over BIOS settings
ahc0: aic7895 Wide Channel A, SCSI Id=7, 16/255 SCBs
scsibus0 at ahc0 channel 0: 16 targets, 8 luns per target
ahc1 at pci0 dev 5 function 1
ahc1: interrupting at irq 10
ahc1: aic7895 Wide Channel B, SCSI Id=7, 16/255 SCBs
ahc1: Host Adapter Bios disabled. Using default SCSI device parameters
scsibus1 at ahc1 channel 0: 16 targets, 8 luns per target
...
scsibus0: waiting 2 seconds for devices to settle...
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 5.7MHz, offset = 0x8
^^^^^^^^^^^^^^^^^^^^
ahc0: target 0 using tagged queuing
sd0 at scsibus0 target 0 lun 0: <HP, 9.10GB A 68-SA40, SA40> SCSI2 0/direct fixed
sd0: 8678 MB, 11474 cyl, 5 head, 309 sec, 512 bytes/sect x 17773524 sectors
ahc0: target 1 using 16bit transfers
ahc0: target 1 synchronous at 5.7MHz, offset = 0x8
^^^^^^^^^^^^^^^^^^^^
ahc0: target 1 using tagged queuing
sd1 at scsibus0 target 1 lun 0: <HP, 9.10GB A 68-SA40, SA40> SCSI2 0/direct fixed
sd1: 8678 MB, 11474 cyl, 5 head, 309 sec, 512 bytes/sect x 17773524 sectors
ahc1: target 3 synchronous at 5.7MHz, offset = 0xf
^^^^^^^^^^^^^^^^^^^^
st0 at scsibus0 target 3 lun 0: <HP, C1537A, L907> SCSI2 1/sequential removable
st0: drive empty
fvdl wanted me to check what values period and offset are set, and
they are period 43 and offset 8 or 15 respectively, just what is displayed.
Linux does this:
Linux version 2.2.14 (root@Pentium.suse.de) (gcc version 2.95.2 19991024 (release)) #1 Sat Mar 25 00:45:35 GMT 2000
...
(scsi0) <Adaptec AIC-7895 Ultra SCSI host adapter> found at PCI 0/5/0
(scsi0) Wide Channel A, SCSI ID=7, 32/255 SCBs
(scsi0) Downloading sequencer code... 383 instructions downloaded
enable_irq() unbalanced from d400ea36
(scsi1) <Adaptec AIC-7895 Ultra SCSI host adapter> found at PCI 0/5/1
(scsi1) Wide Channel B, SCSI ID=7, 32/255 SCBs
(scsi1) Downloading sequencer code... 383 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.25/3.2.4
<Adaptec AIC-7895 Ultra SCSI host adapter>
scsi1 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.25/3.2.4
<Adaptec AIC-7895 Ultra SCSI host adapter>
scsi : 2 hosts.
(scsi0:0:0:0) Synchronous at 40.0 Mbyte/sec, offset 8.
^^^^^^^^^^^^^^^^^^^^^^^^
Vendor: HP Model: 9.10GB A 68-SA40 Rev: SA40
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:1:0) Synchronous at 40.0 Mbyte/sec, offset 8.
^^^^^^^^^^^^^^^^^^^^^^^^
Vendor: HP Model: 9.10GB A 68-SA40 Rev: SA40
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0
(scsi0:0:3:0) Synchronous at 10.0 Mbyte/sec, offset 15.
^^^^^^^^^^^^^^^^^^^^^^^^
Vendor: HP Model: C1537A Rev: L907
Type: Sequential-Access ANSI SCSI revision: 02
>How-To-Repeat:
Boot with a 7895
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: