Skip to contentSkip to conversation

DVD/ide-cd related Oops 2.6.[89]-mm

PATCH Tabris 2 participants 5 messages Oct 22, 2004 – Oct 27, 2004

lore
Share & tools
lore

Tabris

author
#0 lore raw

I have a DVD I bought today that about 80% of the way through
causes an error, 'cmd 0x28 timed out', resets ATAPI 2 or 3 times... and then produces the Oops attached below.

This has happened in 2.6.8-rc1-mm1+idefix2 (a mebbe 5 liner
patch to fix LBA 48 FLUSH CACHE on non-LBA48 capable drives from Jens. was merged into rc2-mm, possibly in rc1-mm2 or mm3), and also 2.6.9-rc4-mm1+revert_optimize-profile+undecoded_slave-fixup

undecoded slave fixup is a oneliner patch in ide-probe to
recognize both of my Maxtor drives that appear to have the same serial number, D3000000. This fix was discussed a month ago or so, as I had run into it, but nothing official came of it, and it was never merged to -mm. Patch attached.

Btw, the oops does not occur with another DVD I have. However, I
did go to the store and get another copy of the problematic DVD, and the same problem occurred.
--
tabris

ide-cd: cmd 0x28 timed out
hdd: DMA timeout retry
hdd: timeout waiting for DMA
hdd: status error: status=0x58 { DriveReady SeekComplete DataRequest }
hdd: status error: error=0x00
hdd: drive not ready for command
hdd: status error: status=0xd0 { Busy }
hdd: status error: error=0x00
hdd: drive not ready for command
hdd: ATAPI reset complete

Unable to handle kernel NULL pointer dereference at virtual addr 00000030
 printing eip:
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: binfmt_misc nfsd exportfs sg sr_mod lp parport_pc parport nfs lockd sunrpc snd_seq_oss snd_seq_midi_event snd_seq_ snd_pcm_oss snd_mixer_oss snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_pcm snd_timer snd_page_alloc snd_util_mem snd_hwdep snd soundcore w83781d i2c_sensor i2c_viapro i2c_dev i2c_core raw ide_cd cdrom floppy thermal processor fan button battery ac 3c59x mii quota-vs xfs ext2 mbcache rtc

CPU: 0
EIP: 0060:{<e0a8a079>] Not Tainted VLI
EFLAGS: 00210012
EIP is at cdrom_read_intr+0x1a0/0x2f0 [ide_cd]
eax: 00008000 ebx: 00000040 ecx:cff01f40 edx: 00000000
esi: 00008000 edi: 00000000 ebp: c03f8d34 esp: cff01f28
ds: 007b es: 007b ss:0068

process artsd (pid: 7326, threadinfo=cff00000 task=cd1b1ae0)
stack: c47bc3a4 c47bc3b8 c47bc3b4 00000040 00000002 00000001 00000058 0000000f

	c1579ca0 c03f8d34 00200282 c022769f 00000000 cff00000 e0a89ed0 c03f8ad0
	c1577640 00000000 0000000f 00000000 c01347c4 000003c0 0000000f c03afe00 
Call Trace:
ide_intr+0xff/0x200
cdrom_read_intr+0x0/0x2f0 [ide_cd]
handle_IRQ_event+0x34/0x60
__do_IRQ+0xf9/0x1a0
common_interrupt+0x18/0x20

<0>Kernel Panic - not syncing: Fatal exception in interrupt

Signed-off by [email protected]

ide-probe.c renamed from ide-probe.c~ +1 -0
@@ -730,6 +730,7 @@ static void probe_hwif(ide_hwif_t *hwif)
 			    /* And beware of confused Maxtor drives that go "M0000000000"
 			      "The SN# is garbage in the ID block..." [Eric] */
 			    strncmp(drive->id->serial_no, "M0000000000000000000", 20) &&
