Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* SCSI Device Driver
@ 1998-11-05  5:00 rouse
  1998-11-05  5:00 ` Tim Shoppa
  1998-11-06  5:00 ` John Wilson
  0 siblings, 2 replies; 5+ messages in thread
From: rouse @ 1998-11-05  5:00 UTC (permalink / raw)


I have a MSCP driver that talks to a SCSI SQ739 Dilog controller that has a
Zip unit attached. I'm trying to fix a bug in the driver where by it will
alert the user if some tries to read/write to Zip unit if there is no disk in
the drive. I've added a function that will get the unit status of the zip
drive. However, every time I post the "get unit status" to the controller, it
hang the machine and I have to reboot to get control again. This only occurs
is there is no disk in the drive. If there is a disk in the drive, the "get
unit status" command works fine and does not hang the machine. Does anyone
have any ideas what I maybe doing wrong here??? I've tried the "avail
command" but it does not give me the correct status if there is no disk in
the drive....

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SCSI Device Driver
  1998-11-05  5:00 SCSI Device Driver rouse
@ 1998-11-05  5:00 ` Tim Shoppa
  1998-11-05  5:00   ` Jerome Fine
  1998-11-06  5:00 ` John Wilson
  1 sibling, 1 reply; 5+ messages in thread
From: Tim Shoppa @ 1998-11-05  5:00 UTC (permalink / raw)


rouse@my-dejanews.com wrote:
> 
> I have a MSCP driver that talks to a SCSI SQ739 Dilog controller that has a
> Zip unit attached. I'm trying to fix a bug in the driver where by it will
> alert the user if some tries to read/write to Zip unit if there is no disk in
> the drive. I've added a function that will get the unit status of the zip
> drive. However, every time I post the "get unit status" to the controller, it
> hang the machine and I have to reboot to get control again. This only occurs
> is there is no disk in the drive. If there is a disk in the drive, the "get
> unit status" command works fine and does not hang the machine. Does anyone
> have any ideas what I maybe doing wrong here???

I don't think you're doing anything wrong; the problem is that
the firmware on your SQ739 doesn't know how to deal with
your particular removable-media drive.  Contact Dilog and
see if they have a firmware upgrade, or dump the SQ739 and
get a Q-bus host adapter that does deal with Zip drives.  I
know for a fact that CMD and Andromeda controllers do fine
with Zip drives with their latest firmware revisions.

--
 Tim Shoppa                        Email: shoppa@trailing-edge.com
 Trailing Edge Technology          Voice: 301-767-5917
 7328 Bradley Blvd                 Fax:   301-767-5927
 Bethesda, MD, USA 20817



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SCSI Device Driver
  1998-11-05  5:00 ` Tim Shoppa
@ 1998-11-05  5:00   ` Jerome Fine
  1998-11-06  5:00     ` rouse
  0 siblings, 1 reply; 5+ messages in thread
From: Jerome Fine @ 1998-11-05  5:00 UTC (permalink / raw)
  To: rouse

>Tim Shoppa wrote:

> rouse@my-dejanews.com wrote:
> >
> > I have a MSCP driver that talks to a SCSI SQ739 Dilog controller that has a
> > Zip unit attached. I'm trying to fix a bug in the driver where by it will
> > alert the user if some tries to read/write to Zip unit if there is no disk in
> > the drive. I've added a function that will get the unit status of the zip
> > drive. However, every time I post the "get unit status" to the controller, it
> > hang the machine and I have to reboot to get control again. This only occurs
> > is there is no disk in the drive. If there is a disk in the drive, the "get
> > unit status" command works fine and does not hang the machine. Does anyone
> > have any ideas what I maybe doing wrong here???
>
> I don't think you're doing anything wrong; the problem is that
> the firmware on your SQ739 doesn't know how to deal with
> your particular removable-media drive.  Contact Dilog and
> see if they have a firmware upgrade, or dump the SQ739 and
> get a Q-bus host adapter that does deal with Zip drives.  I
> know for a fact that CMD and Andromeda controllers do fine
> with Zip drives with their latest firmware revisions.
>
> --
>  Tim Shoppa                        Email: shoppa@trailing-edge.com
>  Trailing Edge Technology          Voice: 301-767-5917
>  7328 Bradley Blvd                 Fax:   301-767-5927
>  Bethesda, MD, USA 20817

Jerome Fine replies:

I have also have some experience with Zip drives using MSCP host
adapters.  In addition, I also am using a customers system which
has a 3 1/2 " floppy (RX23 emulation) connected to a CMD host
adapter.  When the floppy is not in the drive, the system does
hang waiting for the floppy to be inserted;  after the floppy is
inserted, the system does continue properly.

I don't have the system with the Zip drive running right now, so
I can't really remember what happens if the CMD host adapter
is able to recognize what to do if the Zip cartridge is not in the
drive.  But from memory, I seem to remember having the
same hang-up as the Dialog host adapter.  On the other hand,
another customer who originally installed the CMD host adapters
in his systems has switched to Emulex UC07 host adapters which
seem to poll the ZIP drive as to whether or not the cartridge is
present.  When I talked to CMD about this problem, they answered
that the technology on the PDP-11 was old and that there were
no plans to change the firmware.  Note that on the VAX, a VMS
removable media must be MOUNTED which often locks (if
possible) the media in the drive.  This was the case with the
Sony optical platters.  But again, under RT-11 or TSX-PLUS,
there does not seem to be the proper co-ordination and hand
shaking between the firmware on the host adapter and the
device driver.  If the Sony optical platter was not present,
the system would hang.

Incidentally, which version of RT-11 or TSX-PLUS are
you using?  And do you want to boot from a non-zero
partition of the Zip cartridge (after the initial hardware
boot of course).

