From owner-freebsd-scsi Mon Feb 5 04:56:52 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA25012 for freebsd-scsi-outgoing; Mon, 5 Feb 1996 04:56:52 -0800 (PST) Received: from bunyip.cc.uq.oz.au (bunyip.cc.uq.oz.au [130.102.2.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA25006 for ; Mon, 5 Feb 1996 04:56:48 -0800 (PST) Received: from cc.uq.oz.au by bunyip.cc.uq.oz.au id <08126-0@bunyip.cc.uq.oz.au>; Mon, 5 Feb 1996 22:18:02 +1000 Received: from orion.devetir.qld.gov.au by pandora.devetir.qld.gov.au (8.6.10/DEVETIR-E0.3a) with ESMTP id WAA08895 for ; Mon, 5 Feb 1996 22:18:52 +1000 Received: from localhost by orion.devetir.qld.gov.au (8.6.10/DEVETIR-0.3) id WAA04227; Mon, 5 Feb 1996 22:12:42 +1000 Message-Id: <199602051212.WAA04227@orion.devetir.qld.gov.au> To: freebsd-scsi@freebsd.org cc: syssgm@devetir.qld.gov.au Subject: aha1542 MBO problem in 2.0.5 Date: Mon, 05 Feb 1996 22:12:41 +1000 From: Stephen McKay Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk Since I revamped my machine (16->24Mb ram, DX33->DX4/100, +CD-ROM), I have had various SCSI problems. I still run 2.0.5 (because I'm using the PC too much to upgrade yet), and use a BT545S SCSI card to run the disk, tape and CDROM. I can't access my Archive 2525 at all using the bt driver, or I get crashes and reboots (bounce buffer problem, maybe). So, I use the aha driver. Unfortunately, I get lots of messages when accessing the disk and the CDROM simultaneously, like: aha0: MBO 01 and not 00 (free) sd0(aha0:0:0): timed out The timeouts are not necessarily paired with complaints about MBO. Now, I have a wild theory about the MBO not free problem. :-) Outgoing mailboxes are paired up with ccb's pretty early on in the aha driver. Thereafter, ccb's are allocated, and mailboxes just come with them. The most recently freed ccb is the next to be allocated, so when the system is busy, it is highly likely that a ccb will be reused immediately. This implies that the outgoing mailbox will be quickly reused. The manual with my BT545S proudly proclaims its multi tasking nature, so perhaps if it gets really busy, it might postpone marking the mailbox as read, especially since mailboxes are supposed to be used in a round robin manner, and there are bound to be a few still free. So, the scenario I am postulating is: host - allocate and set up ccb host - mark mailbox as active bt545 - read mailbox bt545 - read ccb, do the work, mark ccb done bt545 - interrupt host bt545 - (become really busy and defer updating mailbox) host - reallocate same ccb host - complain about mailbox still marked busy host - set up ccb host - mark mailbox as active bt545 - (finish being busy) bt545 - mark mailbox as free host - timeout (because bt545 ignored the mailbox) To combat this, I've changed the ccb allocation policy to reuse the oldest rather than the newest free ccb, in the expectation that this would access mailboxes almost round robin. I applied the patch given below, and thrashed the disk, tape and cdrom simultaneously (doing tar's and wc of big files in a loop) without any failures or errors logged. I reverted to the previous kernel and MBO not free errors turned up almost immediately. Then I got a couple of "pid 301: sh: uid 0: exited on signal 11" type messages and hurredly terminated the experiment. I'm back on the patched kernel and abusing it as I type. So, it appears that treating one's outgoing mailboxes in the official round robin manner is not optional. I intend to add proper round robin code myself soon, but I'm realistic enough about my erratic spare time to invite others to beat me to it. Anyway, here's my patch against 2.0.5 (but -current doesn't LOOK much different): Patch relative to "aha1542.c,v 1.45 1995/05/30 08:01:05 rgrimes Exp" --- aha1542.c Tue May 30 18:01:05 1995 +++ aha1542.sgm.c Sun Feb 4 21:26:02 1996 @@ -302,6 +302,7 @@ long int kv_phys_xor; struct aha_mbx aha_mbx; /* all the mailboxes */ struct aha_ccb *aha_ccb_free; /* the next free ccb */ + struct aha_ccb *aha_ccb_tail; /* end of the free ccb list */ struct aha_ccb aha_ccb[AHA_MBX_SIZE]; /* all the CCBs */ int aha_int; /* irq level */ int aha_dma; /* DMA req channel */ @@ -782,14 +783,20 @@ if (!(flags & SCSI_NOMASK)) opri = splbio(); - ccb->next = aha->aha_ccb_free; - aha->aha_ccb_free = ccb; ccb->flags = CCB_FREE; + + ccb->next = NULL; + if (aha->aha_ccb_free == NULL) + aha->aha_ccb_free = ccb; + else + aha->aha_ccb_tail->next = ccb; + aha->aha_ccb_tail = ccb; + /* * If there were none, wake anybody waiting for * one to come free, starting with queued entries */ - if (!ccb->next) { + if (aha->aha_ccb_free == aha->aha_ccb_tail) { wakeup((caddr_t)&aha->aha_ccb_free); } if (!(flags & SCSI_NOMASK)) @@ -819,6 +826,8 @@ } if (rc) { aha->aha_ccb_free = aha->aha_ccb_free->next; + if (aha->aha_ccb_free == NULL) + aha->aha_ccb_tail = NULL; /* Unnecessary, but neat. */ rc->flags = CCB_ACTIVE; } if (!(flags & SCSI_NOMASK)) @@ -1214,6 +1223,7 @@ * into a free-list * this is a kludge but it works */ + aha->aha_ccb_tail = &aha->aha_ccb[0]; for (i = 0; i < AHA_MBX_SIZE; i++) { aha->aha_ccb[i].next = aha->aha_ccb_free; aha->aha_ccb_free = &aha->aha_ccb[i]; @@ -1354,9 +1364,13 @@ xs->error = XS_DRIVER_STUFFUP; return (TRY_AGAIN_LATER); } - if (ccb->mbx->cmd != AHA_MBO_FREE) + if (ccb->mbx->cmd != AHA_MBO_FREE) { printf("aha%d: MBO %02x and not %02x (free)\n", - unit, ccb->mbx->cmd, AHA_MBO_FREE); + unit, ccb->mbx->cmd, AHA_MBO_FREE); + aha_free_ccb(unit, ccb, flags); + xs->error = XS_DRIVER_STUFFUP; + return (TRY_AGAIN_LATER); + } /* * Put all the arguments for the xfer in the ccb Stephen McKay. From owner-freebsd-scsi Wed Feb 7 04:55:24 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA25996 for freebsd-scsi-outgoing; Wed, 7 Feb 1996 04:55:24 -0800 (PST) Received: from r2d2.fdn.org (r2d2.fdn.org [193.55.4.56]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id EAA25941 for ; Wed, 7 Feb 1996 04:52:26 -0800 (PST) Received: (from uucp@localhost) by r2d2.fdn.org (8.7.1/8.6.9) with UUCP id MAA03924; Wed, 7 Feb 1996 12:39:08 +0100 (MET) Received: (from caussep@localhost) by sphynx.fdn.fr (8.6.12/8.6.9) id KAA00231; Wed, 7 Feb 1996 10:49:26 +0100 Date: Wed, 7 Feb 1996 10:49:26 +0100 (MET) From: Philippe Causse To: Joerg Wunsch cc: bde@zeta.org.au, freebsd-scsi@freebsd.org, delaitt@cpc.wmin.ac.uk, jdp@polstra.com Subject: Re: Patches from 2.1-RELEASE In-Reply-To: <199602062236.XAA02458@uriah.heep.sax.de> Message-ID: X-Mailer: PINE-3.91/i386/FreeBSD MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk On Tue, 6 Feb 1996, J Wunsch wrote: > As Philippe Causse wrote: > > > > I found the SCSI-1 and SCSI-2 (text only) documentation on the net using > > Archie. To avoid flooding you mailbox, I'll just quote a part of it in > > this mail. If you want the full text, I can e-mail it to you as a MIME > > attachment. Please, don't hesitate to ask! (300K for SCSI-2, 84K for SCSI-1) > > Ugh. Can we please move this discussion into freebsd-scsi instead? Yep ! I changed the CC: to freebsd-scsi@freebsd.org for this mail. Sorry about that, but the discussion started about a couple of different unrelated patches. > > There is no use to quote several hundred lines from the SCSI spec into > the high-volume hackers list. In order to use the SCSI specs, one > needs a printed copy of larger portions anyway... Agreed! That's why I just quoted the bits relevant to SCSI-2 tape positionning. At the end of this mail I quoted the head of the SCSI-2 specs file, everything you'll need to know about "how to get the paper version" is here :-) > (Sorry for not being constructive here, i simply didn't have the time > yet to look after all this stuff, and it's unlikely that i will have > it within the next couple of weeks. Alas.) As long as it is not deemed to go to /dev/null, fair enough! > > -- > cheers, J"org > > joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE > Never trust an operating system you don't have sources for. ;-) > ------------------[ HEADER OF THE SCSI-2 SPECS DOCUMENT]-------------------- WORKING X3T9.2 DRAFT Project 375D Revision 10L 7-SEP-93 NOTE: This file is provided to facilitate review and comments on the draft SCSI-2 standard. It is NOT intended as a substitute for obtaining a paper copy of this document. The figures and formatting information are omitted. Please contact Global Engineering Documents at (800) 854-7179 or (303) 792-2181 to obtain a paper copy. Information technology - Small Computer System Interface - 2 Secretariat: Computer & Business Equipment Manufacturers Association This is a draft proposed American National Standard of Accredited Standards Committee X3. As such this is not a completed standard. The X3T9 Technical Committee may modify this document as a result of comments received during the public review process and the approval of this document as a standard. Use of the information contained herein is at your own risk. Permission is granted to members of X3 and ISO, their technical committees, and their associated task groups to reproduce this document for the purposes of X3 and ISO standardization activities without further permission, provided this notice is included. All other rights are reserved. Any commercial or for-profit use is strictly prohibited. ASC X3T9.2 Technical Editor: Lawrence J. Lamers Maxtor Corporation MS A697 150 River Oaks Parkway San Jose, CA 95134-1983 USA Telephone: 408-432-3889 Facsimile: 408-432-3833 Email: larry_lamers@maxtor.com Reference number ISO/IEC 9316-1 : 199x ANSI X3.131 - 199x Printed November, 7, 1993 3:39pm POINTS OF CONTACT: X3T9.2 Chair X3T9.2 Vice-Chair John B. Lohmeyer I. Dal Allan NCR Corporation ENDL 1635 Aeroplaza Drive 14426 Black Walnut Court Colo Spgs, CO 80916 Saratoga, CA 95070 Tel: (719) 573-3362 Tel: (408) 867-6630 Fax: (719) 597-8225 Fax: (408) 867-2115 Email: john.lohmeyer@ftcollinsco.ncr.com Email: 2501752@mcimail.com X3 Secretariat Lynn Barra Administrator Standards Processing X3 Secretariat Telephone: 202-626-5738 1250 Eye Street, NW Suite 200 Facsimile: 202-638-4922 Washington, DC 20005 SCSI Reflector Internet address for subscription to the SCSI reflector: scsiadm@wichitaks.ncr.com Internet address for distribution via SCSI reflector: scsi@wichitaks.ncr.com SCSI Bulletin Board 719-574-0424 Document Distribution Global Engineering Telephone: 303-792-2181 or 15 Inverness Way East 800-854-7179 Englewood, CO 80112-5704 Facsimile: 303-792-2192 ---------------------------------------------------------------------- Cheers, Philippe. ---------------------------------------------------------------------- FreeBSD, NetBSD, Linux: Il y a moins bien, mais c'est plus cher... You can get worse, but it's more expensive... ---------------------------------------------------------------------- From owner-freebsd-scsi Wed Feb 7 14:55:54 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA04672 for freebsd-scsi-outgoing; Wed, 7 Feb 1996 14:55:54 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA04666 for ; Wed, 7 Feb 1996 14:55:38 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA18050; Wed, 7 Feb 1996 23:52:02 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA08522; Wed, 7 Feb 1996 23:52:02 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.3/8.6.9) id XAA06879; Wed, 7 Feb 1996 23:34:20 +0100 (MET) From: J Wunsch Message-Id: <199602072234.XAA06879@uriah.heep.sax.de> Subject: Re: Patches from 2.1-RELEASE To: caussep@sphynx.fdn.fr (Philippe Causse) Date: Wed, 7 Feb 1996 23:34:20 +0100 (MET) Cc: bde@zeta.org.au, freebsd-scsi@freebsd.org, delaitt@cpc.wmin.ac.uk, jdp@polstra.com Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Philippe Causse" at Feb 7, 96 10:49:26 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk As Philippe Causse wrote: > > Agreed! That's why I just quoted the bits relevant to SCSI-2 tape > positionning. At the end of this mail I quoted the head of the SCSI-2 > specs file, everything you'll need to know about "how to get the paper > version" is here :-) I think many people listening on this list do already have it. :) I've finally managed to print larger portions when i worked on the worm driver... > > (Sorry for not being constructive here, i simply didn't have the time > > yet to look after all this stuff, and it's unlikely that i will have > > it within the next couple of weeks. Alas.) > > As long as it is not deemed to go to /dev/null, fair enough! Yup, it's still sitting there, ``marked for later processing''. Sorry for the rush, i'm going to leave for some days of vacation over the weekend, and tomorrow will already be overloaded with paywork. So i suspect i won't get the time for a more detailed review until end of next week. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Wed Feb 7 20:35:49 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA08820 for freebsd-scsi-outgoing; Wed, 7 Feb 1996 20:35:49 -0800 (PST) Received: from wa3ymh.transsys.com (#6@wa3ymh.TransSys.COM [144.202.42.42]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id UAA08815 for ; Wed, 7 Feb 1996 20:35:46 -0800 (PST) Received: from wa3ymh.transsys.com (#6@localhost.TransSys.COM [127.0.0.1]) by wa3ymh.transsys.com (8.7.3/8.7.3) with ESMTP id XAA02645 for ; Wed, 7 Feb 1996 23:35:40 -0500 (EST) Message-Id: <199602080435.XAA02645@wa3ymh.transsys.com> To: freebsd-scsi@FreeBSD.ORG From: "Louis A. Mamakos" Subject: any know problems/issues with Tyan "Yorktown" NCR 53C825 board? Date: Wed, 07 Feb 1996 23:35:38 -0500 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk I'm building a system based on a Tyan Titan III motherboard, and and leaning toward also using the Tyan NCR SCSI interface. Are there any known problems with this particular board? It sports the NCR 53C825 controller. I'm planning to put a DAT drive, as yet unselected 2GB SCSI disk, and likely a 6X SCSI CDROM drive of some sort on it. If anyone else is interested in more info on this, you can start at http://www.tyan.com/s1365.htm and ponder it, too. thanks, Louis Mamakos From owner-freebsd-scsi Thu Feb 8 17:08:15 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA16689 for freebsd-scsi-outgoing; Thu, 8 Feb 1996 17:08:15 -0800 (PST) Received: from jjarray.umd.edu (jjarray.umd.edu [129.2.40.99]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA16683 for ; Thu, 8 Feb 1996 17:08:13 -0800 (PST) Received: (from fcawth@localhost) by jjarray.umd.edu (8.7.3/8.6.12) id UAA00275 for freebsd-scsi@freebsd.org; Thu, 8 Feb 1996 20:08:06 -0500 (EST) From: Fred Cawthorne Message-Id: <199602090108.UAA00275@jjarray.umd.edu> Subject: Problems with IBM Exabyte 8200 To: freebsd-scsi@freebsd.org Date: Thu, 8 Feb 1996 20:08:06 -0500 (EST) X-Mailer: ELM [version 2.4 PL24 ME8a] Content-Type: text Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk I was trying a couple of IBM 8mm tape drives, which are made by exabyte. I can rewind and get the tape status fine, but when I try to read or write, I get an: oops: not queued. or something like that. I have tried this on 2 different computers, with both an AHA1542 and NCR controller. Any ideas? Should I just give up on these things? Thanks Fred. From owner-freebsd-scsi Thu Feb 8 18:47:31 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA21530 for freebsd-scsi-outgoing; Thu, 8 Feb 1996 18:47:31 -0800 (PST) Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA21525 for ; Thu, 8 Feb 1996 18:47:28 -0800 (PST) Received: (from julian@localhost) by ref.tfs.com (8.6.12/8.6.12) id SAA02565; Thu, 8 Feb 1996 18:47:19 -0800 From: Julian Elischer Message-Id: <199602090247.SAA02565@ref.tfs.com> Subject: Re: Problems with IBM Exabyte 8200 To: fcawth@jjarray.umd.edu (Fred Cawthorne) Date: Thu, 8 Feb 1996 18:47:19 -0800 (PST) Cc: freebsd-scsi@freebsd.org In-Reply-To: <199602090108.UAA00275@jjarray.umd.edu> from "Fred Cawthorne" at Feb 8, 96 08:08:06 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk compile the option SCSIDEBUG into the kernel then do: scsi -d 3 -f /dev/nrst0 then do your operation then type dmesg to see the results and send them here. also try -d 12 as well (-d 15 might be too much info) > > I was trying a couple of IBM 8mm tape drives, which are made by > exabyte. I can rewind and get the tape status fine, but when I try > to read or write, I get an: > oops: not queued. or something like that. > I have tried this on 2 different computers, with both an AHA1542 and > NCR controller. > Any ideas? Should I just give up on these things? > > Thanks > Fred. > > From owner-freebsd-scsi Fri Feb 9 07:25:17 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA15780 for freebsd-scsi-outgoing; Fri, 9 Feb 1996 07:25:17 -0800 (PST) Received: (from jmb@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA15772 Fri, 9 Feb 1996 07:25:15 -0800 (PST) From: "Jonathan M. Bresler" Message-Id: <199602091525.HAA15772@freefall.freebsd.org> Subject: QIC-1350, Archive Anaconda To: scsi, hackers Date: Fri, 9 Feb 1996 07:25:14 -0800 (PST) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk my new archive anaconda 1.35 GB QIC drive arrived yesterday. the OS does not recognize its denisty correctly. OR the drive does not advertize its density. time to go into the scsi debug business ;) i will post dmesg output tonight (GMT-5). how do i get the density, scsi version, data from the drive using scsi(8). i have the scsi-ii spec available from the net and the QIC-121 _implementation_of_scsi-2)_for_QIC-compatible_sequential_storage_devices_ spec as well. please reference the spec in the answer. jmb -- Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG FreeBSD--4.4BSD Unix for PC clones, source included. http://www.freebsd.org/ From owner-freebsd-scsi Fri Feb 9 07:29:28 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA16105 for freebsd-scsi-outgoing; Fri, 9 Feb 1996 07:29:28 -0800 (PST) Received: (from jmb@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA16091 Fri, 9 Feb 1996 07:29:24 -0800 (PST) From: "Jonathan M. Bresler" Message-Id: <199602091529.HAA16091@freefall.freebsd.org> Subject: testing tape capacity To: scsi Date: Fri, 9 Feb 1996 07:29:24 -0800 (PST) Cc: scsi X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk i received from someone on the list (embarassed i dont remember whom) a program to test the capacity of tape drives. the program was called testblock or count block or ... i have lost the code (even more embarassed--hang head in shame) please send me another copy. jmb -- Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG FreeBSD--4.4BSD Unix for PC clones, source included. http://www.freebsd.org/ From owner-freebsd-scsi Fri Feb 9 13:50:23 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA14707 for freebsd-scsi-outgoing; Fri, 9 Feb 1996 13:50:23 -0800 (PST) Received: (from jmb@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA14697 Fri, 9 Feb 1996 13:50:20 -0800 (PST) From: "Jonathan M. Bresler" Message-Id: <199602092150.NAA14697@freefall.freebsd.org> Subject: Re: QIC-1350, Archive Anaconda To: tony@rtd.com (Tony Jones) Date: Fri, 9 Feb 1996 13:50:20 -0800 (PST) Cc: scsi In-Reply-To: <199602091916.MAA28381@seagull.rtd.com> from "Tony Jones" at Feb 9, 96 12:16:29 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk Tony Jones said: > > : my new archive anaconda 1.35 GB QIC drive arrived yesterday. > : the OS does not recognize its denisty correctly. OR the drive does not > : advertize its density. time to go into the scsi debug business ;) > > Is this the $195 CSC drive ? yes it is! > Any chance of you keeping -hackers upto date on your progress with this > drive and FreeBSD ? Or send me a piece of e-mail. > i have every intenttion of keeping -scsi up to date, perhaps -hardware as well. hackers would get summaries rather the nitty-grity of all the gyrations that may be needed. > Also, can the tape drive read and write Industry Standard QIC 150 ? dont know yet, i will let you know later ;) From owner-freebsd-scsi Sat Feb 10 20:46:19 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA12341 for freebsd-scsi-outgoing; Sat, 10 Feb 1996 20:46:19 -0800 (PST) Received: (from jmb@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id UAA12334 Sat, 10 Feb 1996 20:46:18 -0800 (PST) From: "Jonathan M. Bresler" Message-Id: <199602110446.UAA12334@freefall.freebsd.org> Subject: Archive Anaconda SCSI-2 is really SCSI-1 To: scsi Date: Sat, 10 Feb 1996 20:46:17 -0800 (PST) Cc: hardware X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk the archive anaconda 1.35GB QIC tape drive may be a SCSI-1 device not a SCSI-2 as advertised. INQUIRY command output delares the unit to be SCSI-1 Aspen:[143] scsi -f /dev/st0ctl.0 -c "12 0 0 0 64 0" -i 64 - SCIOCCOMMAND ioctl: Command accepted. host adapter status 110 Command out (6 of 6): 12 00 00 00 64 00 Data in (64 of 64): 01 80 01 00 31 00 00 00 41 52 43 48 49 56 45 20 # ....1...ARCHIVE 41 4e 43 44 41 20 32 37 35 30 20 32 38 30 37 37 # ANCDA 2750 28077 2d 30 30 33 20 20 20 20 36 2e 30 30 20 20 00 00 # -003 6.00 .. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 # ................ No sense sent. Furthermore the unit rejects MODE SENSE commands with page control = 01 and page code = 0x3f Aspen:[174] scsi -f /dev/st0ctl.0 -c "0x1A 0 0x3f 0 0xff 0" -i 255 - SCIOCCOMMAND ioctl: Command accepted. return status 3 (Sense Returned)Command out (6 of 6): 1a 00 3f 00 ff 00 Data in (0 of 255): Error code is "current errors" Segment number is 00 Sense key is "Illegal request" The Information field is not valid but contains 00000000 (0). The Command Specific Information field is 00000000 (0). Additional sense code: 00 Additional sense code qualifier: 00 sense (32 of 48): 70 00 05 00 00 00 00 06 00 00 00 00 00 00 00 00 00 00 60 1e cb 08 40 34 62 00 1c 11 00 00 00 00 The QIC implementation of the SCSI-2 spec references QIC-95-101 for tape medium type and density codes. anyone have a copy? i will call QIC on monday to get one. so far i have: tape in drive medium code density code ---------------------------------------------------------------- QIC-1350 (DC-9135) 0x23 0x00 (DC-6250) 0x06 0x10 QIC-150 (QD-6150) 0x06 0x10 the unit can read QD-6150 tapes. FreeBSD does recognize the difference between QIC-150 and QIC-1350 tapes as reflected in the output 'mt -f /dev/rst0 status' ;) -- Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG FreeBSD--4.4BSD Unix for PC clones, source included. http://www.freebsd.org/