From owner-freebsd-scsi Tue Nov 12 22:57:13 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60F0D37B406 for ; Tue, 12 Nov 2002 22:57:12 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 9AD8A43E7B for ; Tue, 12 Nov 2002 22:57:08 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 38201 invoked by uid 1000); 13 Nov 2002 06:57:10 -0000 Date: Tue, 12 Nov 2002 22:57:10 -0800 (PST) From: Nate Lawson To: Andrey Valik Cc: freebsd-scsi@freebsd.org Subject: Re: transmission speed In-Reply-To: <3DD1D22D.2E1B6120@papillon.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 13 Nov 2002, Andrey Valik wrote: > Nate Lawson wrote: > > > > On Tue, 12 Nov 2002, Andrey Valik wrote: > > > Hello! > > > > > > I have a SCSI target mode driver that emulate scanner, but transmission > > > speed is 20Mb/sec. > > > Both SCSI cards is Adaptec 19160. What I must do to speedup ? > > > > Are you using the freebsd target driver, both usermode and kernel > > driver? (i.e. sys/cam/scsi_target.c and /usr/share/examples/scsi_target) > > Yes, modificated by myself version from FreeBSD 4.5. > scsi_target.c version 1.22.2.6 2001/03/05. So when you do a rescan, you get a device of type "FreeBSD TM-PT"? > > If so, it only advertises it is capable of async transfers, so set SYNC > > and WIDE16 in the inquiry response. > > I maked this before, but in this case I have 20Mb/s. I think, that I will need to write scsi > negotiation, or may be > it's already writed in the next versions of scsi_target ? If you modify /sys/cam/scsi/scsi_target.c where it allocates inquiry data to announce sync + wide16 (see the SCSI specs at t10.org), the ahc(4) driver should perform the appropriate negotiation for you at the initiatior's request. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message