From: Mark de Wever <koraq@xs4all.nl>
To: petkovbb@gmail.com
Cc: sshtylyov@ru.mvista.com, bzolnier@gmail.com, linux-ide@vger.kernel.org
Subject: Re: [bug#12874] Seagate STT20000A no longer works
Date: Tue, 14 Apr 2009 23:34:23 +0200 [thread overview]
Message-ID: <20090414213422.GA2719@localhost> (raw)
In-Reply-To: <20090410174247.GA12885@liondog.tnic>
On Fri, Apr 10, 2009 at 07:42:47PM +0200, Borislav Petkov wrote:
> Now, without having tested it since I don't have the hardware, would
> something in the lines below be a sensible kludge for now? I guess we
> should have similar error handling for the other MODE SENSE call sites
> and propagate some error status from idetape_get_mode_sense_results()
> upwards to idetape_setup()?
I tested with 'tmp fix 2' [1] and 'dump drive caps and dbg rqs' [2] and
the patch below applied and had another divide error. Attached the full
dmesg.
> Yeah, I know, the driver needs a lot of massaging in order even to
> start looking ok... :)
:-)
Do you want me to do the full caps debug test [3] ?
Another question; I'm still using 2.6.29-rc7 as test kernel, do you
prefer to keep using that version or move to 2.6.30-rc1?
[1] http://bugzilla.kernel.org/attachment.cgi?id=20822
[2] http://bugzilla.kernel.org/attachment.cgi?id=20873
[3] http://bugzilla.kernel.org/show_bug.cgi?id=12874#c20
--
Regards,
Mark de Wever
> __
>
> diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
> index 70e7876..827485a 100644
> --- a/drivers/ide/ide-tape.c
> +++ b/drivers/ide/ide-tape.c
> @@ -2095,6 +2095,21 @@ static void idetape_get_mode_sense_results(ide_drive_t *drive)
> put_unaligned(540, (u16 *)&tape->caps[14]);
> put_unaligned(6*52, (u16 *)&tape->caps[16]);
> return;
> +
> + } else if ((pc.buf[0] & 0x7f) == 0x70) {
> + /* unit attention: power on reset or device reset/not ready to
> + * ready transition */
> + if ((pc.buf[2] & 0xf) == 0x6 &&
> + (pc.buf[12] == 0x29 || pc.buf[12] == 0x28) &&
> + pc.buf[13] == 0x0) {
> + tape->failed_pc = &pc;
> + ide_retry_pc(drive, tape->disk);
> + }
> + else {
> + printk(KERN_ERR "%s: error getting caps page\n",
> + drive->name);
> + return;
> + }
> }
> caps = pc.buf + 4 + pc.buf[3];
next prev parent reply other threads:[~2009-04-14 21:43 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-10 17:42 [bug#12874] Seagate STT20000A no longer works Borislav Petkov
2009-04-14 21:34 ` Mark de Wever [this message]
2009-04-14 21:41 ` Mark de Wever
2009-04-20 9:30 ` Borislav Petkov
2009-05-05 21:12 ` Mark de Wever
2009-05-05 21:19 ` [PATCH] Fix ide-tape compilation error Mark de Wever
2009-05-06 6:10 ` Borislav Petkov
2009-05-16 15:08 ` Borislav Petkov
2009-05-06 6:11 ` [bug#12874] Seagate STT20000A no longer works Borislav Petkov
2009-05-16 8:25 ` Mark de Wever
[not found] <bug-12874-11633@https.bugzilla.kernel.org/>
2012-01-12 0:58 ` [Bug 12874] " bugzilla-daemon
2012-05-30 14:38 ` bugzilla-daemon
2012-05-30 14:38 ` bugzilla-daemon
-- strict thread matches above, loose matches on Subject: below --
2009-03-15 8:23 [Bug 12874] New: " bugme-daemon
2009-03-15 8:25 ` [Bug 12874] " bugme-daemon
2009-03-15 8:26 ` bugme-daemon
2009-03-15 8:26 ` bugme-daemon
2009-03-15 10:18 ` bugme-daemon
2009-03-15 10:37 ` bugme-daemon
2009-03-15 10:38 ` bugme-daemon
2009-03-15 10:40 ` bugme-daemon
2009-03-16 6:20 ` bugme-daemon
2009-03-18 23:04 ` bugme-daemon
2009-03-18 23:04 ` bugme-daemon
2009-03-25 8:40 ` bugzilla-daemon
2009-03-25 8:42 ` bugzilla-daemon
2009-03-30 20:20 ` bugzilla-daemon
2009-03-31 8:08 ` bugzilla-daemon
2009-03-31 8:11 ` bugzilla-daemon
2009-04-05 10:42 ` bugzilla-daemon
2009-04-05 16:23 ` bugzilla-daemon
2009-04-05 16:24 ` bugzilla-daemon
2009-04-05 20:45 ` bugzilla-daemon
2009-04-08 5:45 ` bugzilla-daemon
2009-04-08 5:47 ` bugzilla-daemon
2009-04-08 22:21 ` bugzilla-daemon
2009-04-08 22:23 ` bugzilla-daemon
2009-04-10 10:06 ` bugzilla-daemon
2009-04-10 10:06 ` bugzilla-daemon
2009-04-10 10:14 ` bugzilla-daemon
2009-04-10 10:15 ` bugzilla-daemon
2009-04-10 10:16 ` bugzilla-daemon
2009-04-10 12:48 ` bugzilla-daemon
2009-06-15 8:18 ` bugzilla-daemon
2009-06-18 18:02 ` bugzilla-daemon
2009-06-18 21:15 ` bugzilla-daemon
2009-07-14 21:01 ` bugzilla-daemon
2009-07-19 13:21 ` bugzilla-daemon
2009-07-19 13:22 ` bugzilla-daemon
2009-07-19 14:27 ` bugzilla-daemon
2009-07-19 14:30 ` bugzilla-daemon
2009-08-15 8:02 ` bugzilla-daemon
2009-08-15 8:04 ` bugzilla-daemon
2009-08-19 20:46 ` bugzilla-daemon
2009-08-20 6:36 ` bugzilla-daemon
2009-08-20 6:41 ` bugzilla-daemon
2009-08-31 18:22 ` bugzilla-daemon
2010-01-25 14:56 ` bugzilla-daemon
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=20090414213422.GA2719@localhost \
--to=koraq@xs4all.nl \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=petkovbb@gmail.com \
--cc=sshtylyov@ru.mvista.com \
/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;
as well as URLs for NNTP newsgroup(s).