public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Manual SCSI bus reset?
@ 2001-02-15  1:00 German Gomez Garcia
  0 siblings, 0 replies; 2+ messages in thread
From: German Gomez Garcia @ 2001-02-15  1:00 UTC (permalink / raw)
  To: Mailing List Linux Kernel

	Hello,

	I've got Plexwriter 12x10x32S attached to an onbard AIC7890
(besides other things as three IBM UWSCSI harddisks, an SCSI ZIP and a
Pioneer DVD) and sometimes when recording a CD the Plexwriter fails at the
very end of the process (although the CD is recorded correctly) and it is
locked with no posibility to eject it (it seems that a failure while
reading from the DVD during on-the-fly recording is the cause). 

	But if I reset the SCSI bus manually, that is trying to read from
a "reset-it CD", that is completely broken and makes the SCSI bus resets
itself, I can eject the CD from the Plexwriter. So I would like to know if
there is a way to do it without that trick. I've downloaded some utilities
for the SCSI generic driver, one of them should let you reset the bus (or
even just a single device) but it fails with "SCSI_RESET" not supported
and after reading through the docs it seems that the kernel (or should I
say the SCSI drivers) doesn't support this kind of reset.
	
	I would like to know if this is "kernel politics", "faulty
hardware", or just lazy programmers ;-), thanks and please CC the answer
to me as I'm not subscribed to this mailing list.

	- german

---------------------------------------------------------------------------
German Gomez Garcia           | "This isn't right.  This isn't even wrong."
<german@pinon.ccu.uniovi.es>  |                         -- Wolfgang Pauli


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

* Re: Manual SCSI bus reset?
@ 2001-02-15 23:04 Douglas Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Douglas Gilbert @ 2001-02-15 23:04 UTC (permalink / raw)
  To: linux-kernel; +Cc: German Gomez Garcia

German Gomez Garcia wrote:

>         I've got Plexwriter 12x10x32S attached to an onbard AIC7890
> (besides other things as three IBM UWSCSI harddisks, an SCSI ZIP and a
> Pioneer DVD) and sometimes when recording a CD the Plexwriter fails at the
> very end of the process (although the CD is recorded correctly) and it is
> locked with no posibility to eject it (it seems that a failure while
> reading from the DVD during on-the-fly recording is the cause). 
>
>         But if I reset the SCSI bus manually, that is trying to read from
> a "reset-it CD", that is completely broken and makes the SCSI bus resets
> itself, I can eject the CD from the Plexwriter. So I would like to know if
> there is a way to do it without that trick. I've downloaded some utilities
> for the SCSI generic driver, one of them should let you reset the bus (or
> even just a single device) but it fails with "SCSI_RESET" not supported
> and after reading through the docs it seems that the kernel (or should I
> say the SCSI drivers) doesn't support this kind of reset.
>        
>         I would like to know if this is "kernel politics", "faulty
> hardware", or just lazy programmers ;-), thanks and please CC the answer
> to me as I'm not subscribed to this mailing list.

Various distributions (e.g. RH 7.0) contain the SCSI 
mid-level patch that will permit the sg_reset utility
to perform a scsi bus reset. [The same patch makes the 
scsi subsystem respect device reservations.]

The patch originates from James Bottomley (see the linux-scsi
list archive) and he has submitted a new version for the lk 2.4
tree recently. When first submitted, objections were raised to 
the concept of allowing users to do scsi bus resets (see same 
list archive). 

There is a chance that the required patch will go into main 
kernel tree soon.

Doug Gilbert

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

end of thread, other threads:[~2001-02-15 23:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-15 23:04 Manual SCSI bus reset? Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2001-02-15  1:00 German Gomez Garcia

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