linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 12874] New: Seagate STT20000A no longer works
@ 2009-03-15  8:23 bugme-daemon
  2009-03-15  8:25 ` [Bug 12874] " bugme-daemon
                   ` (43 more replies)
  0 siblings, 44 replies; 55+ messages in thread
From: bugme-daemon @ 2009-03-15  8:23 UTC (permalink / raw)
  To: linux-ide

http://bugzilla.kernel.org/show_bug.cgi?id=12874

           Summary: Seagate STT20000A no longer works
           Product: IO/Storage
           Version: 2.5
     KernelVersion: 2.6.29-rc7
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: IDE
        AssignedTo: io_ide@kernel-bugs.osdl.org
        ReportedBy: koraq@xs4all.nl


Latest working kernel version: 2.6.25
Earliest failing kernel version: 2.6.26
Distribution: Debian Lenny (tested with vanilla kernel)
Hardware Environment: i386
Problem Description: 
The Seagate STT20000A tapestreamer is no longer usable 
when modprobing the ide_tape module there's kernel BUG.

It was reported on the lkml[1][2], I tested with 2.6.29-rc7
and the problem still remains. Attached the boot dmesg and
the kernel BUG dmesg. Please let me know if more information
is needed. 

[1]http://marc.info/?l=linux-kernel&m=122203193728465&w=2
[2]http://marc.info/?l=linux-kernel&m=122202406417545&w=2


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 55+ messages in thread
* [bug#12874] Seagate STT20000A no longer works
@ 2009-04-10 17:42 Borislav Petkov
  2009-04-14 21:34 ` Mark de Wever
  2009-04-14 21:41 ` Mark de Wever
  0 siblings, 2 replies; 55+ messages in thread
From: Borislav Petkov @ 2009-04-10 17:42 UTC (permalink / raw)
  To: sshtylyov; +Cc: bzolnier, koraq, linux-ide

(moving discussion to mail and adding Bart to CC)

(In reply to comment #24)
> (In reply to comment #20)
> > Hmm, seems like the buffer is quite botched or the drive replies with some mode
> > parameter headers I cannot correlate.
> 
> If you mean this line:
> 
> [   42.272638] caps:  70 0 6 0 0 0 0 a 0 0 0 0 29 0 0 0 0 0 0 0 0 0 0 0
> 
> 
> this is the extended sense data with its characteristic 1st byte of 0x70,
> 8-byte header with sense key UNIT ATTENTION, 10 bytes of additinal length and
> ASC of 0x29 meaning "reset hs occured".

Haa, thanks for catching that, although the QIC157d document I'm staring
at here states that the drive might return sense data instead of the
requested page, it seems that we don't get any CHECK CONDITION status
otherwise ide_pc_intr would've caught it (stat & ATA_ERR) and retried
the command.

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()? Yeah, I know, the driver needs a lot of
massaging in order even to start looking ok... :)

__

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];
 


-- 
Regards/Gruss,
    Boris.

^ permalink raw reply related	[flat|nested] 55+ messages in thread
[parent not found: <bug-12874-11633@https.bugzilla.kernel.org/>]

end of thread, other threads:[~2012-05-30 14:38 UTC | newest]

Thread overview: 55+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-15  8:23 [Bug 12874] New: Seagate STT20000A no longer works 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
  -- strict thread matches above, loose matches on Subject: below --
2009-04-10 17:42 [bug#12874] " Borislav Petkov
2009-04-14 21:34 ` Mark de Wever
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-06  6:11       ` 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

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).