* 2.6.17-rc6: libata WARN_ON() in ata_scsi_error
@ 2006-06-07 16:58 Mark Lord
2006-06-07 17:45 ` Mark Lord
0 siblings, 1 reply; 2+ messages in thread
From: Mark Lord @ 2006-06-07 16:58 UTC (permalink / raw)
To: Jeff Garzik, IDE/ATA development list
Jeff -- I'm trying to figure out where the race that causes this is:
>ata6: status=0x51 { DriveReady SeekComplete Error }
>ata6: error=0x40 { UncorrectableError }
>BUG: warning at drivers/scsi/libata-scsi.c:792/ata_scsi_error()
>
>Call Trace: <ffffffff80283430>{ata_scsi_error+144} <ffffffff802746cc>{scsi_error_handler+220}
> <ffffffff80181bb7>{__activate_task+39} <ffffffff80165a9f>{thread_return+0}
> <ffffffff802745f0>{scsi_error_handler+0} <ffffffff802745f0>{scsi_error_handler+0}
> <ffffffff801951c0>{keventd_create_kthread+0} <ffffffff8013569b>{kthread+219}
> <ffffffff801625ba>{child_rip+8} <ffffffff801951c0>{keventd_create_kthread+0}
> <ffffffff801355c0>{kthread+0} <ffffffff801625b2>{child_rip+0}
>PGD 75264067 PUD 75283067 PMD 0
>CPU 0
>Modules linked in: cpufreq_userspace cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand cpufreq_conservative vi
>deo thermal processor fan container button battery ac dm_mod md_mod snd_seq_dummy snd_seq_oss ide_cd cdrom snd_seq_midi snd_seq_midi_event snd_seq af_p
>acket mousedev snd_via82xx snd_via82xx_modem snd_ac97_codec snd_ac97_bus snd_pcm_oss snd_mixer_oss snd_mpu401_uart psmouse ehci_hcd snd_pcm snd_timer s
>erio_raw snd_rawmidi snd_seq_device i2c_viapro sk98lin floppy pcspkr via82cxxx i2c_core snd snd_page_alloc uhci_hcd usbcore ide_core soundcore sata_mv
>sg unix
>Pid: 1693, comm: scsi_eh_5 Not tainted 2.6.17-rc5-git11 #7
>RIP: 0010:[__nosave_end+129921632/2132602880] <ffffffff88018260>{:sata_mv:mv_eng_timeout+64}
>RSP: 0018:ffff81007d54fe18 EFLAGS: 00010282
>RAX: ffff81007ddbb1c0 RBX: ffff81007f601c68 RCX: 0000000000008000
>RDX: ffff81007f601c68 RSI: 0000000000004e4f RDI: ffffffff88018cd8
>RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000033
>R10: 0000000000000001 R11: 000000000000000a R12: 0000000000000286
>R13: ffffffff802745f0 R14: ffff81007df59bc8 R15: ffffffff801951c0
>FS: 00002b0e1bad6d60(0000) GS:ffffffff803fc000(0000) knlGS:0000000000000000
>CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
>CR2: 0000000000000010 CR3: 0000000075270000 CR4: 00000000000006e0
>Process scsi_eh_5 (pid: 1693, threadinfo ffff81007d54e000, task ffff81007f9032a0)
>Stack: ffffffff802745f0 ffff81007f601c68 ffff81007f601800 ffffffff80283475
> 00000000fffffffc ffff81007f601800 ffff81007f601800 ffffffff802746cc
> ffffffff80181bb7 ffff81007ea240c0
>Call Trace: <ffffffff802745f0>{scsi_error_handler+0}
> <ffffffff80283475>{ata_scsi_error+213} <ffffffff802746cc>{scsi_error_handler+220}
> <ffffffff80181bb7>{__activate_task+39} <ffffffff80165a9f>{thread_return+0}
> <ffffffff802745f0>{scsi_error_handler+0} <ffffffff802745f0>{scsi_error_handler+0}
> <ffffffff801951c0>{keventd_create_kthread+0} <ffffffff8013569b>{kthread+219}
> <ffffffff801625ba>{child_rip+8} <ffffffff801951c0>{keventd_create_kthread+0}
> <ffffffff801355c0>{kthread+0} <ffffffff801625b2>{child_rip+0}
>
>Code: 4c 8b 45 10 48 89 e9 48 8b 70 10 31 c0 4d 8d 48 70 e8 ca cd
This happens *after* several successful strides through error-handling
for the same (known) bad sector on a SATA drive attached to sata_mv.
My guess is that something from the earlier (successful) error-handling
is causing the later entry to have troubles. 2.6.17-rc6
Happens with/without the sata_mv eng_timeout patch that I also just posted.
Afterwards the drive is effectively locked-up.
I am recreating this with some "success" on an AMD64 kernel.
????
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: 2.6.17-rc6: libata WARN_ON() in ata_scsi_error
2006-06-07 16:58 2.6.17-rc6: libata WARN_ON() in ata_scsi_error Mark Lord
@ 2006-06-07 17:45 ` Mark Lord
0 siblings, 0 replies; 2+ messages in thread
From: Mark Lord @ 2006-06-07 17:45 UTC (permalink / raw)
To: Jeff Garzik; +Cc: IDE/ATA development list
Mark Lord wrote:
> Jeff -- I'm trying to figure out where the race that causes this is:
>
>> ata6: status=0x51 { DriveReady SeekComplete Error }
>> ata6: error=0x40 { UncorrectableError }
>> BUG: warning at drivers/scsi/libata-scsi.c:792/ata_scsi_error()
..
..
>> RIP: 0010:[__nosave_end+129921632/2132602880]
>> <ffffffff88018260>{:sata_mv:mv_eng_timeout+64}
..
Mmmm... happens with sata_via, as well. Must be a libata-core issue (?):
ata2: translated ATA stat/err 0x51/40 to SCSI SK/ASC/ASCQ 0x3/11/04
ata2: status=0x51 { DriveReady SeekComplete Error }
ata2: error=0x40 { UncorrectableError }
BUG: warning at drivers/scsi/libata-scsi.c:792/ata_scsi_error()
Call Trace: <ffffffff80283430>{ata_scsi_error+144} <ffffffff802746cc>{scsi_error_handler+220}
<ffffffff80181bb7>{__activate_task+39} <ffffffff80165a9f>{thread_return+0}
<ffffffff802745f0>{scsi_error_handler+0} <ffffffff802745f0>{scsi_error_handler+0}
<ffffffff801951c0>{keventd_create_kthread+0} <ffffffff8013569b>{kthread+219}
<ffffffff801625ba>{child_rip+8} <ffffffff801951c0>{keventd_create_kthread+0}
<ffffffff801355c0>{kthread+0} <ffffffff801625b2>{child_rip+0}
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
<ffffffff8027edc2>{ata_eng_timeout+50}
PGD 7b288067 PUD 7b27d067 PMD 0
Oops: 0000 [1] PREEMPT
CPU 0
Modules linked in: cpufreq_userspace cpufreq_stats freq_table cpufreq_powersave cpufreq_ondemand cpufreq_conservative video thermal processor fan container button battery ac dm_mod md_mod ide_cd cdrom snd_seq_dummy snd_seq_oss snd_seq_midi snd_seq_midi_event snd_seq af_packet mousedev snd_via82xx_modem snd_via82xx snd_ac97_codec snd_ac97_bus snd_mpu401_uart snd_pcm_oss snd_mixer_oss i2c_viapro snd_rawmidi snd_seq_device psmouse via82cxxx snd_pcm snd_timer i2c_core uhci_hcd ehci_hcd floppy pcspkr serio_raw ide_core snd_page_alloc snd soundcore usbcore sk98lin sata_mv sg unix
Pid: 740, comm: scsi_eh_1 Not tainted 2.6.17-rc5-git11 #8
RIP: 0010:[<ffffffff8027edc2>] <ffffffff8027edc2>{ata_eng_timeout+50}
RSP: 0018:ffff81007f9d5e08 EFLAGS: 00010282
RAX: 00000000fafbfcfd RBX: ffff81007f931468 RCX: 0000000000008000
RDX: ffff81007f9315d0 RSI: ffff81007f9d5dc8 RDI: ffff81007f931468
RBP: ffff81007f931000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 000000000000000a R12: 0000000000000000
R13: ffffffff802745f0 R14: ffff810002f43b88 R15: ffffffff801951c0
FS: 00002b450f83ab60(0000) GS:ffffffff803fc000(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 000000007b293000 CR4: 00000000000006e0
Process scsi_eh_1 (pid: 740, threadinfo ffff81007f9d4000, task ffff81007ff795b0)
Stack: ffff81007f931468 ffff81007f931000 0000000000000286 ffffffff802745f0
ffff810002f43b88 ffffffff80283475 00000000fffffffc ffff81007f931000
ffff81007f931000 ffffffff802746cc
Call Trace: <ffffffff802745f0>{scsi_error_handler+0}
<ffffffff80283475>{ata_scsi_error+213} <ffffffff802746cc>{scsi_error_handler+220}
<ffffffff80181bb7>{__activate_task+39} <ffffffff80165a9f>{thread_return+0}
<ffffffff802745f0>{scsi_error_handler+0} <ffffffff802745f0>{scsi_error_handler+0}
<ffffffff801951c0>{keventd_create_kthread+0} <ffffffff8013569b>{kthread+219}
<ffffffff801625ba>{child_rip+8} <ffffffff801951c0>{keventd_create_kthread+0}
<ffffffff801355c0>{kthread+0} <ffffffff801625b2>{child_rip+0}
Code: 49 8b 2c 24 c7 85 e8 02 00 00 01 00 00 00 9c 41 5e fa 65 48
RIP <ffffffff8027edc2>{ata_eng_timeout+50} RSP <ffff81007f9d5e08>
CR2: 0000000000000000
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-07 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-07 16:58 2.6.17-rc6: libata WARN_ON() in ata_scsi_error Mark Lord
2006-06-07 17:45 ` Mark Lord
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).