I assume from Tim's response that you are running RT-11/
TSX-PLUS on your PDP-11.  If you are not (e.g. RSX-11),
possibly the same situation applies.

Tim, if I have indeed given the wrong information and the
CQD 220A/TM does give a  .READx  error when the
Zip cartridge is not present, please let me know so I
can verify this aspect.

Sincerely yours,

Jerome Fine
Year 2000 Solutions for RT-11 Operating Systems and Applications
(Sources not always required)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SCSI Device Driver
  1998-11-05  5:00   ` Jerome Fine
@ 1998-11-06  5:00     ` rouse
  0 siblings, 0 replies; 5+ messages in thread
From: rouse @ 1998-11-06  5:00 UTC (permalink / raw)


-
> >  Tim Shoppa                        Email: shoppa@trailing-edge.com
> >  Trailing Edge Technology          Voice: 301-767-5917
> >  7328 Bradley Blvd                 Fax:   301-767-5927
> >  Bethesda, MD, USA 20817
>
> Jerome Fine replies:
>
> I have also have some experience with Zip drives using MSCP host
> adapters.  In addition, I also am using a customers system which
> has a 3 1/2 " floppy (RX23 emulation) connected to a CMD host
> adapter.  When the floppy is not in the drive, the system does
> hang waiting for the floppy to be inserted;  after the floppy is
> inserted, the system does continue properly.
>
> I don't have the system with the Zip drive running right now, so
> I can't really remember what happens if the CMD host adapter
> is able to recognize what to do if the Zip cartridge is not in the
> drive.  But from memory, I seem to remember having the
> same hang-up as the Dialog host adapter.  On the other hand,
> another customer who originally installed the CMD host adapters
> in his systems has switched to Emulex UC07 host adapters which
> seem to poll the ZIP drive as to whether or not the cartridge is
> present.  When I talked to CMD about this problem, they answered
> that the technology on the PDP-11 was old and that there were
> no plans to change the firmware.  Note that on the VAX, a VMS
> removable media must be MOUNTED which often locks (if
> possible) the media in the drive.  This was the case with the
> Sony optical platters.  But again, under RT-11 or TSX-PLUS,
> there does not seem to be the proper co-ordination and hand
> shaking between the firmware on the host adapter and the
> device driver.  If the Sony optical platter was not present,
> the system would hang.
>
> Incidentally, which version of RT-11 or TSX-PLUS are
> you using?  And do you want to boot from a non-zero
> partition of the Zip cartridge (after the initial hardware
> boot of course).
>
> I assume from Tim's response that you are running RT-11/
> TSX-PLUS on your PDP-11.  If you are not (e.g. RSX-11),
> possibly the same situation applies.
>
> Tim, if I have indeed given the wrong information and the
> CQD 220A/TM does give a  .READx  error when the
> Zip cartridge is not present, please let me know so I
> can verify this aspect.
>
> Sincerely yours,
>
> Jerome Fine
> Year 2000 Solutions for RT-11 Operating Systems and Applications
> (Sources not always required)
>
>

This is good info. I took Tim's advice and contacted the people who make the
SQ739 Dilog controller. They sent email requesting the Rev for the board. I
sent them that info and the next email from them was to say we should talk by
phone. So I'm waiting to hear from them.

We actually wrote our own operating system that has the driver I'm trying to
fix. The RT11 we use is V5.6 and the TSX 6.4. We do have a Zip unit attached
to the RT11 but I haven't tried to access the unit without a cartdrige in the
drive.

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: SCSI Device Driver
  1998-11-05  5:00 SCSI Device Driver rouse
  1998-11-05  5:00 ` Tim Shoppa
@ 1998-11-06  5:00 ` John Wilson
  1 sibling, 0 replies; 5+ messages in thread
From: John Wilson @ 1998-11-06  5:00 UTC (permalink / raw)


In article <71smj1$mmt$1@nnrp1.dejanews.com>,  <rouse@my-dejanews.com> wrote:
>I have a MSCP driver that talks to a SCSI SQ739 Dilog controller that has a
>Zip unit attached. I'm trying to fix a bug in the driver where by it will
>alert the user if some tries to read/write to Zip unit if there is no disk in
>the drive. I've added a function that will get the unit status of the zip
>drive. However, every time I post the "get unit status" to the controller, it
>hang the machine and I have to reboot to get control again. This only occurs
>is there is no disk in the drive. If there is a disk in the drive, the "get
>unit status" command works fine and does not hang the machine. Does anyone
>have any ideas what I maybe doing wrong here??? I've tried the "avail
>command" but it does not give me the correct status if there is no disk in
>the drive....

This is probably a pointless idea, but does the behavior change depending
on whether you've enabled unit attentions?  At least that gives the controller
something to do with a disk changes, maybe it'll get you through a different
code path in the firmware and get better behavior.  Although, CMD controllers
don't poll the SCSI device so the attention is delayed until the next attempt
to do I/O on the device, dunno if Dilog is the same.

If this is on a PDP-11, DUTEST might be a handy way to poke around the
controller instead of having to get carried away instrumenting your driver.
http://www.dbit.com/pub/pdp11/rt11/dutest.mac.  It can be loaded by RT-11,
but it's a stand-alone program so you can use something else instead (like
the RSTS INIT.SYS "LOAD" command) as long as it comes up in kernel mode,
and it has a simple command language that allows building and queueing
command packets and reading response packets.

John Wilson
D Bit



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-11-06  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-05  5:00 SCSI Device Driver rouse
1998-11-05  5:00 ` Tim Shoppa
1998-11-05  5:00   ` Jerome Fine
1998-11-06  5:00     ` rouse
1998-11-06  5:00 ` John Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox