home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!timbuk.cray.com!shamash!uc.msc.edu!mips!mips!kpc!uunet!kpc!mjacob
- From: mjacob@kpc.COM (Matt Jacob)
- Newsgroups: comp.sys.sun.hardware
- Subject: Re: Any way to do a SCSI reset?
- Message-ID: <1992Aug19.225425.15255@kpc.com>
- Date: 19 Aug 92 22:54:25 GMT
- Sender: usenet@kpc.com
- Reply-To: mjacob@kpc.COM (Matt Jacob)
- Organization: Kubota Pacific Computer, Inc.
- Lines: 43
-
-
- For SCSA based sun machines (sun4c, sun4m, {sun3,sun4 if you have the
- consult SCSA tape}, the SCSA functions scsi_abort and scsi_reset
- are probably what you want. The usage of these functions is documented
- in the SCSA guide (part number mumble mumble).
-
- To reset a specific target, you have to either have or cons
- up the appropriate SCSI address structure. Ask me for details
- if you *really* want to know.
-
- But your question is "How do I reset a specific SCSI target". This
- could mean that you don't want to know how to do it on a Sun, but
- just in general. Hard to say.
-
- The basic gist of how it operates is that you select the target
- long enough to send it an IDENTIFY message, and then instead of
- deasserting ATN* after sending the IDENTIFY message, you leave ATN*
- asserted (very host adapter specific). The target may choose to
- then accept another message, which in this case can be BUS DEVICE
- RESET or ABORT OPERATION (as you desire). Note that a target
- may either choose to not go to MESSAGE OUT phase (which is legal),
- or may do something stupid like drop BSY* (drop the bus- the Emulex
- MT-02 does this if you leave ATN* asserted after sending the
- initial IDENTIFY message. You're at the mercy of passive agressive
- firmware writers here). Again, very host adapter dependent here.
- You can imagine (my, other host adapter writer's) consternation
- when you have to deal with a target that ignores your desire
- to send it an important message. Suppose the target accepts the
- IDENTIFY message and then goes into COMMAND phase? What command
- were you going to send it? I mean, you were just trying to select
- the device long enough to abort a current command or reset the
- device. Sigh...
-
- You can always* reset a specific target by resetting the entire bus.
- It's too bad that the shotgun pellets from doing this killed off
- all other non-specific targets. Tsk.
-
- -matt
-
- *Well, if you have targets that implement the "soft reset" option to
- SCSI, it means that they can ignore the RST* line. I dunno if anyone
- actually has such a critter (wait, i think there is an IBM 3480
- cartridge that does this...)
-