home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / hardware / 3961 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.4 KB

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