New: panic when reading data from IDE CDROM with >= 2.6.29 kernels
http://bugzilla.kernel.org/show_bug.cgi?id=13345
Summary: panic when reading data from IDE CDROM with >= 2.6.29
kernels
Product: IO/Storage
Version: 2.5
Kernel Version: 2.6.30-rc5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IDE
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: YesCreated an attachment (id=21439)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21439)
Backtrace of the OOPS with 2.6.30-rc5
Hello,
I get kernel panic when data is read from IDE CDROM with 2.6.29 or later kernels (testing 2.6.30-rc5 at the moment). I have never had the issue with 2.6.28 and earlier kernels.
I suspect the cause though. My CD/DVD drive is pretty old and might be a bit faulty (or this might kernel be misinterpreting my drive sometimes). <= 2.6.28 kernels used to turn off DMA due to seek errors (if I recall correctly) sometimes. However, I used to be able to turn DMA back on with hdparm and I have never really had read() failures. Now with >= 2.6.29 I have never seen DMA being turn off on my CD/DVD drive but I guess kernel just panics instead. So I suspect there is a regression in the latest kernels which triggers unrecoverable panic instead of drive reset.
I got the attached backtrace (sorry, I couldn't do better than this picture) with 2.6.30-rc5 on Debian unstable amd64 box while doing a simple:
$ dd if=/dev/cdrom of=/dev/null bs=1M
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #1 from Modestas Vainius <[email protected]> 2009-05-19 21:43:34 --- Created an attachment (id=21440)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21440)
Some information about my system/kernel configuration
uname -a
lsmod
lspci -vv
and kernel config
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Modestas Vainius <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #21440|application/octet-stream |text/plain
mime type| |Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
Re: [Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
Quoted 1 line · On Tuesday 19 May 2009 23:44:32 [email protected] wrote:
Please test the patch from:
http://patchwork.kernel.org/patch/24790/
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #2 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-19 21:53:26 ---
Quoted 1 line · On Tuesday 19 May 2009 23:44:32 [email protected] wrote:
Please test the patch from:
http://patchwork.kernel.org/patch/24790/
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #3 from Modestas Vainius <[email protected]> 2009-05-20 07:30:29 --- Unfortunately, the patch applied on top of 2.6.30-rc5 does not fix the problem.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
Re: [Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
Quoted 8 lines · On Wednesday 20 May 2009 09:30:29 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #3 from Modestas Vainius <[email protected]> 2009-05-20 07:30:29 --- Unfortunately, the patch applied on top of 2.6.30-rc5 does not fix the problem.
Just to be sure:
Is the OOPS identical as previously or is it something new?
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Borislav Petkov <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #4 from Borislav Petkov <[email protected]> 2009-05-20 09:18:16 --- Hi,
can you also send the bootlogs of a working kernel (<= 2.6.28) and of the borked one (30-rc5). For the last one, it would be very useful to see the whole of the initial OOPS which is cut off on the photo. Can you catch the output with a serial console (netconsole might do too if its not too early in the boot process and the machine doesn't die before some data can be transferred over the network)?
Also, on the 30-rc5 do
objdump -d drivers/ide/ide-io.o > ide-io.dsm
and
make drivers/ide/ide-io.s
and send me the .dsm and .s files.
Thanks,
Boris.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #5 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-20 14:35:05 ---
Quoted 8 lines · On Wednesday 20 May 2009 09:30:29 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #3 from Modestas Vainius <[email protected]> 2009-05-20 07:30:29 --- Unfortunately, the patch applied on top of 2.6.30-rc5 does not fix the problem.
Just to be sure:
Is the OOPS identical as previously or is it something new?
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #6 from Modestas Vainius <[email protected]> 2009-05-20 18:19:31 --- I'm really sorry, but I realized that I had not rebuilt initrd when I'd installed a new kernel with the patch applied. So I did that and I can confirm that I no longer got OOPS but those DMA turn offs were back instead as they used to happen with <= 2.6.28 kernels:
[ 663.442788] hdd: cdrom_decode_status: status=0x51 { DriveReady SeekComplete
Error }
[ 663.445040] hdd: cdrom_decode_status: error=0x40 <3>{ LastFailedSense=0x04 }
[ 663.446768] ide: failed opcode was: unknown
[ 663.454549] hdd: cdrom_decode_status: status=0x51 { DriveReady SeekComplete
Error }
[ 663.456681] hdd: cdrom_decode_status: error=0x40 <3>{ LastFailedSense=0x04 }
[ 663.458541] ide: failed opcode was: unknown
[ 663.464783] hdd: cdrom_decode_status: status=0x51 { DriveReady SeekComplete
Error }
[ 663.466847] hdd: cdrom_decode_status: error=0x40 <3>{ LastFailedSense=0x04 }
[ 663.468764] ide: failed opcode was: unknown
[ 663.473414] hdd: cdrom_decode_status: status=0x51 { DriveReady SeekComplete
Error }
[ 663.475365] hdd: cdrom_decode_status: error=0x40 <3>{ LastFailedSense=0x04 }
[ 663.477259] ide: failed opcode was: unknown
[ 663.477406] hdd: DMA disabled
[ 663.520043] hdd: ATAPI reset completeSo yes, I can confirm that the patch fixes the OOPS with 2.6.30-rc5 and 2.6.30-rc6-git5. I'm looking forward to seeing the patch included in 2.6.30-rc7 and 2.6.29.x, it looks pretty important to me.
What is more, I "played" a bit with IDE cabling and switched my CD/DVD drive to IDE master and I could not even reproduce the errors above (and hence annoying DMA turn off is gone too) any more. So it is good news on all fronts for me.
I leave it for you to close the bug but it is fully RESOLVED as far as I'm concerned.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #7 from Borislav Petkov <[email protected]> 2009-05-21 07:27:02 --- Can you send us the dmesg of the working kernel, I'd like to see what is the drive model exactly when it gets identified. Also, are you using 40 or 80 wires IDE cable? You can recognize the 80 wires cable by the blue connector on the host side (the end that goes into the motherboard).
@Bart: presumably, this sounds like another one b0rked drive-side cable detection, from what I've seen so far and looking at Martin's error messages.
Thanks,
Boris.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #8 from Modestas Vainius <[email protected]> 2009-05-21 20:25:02 --- Created an attachment (id=21473)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21473)
dmesg of 2.6.30-rc6-git5 + patch with CDROM as hdc and hdd
No errors with CDROM as hdc plugged to middle connector of the cable. DMA problems with CDROM as hdd plugged to end connector of the cable. I have not tested other combinations.
My cable is 40-wire (all connectors are black, I counted the wires too).
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
Re: [Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
Quoted 11 lines · On Thursday 21 May 2009 22:25:02 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #8 from Modestas Vainius <[email protected]> 2009-05-21 20:25:02 --- Created an attachment (id=21473)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21473)
dmesg of 2.6.30-rc6-git5 + patch with CDROM as hdc and hdd
Quoted 5 lines
No errors with CDROM as hdc plugged to middle connector of the cable. DMA problems with CDROM as hdd plugged to end connector of the cable. I have not tested other combinations.
My cable is 40-wire (all connectors are black, I counted the wires too).
Sigh... it is detected as 80-wire...
This is nVidia PATA controller with broken cable detection.
In ide we just use BIOS data, libata looks at both BIOS and ACPI data (though it may not help at all actually)...
Anyway the following change needs to be ported to amd74xx.c one day:
"pata_amd: update mode selection for NV PATAs"
(commit ce54d1616302117fa98513ae916bb3333e1c02ea)
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #9 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-21 20:48:33 ---
Quoted 8 lines · On Thursday 21 May 2009 22:25:02 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #8 from Modestas Vainius <[email protected]> 2009-05-21 20:25:02 --- Created an attachment (id=21473)
--> (http://bugzilla.kernel.org/attachment.cgi?id=21473)
Quoted 8 lines
--> (http://bugzilla.kernel.org/attachment.cgi?id=21473)
dmesg of 2.6.30-rc6-git5 + patch with CDROM as hdc and hddNo errors with CDROM as hdc plugged to middle connector of the cable. DMA problems with CDROM as hdd plugged to end connector of the cable. I have not tested other combinations.
My cable is 40-wire (all connectors are black, I counted the wires too).
Sigh... it is detected as 80-wire...
This is nVidia PATA controller with broken cable detection.
In ide we just use BIOS data, libata looks at both BIOS and ACPI data (though it may not help at all actually)...
Anyway the following change needs to be ported to amd74xx.c one day:
"pata_amd: update mode selection for NV PATAs"
(commit ce54d1616302117fa98513ae916bb3333e1c02ea)
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #10 from Alan <[email protected]> 2009-05-21 20:53:44 --- The discussion with Nvidia some time back established that for on board Nvidia devices the only method that would be reliable as the ACPI one.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #11 from Modestas Vainius <[email protected]> 2009-05-21 21:04:19 --- In both cases? Or I'm just lucky that I have not seen problems with CD/DVD drive as hdc yet?
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
Re: [Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
Quoted 9 lines · On Thursday 21 May 2009 23:04:19 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #11 from Modestas Vainius <[email protected]> 2009-05-21 21:04:19 --- In both cases? Or I'm just lucky that I have not seen problems with CD/DVD drive as hdc yet?
In both cases -- the drive is always tuned to UDMA/66.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #12 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-05-23 11:48:01 ---
Quoted 9 lines · On Thursday 21 May 2009 23:04:19 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #11 from Modestas Vainius <[email protected]> 2009-05-21 21:04:19 --- In both cases? Or I'm just lucky that I have not seen problems with CD/DVD drive as hdc yet?
In both cases -- the drive is always tuned to UDMA/66.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #13 from Modestas Vainius <[email protected]> 2009-05-24 06:29:35 --- BIOS setup tells me "UltraDMA Mode 2" (UDMA/33) for CD drive so Linux is obviously misdetecting here. I'll probably have to get a 80-conductor cable as hdparm -X udma2 does not seem to work :/
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Ethan Grammatikidis <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #14 from Ethan Grammatikidis <[email protected]> 2009-06-09 21:04:05 --- Hullo. I ran into this the other day, & can report the bug is still present in 2.6.30-rc8.
I tried to capture the console output on panic but:
FATAL: Error inserting netconsole (/lib/modules/2.6.30-rc8/kernel/drivers/net/netconsole.ko): Operation not permitted
(Yes, I was root.)
I tried 2 drives, only one triggered the bug. This is a Lite-On SOHD-16P9S28C made in January 2005.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
Re: [Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
Quoted 12 lines · On Tuesday 09 June 2009 23:04:07 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
Ethan Grammatikidis <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Quoted 3 lines
--- Comment #14 from Ethan Grammatikidis <[email protected]> 2009-06-09 21:04:05 --- Hullo. I ran into this the other day, & can report the bug is still present in 2.6.30-rc8.
Could it be bug #13399 instead of this one?
[ This one should really be already fixed. ]
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #15 from Ethan Grammatikidis <[email protected]> 2009-06-09 21:24:49 --- Ah, I can give chipset info:
$ lspci|grep 'IDE\|SATA' 00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02) 03:00.0 SATA controller: JMicron Technologies, Inc. 20360/20363 Serial ATA Controller (rev 03) 03:00.1 IDE interface: JMicron Technologies, Inc. 20360/20363 Serial ATA Controller (rev 03)
The cable is 40-wire.
I haven't tried the patch. If I feel like opening up my computer again in a few days I may try it.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #16 from Bartlomiej Zolnierkiewicz <[email protected]> 2009-06-10 11:15:27 ---
Quoted 12 lines · On Tuesday 09 June 2009 23:04:07 [email protected] wrote:
http://bugzilla.kernel.org/show_bug.cgi?id=13345
Ethan Grammatikidis <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Quoted 3 lines
--- Comment #14 from Ethan Grammatikidis <[email protected]> 2009-06-09 21:04:05 --- Hullo. I ran into this the other day, & can report the bug is still present in 2.6.30-rc8.
Could it be bug #13399 instead of this one?
[ This one should really be already fixed. ]
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #17 from Ethan Grammatikidis <[email protected]> 2009-06-10 14:34:06 ---
Quoted 3 lines
Could it be bug #13399 instead of this one?
[ This one should really be already fixed. ]
It could well be, by the symptoms. I can't tell the difference. It's not fixed for that old drive of mine though. :)
A different problem with the dvd-rom drives was fixed between rc7 and rc8. Anything accessing my newer drive would freeze in an uninteruptable wait for IO under rc7, but works fine with rc8.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #18 from Ethan Grammatikidis <[email protected]> 2009-06-12 00:49:17 ---
Correction: newer drive does not work fine. With 2 days uptime processes accessing the drive freeze in an uninteruptable wait for IO. It's a buggy drive to be sure, but in 2.6.24/26 the worst it did was spam dmesg, & back in 2.6.15 it would stop working but not cause processes to freeze in an unkillable state.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
--- Comment #19 from Ethan Grammatikidis <[email protected]> 2009-06-20 19:58:00 --- 2.6.30 final fixes my issue with my newer drive.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |CODE_FIXSignature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
[Bug 13345] panic when reading data from IDE CDROM with >= 2.6.29 kernels
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=13345
Alan <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.