From owner-freebsd-scsi Mon Sep 4 14:56:15 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id B6F7737B422 for ; Mon, 4 Sep 2000 14:56:12 -0700 (PDT) Received: from zeppo.feral.com (IDENT:mjacob@zeppo [192.67.166.71]) by feral.com (8.9.3/8.9.3) with ESMTP id OAA15854; Mon, 4 Sep 2000 14:55:59 -0700 Date: Mon, 4 Sep 2000 14:52:33 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: Eric Christeson Cc: "'freebsd-scsi@freebsd.org'" Subject: Re: Problems with tape drive In-Reply-To: <01C01658.1F36EBC0.echriste@ssesco.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I've been having a problem with my tape drive and I have a solution, I just > don't know if it's the correct solution. I'm running 4.1 stable and have a > drive that gets recognized as a Tandberg TDC 3800 (see dmesg output that > follows) with DC6525 tapes. I have scsi and sa in the kernel and > everything set up correctly, but whenever I try to do anything with the > tape drive I get an error. > > $ sudo mt status > mt: /dev/nsa0: Invalid argument > (sa0:sym0:0:5:0): unable to set fixed blocksize to 1024 Hmm? > > I set some debug flags and did some digging through cam/scsi/scsi_sa.c and > found that the quirk entry for the Tandberg 3800 doesn't set SA_QUIRK_FIXED > or SA_QUIRK_VARIABLE so on line 1978 last_media_blksize gets set to 1024 > which in turn causes it to try to set the device blocksize to 1024 around > line 2041. I don't know if my drive or media is funky or what, but it > wants the blocksize to be 512 and only 512 (or variable). I've gotten > around this by setting either SA_QUIRK_FIXED or SA_QUIRK_VARIABLE in the > Tandberg 3800 quirk entry. Okay. Definite bug. Thanks. Good sleuthing. I believe that it should be SA_QUIRK_FIXED. I keep gettting beat up on whenever I try to make all QIC drives FIXED. DC6525 has to be 512 bytes. That's a fixed thing (cough). I'll clean it up and do the checkins. Thansk again. > > > dmesg output: > > Copyright (c) 1992-2000 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 4.1-STABLE #0: Thu Aug 31 15:06:00 CDT 2000 > root@finch.koehntop.net:/usr/obj/usr/src/sys/FINCH > Timecounter "i8254" frequency 1193182 Hz > CPU: Pentium Pro (179.63-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x619 Stepping = 9 > > snip... > > sa0 at sym0 bus 0 target 5 lun 0 > sa0: Removable Sequential Access SCSI-2 device > sa0: 3.300MB/s transfers > > thanks > eric > > Eric J Christeson > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-scsi" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message