From owner-freebsd-scsi Wed Nov 13 0:41: 5 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 5A52D37B401 for ; Wed, 13 Nov 2002 00:41:03 -0800 (PST) Received: from gw.uic.ru (gw.uic.ru [62.102.149.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0271D43E77 for ; Wed, 13 Nov 2002 00:41:01 -0800 (PST) (envelope-from vav@papillon.ru) Received: from papillon.ru (uucp@localhost) by gw.uic.ru (8.11.6/linuxconf) with UUCP id gAD8eLr11994; Wed, 13 Nov 2002 13:40:21 +0500 Received: from papillon.ru by papillon.ru with ESMTP id NAA12168; (8.7.5/vak/1.9) Wed, 13 Nov 2002 13:38:51 +0500 Message-ID: <3DD20F8A.E594AACE@papillon.ru> Date: Wed, 13 Nov 2002 13:38:34 +0500 From: Andrey Valik Organization: Papillon Systems Ltd. X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.18-6mdk i686) X-Accept-Language: ru, en MIME-Version: 1.0 To: Nate Lawson Cc: freebsd-scsi@freebsd.org Subject: Re: transmission speed References: Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit 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 Nate Lawson wrote: > > 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"? > It was before modification. I need emulate scanner AGFA, intialization of inq_data: softc->inq_data->device = T_SCANNER | (SID_QUAL_LU_CONNECTED << 5); softc->inq_data->version = 2; softc->inq_data->response_format = 2; /* SCSI2 Inquiry Format */ softc->inq_data->additional_length = 0x5B; strncpy(softc->inq_data->vendor, "AGFA ", SID_VENDOR_SIZE); strncpy(softc->inq_data->product, "DUOSCAN T1200 ", SID_PRODUCT_SIZE); strncpy(softc->inq_data->revision, "1.30 ", SID_REVISION_SIZE); softc->inq_data->flags &= ~(PI_SDTR_ABLE|PI_WIDE_16|PI_WIDE_32|PI_TAG_ABLE); softc->inq_data->flags |= (cpi->hba_inquiry & (PI_SDTR_ABLE|PI_WIDE_16|PI_WIDE_32|PI_TAG_ABLE)); The second PC is windows and linux - the same speed 20Mb/s. > > > 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. wide16 - PI_WIDE_16 sync - ???? (May be problem in this place ?) -- Andrey V. Valik Papillon Systems Mailto:vav@papillon.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message