From owner-freebsd-scsi Sat Jul 13 22:20:46 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA09448 for freebsd-scsi-outgoing; Sat, 13 Jul 1996 22:20:46 -0700 (PDT) Received: from minotaur.labyrinth.net.au (minotaur.labyrinth.net.au [203.9.148.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id WAA09146 for ; Sat, 13 Jul 1996 22:18:01 -0700 (PDT) Received: (from mail@localhost) by minotaur.labyrinth.net.au (8.7.2/8.7.2) id PAA17083 for ; Sun, 14 Jul 1996 15:17:33 +1000 (EST) Date: Sun, 14 Jul 1996 15:17:33 +1000 (EST) Message-Id: <199607140517.PAA17083@minotaur.labyrinth.net.au> X-Authentication-Warning: minotaur.labyrinth.net.au: mail set sender to using -f Received: from portal-as15.labyrinth.net.au(203.9.148.25) by minotaur.labyrinth.net.au via smap (V1.3) id sma017079; Sun Jul 14 15:17:28 1996 X-Sender: jbh@labyrinth.net.au (Unverified) X-Mailer: Windows Eudora Light Version 1.5.2 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: freebsd-scsi@freebsd.org From: John Hartley Subject: Re: tandberg scsi tape + FreeBSD 2.1/2.0.5 Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >Hmpf. I hoped this would not require a mode page setting yet. > >Anyone else out there having an idea? Julian? Peter? > >Well, you could give this a try: > >Index: sys/scsi/st.c >=================================================================== >RCS file: /home/ncvs/src/sys/scsi/st.c,v >retrieving revision 1.36.4.5 >diff -u -u -r1.36.4.5 st.c >--- st.c 1996/06/25 17:45:58 1.36.4.5 >+++ st.c 1996/07/13 08:33:34 >@@ -113,6 +113,15 @@ > {0, 0, QIC_120} /* minor 12,13,14,15 */ > } > }, >+ {"Tandberg tdc4100", "TANDBERG", " TDC 4100", "????", >+ ST_Q_NEEDS_PAGE_0|ST_Q_SNS_HLP, >+ { >+ {0, 0, 0}, /* minor 0,1,2,3 */ >+ {0, ST_Q_FORCE_VAR_MODE, QIC_525}, /* minor 4,5,6,7 */ >+ {0, 0, QIC_150}, /* minor 8,9,10,11 */ >+ {0, 0, QIC_120} /* minor 12,13,14,15 */ >+ } >+ }, > {"Rev 5 of the Archive 2525", "ARCHIVE ", "VIPER 2525 25462", "-005", > 0, > { > >This is really stepping in the dark, but i know that my TDC4222 >requires ST_Q_SNS_HLP, and i believe the NEEDS_PAGE_0 wouldn't hurt to >the least. > >-- >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. ;-) > > J"org I added the "rouge" code as suggested and .... sorry it didn't work but thanks again for the suggestions. Here are the logs from testing with the rouge code in, the same problem still seems to be occuring. >>> Boot with rouge code >>> Jul 14 14:48:27 qwiff /kernel: Jul 14 14:48:28 qwiff /kernel: (ahc0:2:0): "TANDBERG TDC 4100 J04:" type 1 removable SCSI 2 Jul 14 14:48:28 qwiff /kernel: st0(ahc0:2:0): Sequential-Access st0: Tandberg tdc4100 is a known rogue Jul 14 14:48:28 qwiff /kernel: density code 0x0, 512-byte blocks, write-enabled >>> mt fsr <<< Jul 14 14:48:58 qwiff /kernel: st0(ahc0:2:0): ILLEGAL REQUEST csi:0,8,0,0 asc:24,0 Invalid field in CDB field replaceable unit: 2 >>> mt rewind <<< Jul 14 14:49:38 qwiff /kernel: st0(ahc0:2:0): ILLEGAL REQUEST csi:0,8,0,0 asc:24,0 Invalid field in CDB field replaceable unit: 2 >>> tar vf <<< Jul 14 14:49:54 qwiff /kernel: st0(ahc0:2:0): ILLEGAL REQUEST csi:0,8,0,0 asc:24,0 Invalid field in CDB field replaceable unit: 2 Jul 14 14:49:54 qwiff /kernel: st0: oops not queued >>> Turned on DEBUG<< >>> tar vf >>> Jul 14 14:50:55 qwiff /kernel: st0(ahc0:2:0): stclose: Closing device Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): scsi_cmd Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): get_xs Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): returning Jul 14 14:51:15 qwiff /kernel: xs(0xf0859980): flg(0x60)sc_link(0xf0859780)retr(0x2)timo(0x186a0)cmd(0xf08599d8)len(0x6)dat a(0x0)len(0x0)res(0x0)err(0x0)bp(0x0)st0(ahc0:2:0): command: 0,0,0,0,0,0-[0 bytes] Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0a59000) Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:15 qwiff /kernel: : command: 0,0,0,0,0,0-[0 bytes] Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0a59000) Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): ahc_done Jul 14 14:51:15 qwiff /kernel: st0(ahc0:2:0): scsi_done Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): command: 0,0,0,0,0,0-[0 bytes] Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): back in cmd() Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): sc_err1,err = 0x0 Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): free_xs Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): calling private start() Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): ststart st0(ahc0:2:0): mounting Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): scsi_cmd Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): get_xs Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): returning Jul 14 14:51:16 qwiff /kernel: xs(0xf0b06500): flg(0x20)sc_link(0xf0859780)retr(0x4)timo(0x493e0)cmd(0xf0b06558)len(0x6)dat a(0x0)len(0x0)res(0x0)err(0x0)bp(0x0)st0(ahc0:2:0): command: 1b,0,0,0,1,0-[0 bytes] Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0b07000) Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:16 qwiff /kernel: st0(ahc0:2:0): ahc_done Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): scsi_done Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): command: 1b,0,0,0,1,0-[0 bytes] Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): back in cmd() Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): sc_err1,err = 0x0 Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): free_xs Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): calling private start() Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): ststart st0(ahc0:2:0): scsi_cmd Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): get_xs Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): returning Jul 14 14:51:17 qwiff /kernel: xs(0xf0b06500): flg(0x60)sc_link(0xf0859780)retr(0x2)timo(0x186a0)cmd(0xf0b06558)len(0x6)dat a(0x0)len(0x0)res(0x0)err(0x0)bp(0x0)st0(ahc0:2:0): command: 0,0,0,0,0,0-[0 bytes] Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0a59000) Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:17 qwiff /kernel: st0(ahc0:2:0): ahc_done Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): scsi_done Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): command: 0,0,0,0,0,0-[0 bytes] Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): back in cmd() Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): sc_err1,err = 0x0 Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): free_xs Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): calling private start() Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): ststart st0(ahc0:2:0): scsi_cmd Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): get_xs Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): returning Jul 14 14:51:18 qwiff /kernel: xs(0xf0b06500): flg(0x420)sc_link(0xf0859780)retr(0x4)timo(0x1388)cmd(0xf0b06558)len(0x6)dat a(0xf2772000)len(0x18)res(0x0)err(0x0)bp(0x0)st0(ahc0:2:0): command: 1a,0,0,0,18,0-[24 bytes] Jul 14 14:51:18 qwiff /kernel: ------------------------------ Jul 14 14:51:18 qwiff /kernel: 000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Jul 14 14:51:18 qwiff /kernel: 016: 00 00 00 00 00 00 00 00 Jul 14 14:51:18 qwiff /kernel: ------------------------------ Jul 14 14:51:18 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0a59000) Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): 24 @0xf2772000:- 0x4b000(0x18) Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): ahc_done Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): scsi_done Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): command: 1a,0,0,0,18,0-[24 bytes] Jul 14 14:51:19 qwiff /kernel: ------------------------------ Jul 14 14:51:19 qwiff /kernel: 000: 2f 25 10 08 15 00 00 00 00 00 02 00 90 0e 00 00 Jul 14 14:51:19 qwiff /kernel: 016: 14 14 00 00 e0 00 38 00 Jul 14 14:51:19 qwiff /kernel: ------------------------------ Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): back in cmd() Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): sc_err1,err = 0x0 Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): free_xs Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): calling private start() Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): ststart st0(ahc0:2:0): density code 0x15, 512-byte blocks, write-enabled, st0(ahc0:2:0): buffered Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): scsi_cmd Jul 14 14:51:19 qwiff /kernel: st0(ahc0:2:0): get_xs Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): returning Jul 14 14:51:20 qwiff /kernel: xs(0xf0b06500): flg(0x820)sc_link(0xf0859780)retr(0x4)timo(0x1388)cmd(0xf0b06558)len(0x6)dat a(0xf2772000)len(0x18)res(0x0)err(0x0)bp(0x0)st0(ahc0:2:0): command: 15,0,0,0,18,0-[24 bytes] Jul 14 14:51:20 qwiff /kernel: ------------------------------ Jul 14 14:51:20 qwiff /kernel: 000: 00 00 10 08 00 00 00 00 00 00 04 00 90 0e 00 00 Jul 14 14:51:20 qwiff /kernel: 016: 14 14 00 00 e0 00 38 00 Jul 14 14:51:20 qwiff /kernel: ------------------------------ Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): ahc_scsi_cmd Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): start scb(0xf0a59000) Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): 24 @0xf2772000:- 0x4b000(0x18) Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): cmd_sent Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): ahc_done Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): scsi_done Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): command: 15,0,0,0,18,0-[24 bytes] Jul 14 14:51:20 qwiff /kernel: ------------------------------ Jul 14 14:51:20 qwiff /kernel: 000: 00 00 10 08 00 00 00 00 00 00 04 00 90 0e 00 00 Jul 14 14:51:20 qwiff /kernel: 016: 14 14 00 00 e0 00 38 00 Jul 14 14:51:20 qwiff /kernel: ------------------------------ Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): back in cmd() Jul 14 14:51:20 qwiff /kernel: st0(ahc0:2:0): sc_err1,err = 0x1 Jul 14 14:51:21 qwiff /kernel: code70 valid0 seg0 key5 ili0 eom0 fmark0 Jul 14 14:51:21 qwiff /kernel: info: 0 0 0 0 followed by 10 extra bytes Jul 14 14:51:21 qwiff /kernel: extra: 0 8 0 0 24 0 2 0 0 0 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): calling private err_handler() Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): private err_handler() returned -1 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): ILLEGAL REQUEST csi:0,8,0,0 asc:24,0 Invalid field in CDB field replaceable unit: 2 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): scsi_interpret_sense (no bp) returned 22 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): free_xs Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): calling private start() Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): ststart st0(ahc0:2:0): Open complete Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): stopen: dev=0xe00 (unit 0) result 0 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): Jul 14 14:51:21 qwiff /kernel: ststrategy st0(ahc0:2:0): 10240 bytes @ blk0 Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): ststart st0: oops not queued Jul 14 14:51:21 qwiff /kernel: st0(ahc0:2:0): stclose: Closing device >>>> The end of command sequence <<<< Thanks again, I am going to get a copy of the SCSI specs so that I might be of more use in diagnosing the problem. Regards. John Hartley jbh@labyrinth.net.au Graphica Software Pty. Ltd.