*BSD News Article 35180


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:12767 comp.periphs.scsi:24091
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!news.mtu.edu!sol.ctr.columbia.edu!howland.reston.ans.net!wupost!udel!MathWorks.Com!news2.near.net!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!andrew.cmu.edu!aw2t+
From: "Alex R.N. Wetmore" <aw2t+@andrew.cmu.edu>
Newsgroups: comp.os.386bsd.questions,comp.periphs.scsi
Subject: Trouble with Tandberg 3660 and aha1542c and Micropolis 4110
Date: Tue, 30 Aug 1994 08:36:02 -0400
Organization: Senior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Lines: 112
Message-ID: <0iMmSmG00iUv81=1kW@andrew.cmu.edu>
NNTP-Posting-Host: po2.andrew.cmu.edu

This is all under FreeBSD 1.1.5.1, but I think it might be a generic
SCSI problem (although I have no other OS's to try the setup under).

I'm trying to get the Tandberg 3660 (a 250meg QIC SCSI1 tape device) and
the Micropolis 4110 (a 1gig SCSI2 hard disk) to talk to each other via
the Adaptec 1542C.  The setup I have had the 1542c at one end of the
chain, the 4110 in the middle of the chain, and the Tandberg at the end.
 The 1542 has its termination enabled, and so does the Tandberg (I
beleive.  I have no docs on the drive, but it seems to work in the
current setup.  There are no visible terminators on the drive either).

What happens is that if I do a backup from the 4110 to the 3660 the scsi
bus hangs.  FreeBSD spits out the messages:

Aug 29 16:32:33 phred /386bsd: sd0(aha0:0:0): timed out 
Aug 29 16:32:37 phred /386bsd: sd0(aha0:0:0): timed out 
Aug 29 16:32:37 phred /386bsd: adapter not taking commands.. frozen?!
Aug 29 16:32:38 phred /386bsd: Debugger("aha1542") called. AGAIN
Aug 29 16:32:38 phred /386bsd: aha0: MBO not free
Aug 29 16:32:43 phred /386bsd: sd0(aha0:0:0): timed out 
Aug 29 16:32:43 phred /386bsd: adapter not taking commands.. frozen?!
Aug 29 16:32:43 phred /386bsd: Debugger("aha1542") called.
Aug 29 16:32:47 phred /386bsd: sd0(aha0:0:0): timed out 
Aug 29 16:32:47 phred /386bsd: adapter not taking commands.. frozen?!
Aug 29 16:32:47 phred /386bsd: Debugger("aha1542") called. AGAIN
Aug 29 16:32:47 phred /386bsd: aha0: MBO not free

until I reset.  The card does really seem to be frozen, it takes a power
cycle to get it to behave normally again.

Here are the bootup messages from FreeBSD (so you can see how it finds
the scsi configuration):
Aug 29 10:24:57 phred /386bsd: aha0: 1542C/CF detected, unlocking mailbox
Aug 29 10:24:57 phred /386bsd: aha0: reading board settings, dma=5
int=11  (bus 
speed defaulted)
Aug 29 10:24:57 phred /386bsd: aha0 at 0x330-0x333 irq 11 drq 5 on isa
Aug 29 10:24:57 phred /386bsd: aha0 targ 0 lun 0: type 0(direct) fixed SCSI2
Aug 29 10:24:57 phred /386bsd: aha0 targ 0 lun 0: <MICROP 
4110-09NB_Nov18FTN0F>
Aug 29 10:24:57 phred /386bsd: sd0: 1002MB (2053880 total sec), 2428
cyl, 9 head
, 93 sec, bytes/sec 512
Aug 29 10:24:57 phred /386bsd: aha0 targ 2 lun 0: type 1(sequential)
removable S
CSI1
Aug 29 10:24:57 phred /386bsd: aha0 targ 2 lun 0: <TANDBERG TDC 3600    
  -06:>
Aug 29 10:24:58 phred /386bsd: st0: Tandberg tdc3600 is a known rogue
Aug 29 10:24:58 phred /386bsd: st0: density code 0x10, 512-byte blocks,
write-en
abled

I have tried disabling the options in FreeBSD that mark the Tandberg as
a known rogue, with no luck.  I also know that the drive works, because
I can backup off of my IDE drive fine (without the 4110 in place, I
haven't tried it with it there).  Also, usually the bus doesn't hang
until the tape drive does at least one overrun.

The adaptec is configured in its default state (ie, hit f6 in the config
utility).  I'm not sure what the rom version of the Tandberg is, but I
have its mode select set to:
000: 17 00 10 08 10 00 00 00 00 00 02 00 00 02 02 40 ...............@
016: 00 00 08 08 00 01 01 96                         ........        

Should any of these parameters be changed?  I found a rough document
specifying them, which says that they are:

Byte    | bit   7       6       5       4       3       2       1       0
--------+-------------------------------------------------------------------
00      |                               00
01      |                               00
02      |               00          |   BM   |             00
03      |                       Block Descriptor Length (=08)

Block Descriptor:

Byte    | bit   7       6       5       4       3       2       1       0
--------+-------------------------------------------------------------------
00      |                         Density Code
01      |                               00
02      |                               00
03      |                               00
04      |                               00
05      |                               00
06      |                       Block Size MSB (=02)
07      |                       Block Size LSB (=00)

Vendor Unique Parameters:

Byte    | bit   7       6       5       4       3       2       1       0
--------+-------------------------------------------------------------------
00      |                         Page Code (=00)
01      |                         Write Threshold
02      |                         Read Threshold
03      |                           Buffer Size
04      |                    Forced Streaming Count (MSB)
05      |                    Forced Streaming Count (LSB)
06      |                          Bus Threshold
07      |                         Copy Threshold
08      |                      Normal Sense Threshold
09      |                       Copy Sense Allocation
10      |                          Load Function
11      |                 Power-Up Auto Load/Retension Delay

All I've changed so far was the load function (it wasn't retensioning on
tape insertion, and I wanted it to).  Does anyone know where I could get
better documentation for the Tandberg or have a phone number to reach
the company at?

thanks,
alex