+			    strncmp(drive->id->serial_no, "D3000000", 8) &&
 			    strncmp(hwif->drives[0].id->serial_no, drive->id->serial_no, 20) == 0) {
 				printk(KERN_WARNING "ide-probe: ignoring undecoded slave\n");
 				drive->present = 0;
#1 lore raw
Quoted 4 lines · Tabris

undecoded slave fixup is a oneliner patch in ide-probe to
recognize both of my Maxtor drives that appear to have the same serial number, D3000000. This fix was discussed a month ago or so, as I had run into it, but nothing official came of it, and it was never merged to -mm.

Did you test it on different controller (as asked by Eric)?

Quoted 1 line

Patch attached.

thanks, I'll apply it

Bartlomiej

author
#2 lore raw
Quoted 8 lines · Bartlomiej Zolnierkiewicz
Quoted 5 lines · Tabris

undecoded slave fixup is a oneliner patch in ide-probe to
recognize both of my Maxtor drives that appear to have the same serial number, D3000000. This fix was discussed a month ago or so, as I had run into it, but nothing official came of it, and it was never merged to -mm.

Did you test it on different controller (as asked by Eric)?

Hmm. no, I had not tried that. I can probably arrange it assuming I end
up doing any work on the DVD oops as well. Just trying to minimize downtime on this system.

Quoted 6 lines
Quoted 2 lines

Patch attached.

thanks, I'll apply it

Bartlomiej

--
tabris
-
What, after all, is a halo? It's only one more thing to keep clean.
-- Christopher Fry

author
#3 lore raw
In reply to Bartlomiej Zolnierkiewicz
Quoted 7 lines · Bartlomiej Zolnierkiewicz
Quoted 5 lines · Tabris

undecoded slave fixup is a oneliner patch in ide-probe to
recognize both of my Maxtor drives that appear to have the same serial number, D3000000. This fix was discussed a month ago or so, as I had run into it, but nothing official came of it, and it was never merged to -mm.

Quoted 5 lines

Did you test it on different controller (as asked by Eric)?

Quoted 1 line

Patch attached.

thanks, I'll apply it

Patch attached with a comment. Possibly not necessary, but as it's a
fixup, probably should anyway.

Quoted 2 lines

Bartlomiej

--
tabris
-
Some people only open up to tell you that they're closed.

Signed-off by [email protected]

ide-probe.c renamed from ide-probe.c~ +2 -0
@@ -730,6 +730,8 @@ static void probe_hwif(ide_hwif_t *hwif)
 			    /* And beware of confused Maxtor drives that go "M0000000000"
 			      "The SN# is garbage in the ID block..." [Eric] */
 			    strncmp(drive->id->serial_no, "M0000000000000000000", 20) &&
+			    /* Same goes for another set of Maxtor drives that say "D3000000" */
+			    strncmp(drive->id->serial_no, "D3000000", 8) &&
 			    strncmp(hwif->drives[0].id->serial_no, drive->id->serial_no, 20) == 0) {
 				printk(KERN_WARNING "ide-probe: ignoring undecoded slave\n");
 				drive->present = 0;
author
#4 lore raw
In reply to Tabris
Quoted 3 lines · Tabris

I have a DVD I bought today that about 80% of the way through
causes an error, 'cmd 0x28 timed out', resets ATAPI 2 or 3 times... and then produces the Oops attached below.

Any thoughts on the DVD oops? I'd like to be able to find a fix for
this so I can actually watch the movie.

Quoted 6 lines

This has happened in 2.6.8-rc1-mm1+idefix2 (a mebbe 5 liner
patch to fix LBA 48 FLUSH CACHE on non-LBA48 capable drives from Jens. was merged into rc2-mm, possibly in rc1-mm2 or mm3), and also 2.6.9-rc4-mm1+revert_optimize-profile+undecoded_slave-fixup

<snip>

Quoted 5 lines

Btw, the oops does not occur with another DVD I have. However, I
did go to the store and get another copy of the problematic DVD, and the same problem occurred.
--
tabris

Signature · 1 line
Fundamentally, there may be no basis for anything.