From: Doug Ledford <dledford@redhat.com>
To: "Justin T. Gibbs" <gibbs@scsiguy.com>
Cc: CAMTP guest <camtp.guest@uni-mb.si>, linux-kernel@vger.kernel.org
Subject: Re: aic7xxx sets CDR offline, how to reset?
Date: Mon, 2 Sep 2002 14:05:09 -0400 [thread overview]
Message-ID: <20020902140509.A10976@redhat.com> (raw)
In-Reply-To: <1231170000.1030981811@aslan.scsiguy.com>; from gibbs@scsiguy.com on Mon, Sep 02, 2002 at 09:50:11AM -0600
On Mon, Sep 02, 2002 at 09:50:11AM -0600, Justin T. Gibbs wrote:
> > I'm running 2.4.19, using AIC7XXX 6.2.8.
> > SCSI devices are 0:0:0 hard disk and 0:6:0 CDR.
> > During CD burning, errors sometimes occur and aic7xxx driver
> > sets the CDR offline. Is there a way to reset the device and
> > set it online again _without_rebooting_ ?
>
> I don't know that any mechanism currently exists. It shouldn't be
> too hard to create on though. Just modify the proc handler in
> drivers/scsi/scsi.c.
>
> While your looking at that, I would like to better understand why the
> device is being set offline. The message listing you've provided is
> not complete. If you send me all of the messages output by the driver
> from boot through failure I will try to diagnose your problem.
Actually, it looked to me like there was a bus hang, a device reset, the
driver returned a complete reset to the error handler thread, then the
error handler thread kicked the queue before the CD was ready to accept
commands again and as a result of sense info saying as much the mid layer
took the device off line. So, in short, the mid layer isn't waiting long
enough, or when it gets sense indicated not ready it needs to implement a
waiting queue with a timeout to try rekicking things a few times and don't
actually mark the device off line until a longer period of time has
elasped without the device coming back.
As for getting it to be not off line without rebooting, just do a this:
echo "scsi-remove-single-device 0 0 6 0" > /proc/scsi/scsi
echo "scsi-add-single-device 0 0 6 0" > /proc/scsi/scsi
That'll remove the device and then rescan it. Assuming it's had enough
time to complete the reset by the time you do this and it's once again
ready to accept commands, this should get your CD back working.
--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
next prev parent reply other threads:[~2002-09-02 18:00 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-02 12:23 aic7xxx sets CDR offline, how to reset? CAMTP guest
2002-09-02 15:50 ` Justin T. Gibbs
2002-09-02 18:05 ` Doug Ledford [this message]
2002-09-02 19:16 ` CAMTP guest
2002-09-02 19:48 ` Justin T. Gibbs
2002-09-02 19:42 ` Justin T. Gibbs
-- strict thread matches above, loose matches on Subject: below --
2002-09-03 14:35 James Bottomley
2002-09-03 18:23 ` Doug Ledford
2002-09-03 19:09 ` James Bottomley
2002-09-03 20:59 ` Alan Cox
2002-09-03 21:32 ` James Bottomley
2002-09-03 21:54 ` Alan Cox
2002-09-03 22:50 ` Doug Ledford
2002-09-03 23:28 ` Alan Cox
2002-09-04 7:40 ` Jeremy Higdon
2002-09-04 16:24 ` James Bottomley
2002-09-04 17:13 ` Mike Anderson
2002-09-05 9:50 ` Jeremy Higdon
2002-09-04 16:13 ` James Bottomley
2002-09-04 16:50 ` Justin T. Gibbs
2002-09-05 9:39 ` Jeremy Higdon
2002-09-05 13:35 ` Justin T. Gibbs
2002-09-03 21:13 ` Doug Ledford
2002-09-03 21:48 ` James Bottomley
2002-09-03 22:42 ` Doug Ledford
2002-09-03 22:52 ` Doug Ledford
2002-09-03 23:29 ` Alan Cox
2002-09-04 21:16 ` Luben Tuikov
2002-09-04 10:37 ` Andries Brouwer
2002-09-04 10:48 ` Doug Ledford
2002-09-04 11:23 ` Alan Cox
2002-09-04 16:25 ` Rogier Wolff
2002-09-04 19:34 ` Thunder from the hill
2002-09-03 21:24 ` Patrick Mansfield
2002-09-03 22:02 ` James Bottomley
2002-09-03 23:26 ` Alan Cox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020902140509.A10976@redhat.com \
--to=dledford@redhat.com \
--cc=camtp.guest@uni-mb.si \
--cc=gibbs@scsiguy.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox