From owner-freebsd-scsi Tue Apr 21 21:08:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA05847 for freebsd-scsi-outgoing; Tue, 21 Apr 1998 21:08:24 -0700 (PDT) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA05764; Wed, 22 Apr 1998 04:07:28 GMT (envelope-from peter@netplex.com.au) Received: from spinner.netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (8.8.8/8.8.8/Spinner) with ESMTP id MAA01011; Wed, 22 Apr 1998 12:06:49 +0800 (WST) (envelope-from peter@spinner.netplex.com.au) Message-Id: <199804220406.MAA01011@spinner.netplex.com.au> X-Mailer: exmh version 2.0.2 2/24/98 To: "Justin T. Gibbs" cc: gibbs@FreeBSD.ORG, scsi@FreeBSD.ORG Subject: Re: ahh, I think I see part of the problem.. (CAM bouncing) In-reply-to: Your message of "Tue, 21 Apr 1998 11:19:56 CST." <199804211723.LAA29727@pluto.plutotech.com> Date: Wed, 22 Apr 1998 12:06:48 +0800 From: Peter Wemm Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Justin T. Gibbs" wrote: [..] > 3) Tell the hardware to perform the transfer. > > 4) Perform another sync operation on the map (POSTREAD, POSTWRITE). This > performs the "bounce back" for bounce buffer reads. > > 5) Unload the mapping. > > It just so happens that I forgot to perform steps 4 and 5 in the BT driver. > Ooops. Diff attached. Ahh... Yes, this indeed does make a lot of difference. :-) It's running now "just fine" so far (touch wood) on both a BT545S and 445S (with 16MB crossover blocked). --- bt_isa.c.save Tue Apr 21 00:59:42 1998 +++ bt_isa.c Tue Apr 21 15:15:23 1998 @@ -304,6 +304,8 @@ if (addr >= bt->bios_addr && addr < (bt->bios_addr + BIOS_MAP_SIZE)) + return (1); + if (addr == 0) return (1); return (0); } Since addr at that point is masked to a 24 bit address, this is quick and convenient. It hardly seems worth testing for firmware rev 3.35 or earlier.. (although it would be relatively simple to store an extra flag in the bt_softc at probe time and simply test it here rather than a string compare for each filter call.) bt0 at 0x330 irq 11 on isa bt0: BT-445S FW Rev. 3.35 Narrow SCSI Host Adapter, SCSI ID 7, 30 CCBs [..] sa0 at bt0 bus 0 target 4 lun 0 sa0: Removable Sequential Access SCSI1 device sa0: 3.300MB/s transfers da1 at bt0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI2 device da1: Serial Number 399741110024 da1: 10.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled da1: 2014MB (4124736 512 byte sectors: 128H 32S/T 1007C) cd0 at bt0 bus 0 target 2 lun 0 cd0: Removable CD-ROM SCSI2 device cd0: 4.32MB/s transfers (4.32MHz, offset 15) cd0: Attempt to query device size failed: NOT READY, Medium not present da0 at bt0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI2 device da0: 10.0MB/s transfers (10.0MHz, offset 8) da0: 516MB (1057758 512 byte sectors: 64H 32S/T 516C) (da1:bt0:0:1:0): tagged openings now 25 (da1:bt0:0:1:0): tagged openings now 24 (da1:bt0:0:1:0): tagged openings now 23 (da1:bt0:0:1:0): tagged openings now 22 (da1:bt0:0:1:0): tagged openings now 21 (da1:bt0:0:1:0): tagged openings now 20 (da1:bt0:0:1:0): tagged openings now 19 (da1:bt0:0:1:0): tagged openings now 18 (da1:bt0:0:1:0): tagged openings now 17 (da1:bt0:0:1:0): tagged openings now 16 (da1:bt0:0:1:0): tagged openings now 15 The system seems to feel more responsive relative to the AHA1542CF that it used to have. :-) It's only an ISA/VLB 486DX2-66 w/ 32M of ram and needed all the help it could get. Cheers, -Peter -- Peter Wemm Netplex Consulting To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message