[Bug 627147] New: Kernels crash/hang with inserted CD/DVD
http://bugzilla.novell.com/show_bug.cgi?id=627147 http://bugzilla.novell.com/show_bug.cgi?id=627147#c0 Summary: Kernels crash/hang with inserted CD/DVD Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i586 OS/Version: openSUSE 11.3 Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: johannesobermayr@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8 kernel-default-2.6.31.12-0.2.1.i586 (openSUSE:11.2:Update) works properly without any crashes or hangs or sth. in /var/log/messages. So I can exclude a hardware failure ... kernel-desktop-2.6.34-12.3.i586 (openSUSE:11.3) and kernel-pae-2.6.35-rc6.14.1.i586 (Kernel:HEAD) Both kernels crash/hang when inserting a CD or at boot when a CD is inserted. If you say to me how I can remote log my Laptop (only USB/LPT ports) with a USB->Serial->LPT cable I will provide more information ... /var/log/messages: kernel: [ 2709.053509] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen kernel: [ 2709.053519] ata2.00: ST_FIRST: !(DRQ|ERR|DF) kernel: [ 2709.053527] sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00 kernel: [ 2709.053556] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 kernel: [ 2709.053560] res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) kernel: [ 2709.053569] ata2.00: status: { DRDY } kernel: [ 2709.053610] ata2: soft resetting link kernel: [ 2709.232470] ata2.00: configured for MWDMA2 kernel: [ 2709.232981] ata2: EH complete <snip> kernel: [ 7358.053121] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen kernel: [ 7358.053131] ata2.00: ST_FIRST: !(DRQ|ERR|DF) kernel: [ 7358.053139] sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00 kernel: [ 7358.053168] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 kernel: [ 7358.053172] res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) kernel: [ 7358.053181] ata2.00: status: { DRDY } kernel: [ 7358.053222] ata2: soft resetting link kernel: [ 7358.232491] ata2.00: configured for MWDMA2 kernel: [ 7358.233096] ata2: EH complete kernel: [ 8096.062943] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen kernel: [ 8096.062953] ata2.00: ST_FIRST: !(DRQ|ERR|DF) kernel: [ 8096.062963] sr 1:0:0:0: CDB: Get event status notification: 4a 01 00 00 10 00 00 00 08 00 kernel: [ 8096.062997] ata2.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 0 pio 16392 in kernel: [ 8096.063001] res 50/00:00:00:08:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) kernel: [ 8096.063010] ata2.00: status: { DRDY } kernel: [ 8096.063051] ata2: soft resetting link kernel: [ 8096.240480] ata2.00: configured for MWDMA2 kernel: [ 8096.241080] ata2: EH complete kernel: [ 8265.053610] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen kernel: [ 8265.053620] ata2.00: ST_FIRST: !(DRQ|ERR|DF) kernel: [ 8265.053628] sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00 kernel: [ 8265.053657] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 kernel: [ 8265.053661] res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) kernel: [ 8265.053670] ata2.00: status: { DRDY } kernel: [ 8265.053711] ata2: soft resetting link kernel: [ 8265.232462] ata2.00: configured for MWDMA2 kernel: [ 8265.232969] ata2: EH complete kernel: [ 9339.057024] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen kernel: [ 9339.057034] ata2.00: ST_FIRST: !(DRQ|ERR|DF) kernel: [ 9339.057042] sr 1:0:0:0: CDB: Prevent/Allow Medium Removal: 1e 00 00 00 00 00 kernel: [ 9339.057072] ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 kernel: [ 9339.057075] res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x2 (HSM violation) kernel: [ 9339.057084] ata2.00: status: { DRDY } kernel: [ 9339.057126] ata2: soft resetting link kernel: [ 9339.228525] ata2.00: configured for MWDMA2 kernel: [ 9339.229388] ata2: EH complete Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c1
Greg Kroah-Hartman
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c2
Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c
Lee Duncan
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c3
--- Comment #3 from Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c4
--- Comment #4 from Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c5
Joey Lee
Created an attachment (id=480206) --> (http://bugzilla.novell.com/attachment.cgi?id=480206) [details] netconsole log of crash
Still valid on openSUSE:12.1:Update ...
Johannes, Please kindly give me your kernel version for openSUSE:12.1:Update, I want to parser the oops though markup_oops. Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c6
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c7
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c8
Johannes Obermayr
+ run command the following command to disable DMA (assume /dev/sdc is your CDROM), then insert a CD to test: hdparm -d0 /dev/sdc
hdparm -d0 /dev/sr0 ~^~ crash - see attachment
+ add the following kernel parameter to /boot/grub/menu.lst for disable DMA of CDROM when system boot, then insert a CD to test: libata.dma=1
works (also "jumping" in SVCD) - just a few lines in dmesg: [ 176.733393] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 176.733460] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current] [ 176.733504] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track [ 176.733558] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 04 00 00 00 02 00 [ 176.733723] end_request: I/O error, dev sr0, sector 4096 [ 176.733759] Buffer I/O error on device sr0, logical block 512 [ 176.818382] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 176.818442] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current] [ 176.818494] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track [ 176.818545] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 04 00 00 00 02 00 [ 176.818709] end_request: I/O error, dev sr0, sector 4096 [ 176.818746] Buffer I/O error on device sr0, logical block 512
+ add the following kernel parameter to /boot/grub/menu.lst for disable DMA of all PATA and SATA when system boot, then insert a CD to test: libata.dma=0
system does not boot and hangs / freezes at ~ 3 - 4 s after pressing 'Enter' in grub. SysRq does not work; Crtl+Alt+Enter reboots system. -> cannot provide a [valid] log. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c9
--- Comment #9 from Joey Lee
+ add the following kernel parameter to /boot/grub/menu.lst for disable DMA of CDROM when system boot, then insert a CD to test: libata.dma=1
works (also "jumping" in SVCD) - just a few lines in dmesg:
[ 176.733393] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 176.733460] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current] [ 176.733504] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track [ 176.733558] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 04 00 00 00 02 00 [ 176.733723] end_request: I/O error, dev sr0, sector 4096 [ 176.733759] Buffer I/O error on device sr0, logical block 512 [ 176.818382] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 176.818442] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current] [ 176.818494] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track [ 176.818545] sr 1:0:0:0: [sr0] CDB: Read(10): 28 00 00 00 04 00 00 00 02 00 [ 176.818709] end_request: I/O error, dev sr0, sector 4096 [ 176.818746] Buffer I/O error on device sr0, logical block 512
OK, if the system didn't crash after disable DMA of ATAPI (CDROM), then that means I need dig more code of ATAPI driver with DMA part. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c10
--- Comment #10 from Joey Lee
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8
kernel-default-2.6.31.12-0.2.1.i586 (openSUSE:11.2:Update) works properly without any crashes or hangs or sth. in /var/log/messages. So I can exclude a hardware failure ...
kernel-desktop-2.6.34-12.3.i586 (openSUSE:11.3) and kernel-pae-2.6.35-rc6.14.1.i586 (Kernel:HEAD)
Both kernels crash/hang when inserting a CD or at boot when a CD is inserted.
Something changed between 2.6.31 with 2.6.34 causes problem (assume this is kernel issue). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c11
Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c12
--- Comment #12 from Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c13
Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c14
Joey Lee
Created an attachment (id=480991) --> (http://bugzilla.novell.com/attachment.cgi?id=480991) [details] full dmesg with parameter libata.dma=1
Sorry for I causes you confused. Please remove any libata.dma parameter then attach dmesg and lsmod. Thanks a lot! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c15
--- Comment #15 from Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c16
--- Comment #16 from Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c17
--- Comment #17 from Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c18
Johannes Obermayr
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c19
Joey Lee
Created an attachment (id=481282) --> (http://bugzilla.novell.com/attachment.cgi?id=481282) [details] dmesg without additional parameters
The bug is weird. Kernel does not crash on all three configurations anymore.
But kernel hangs at an early stage if CD drive is closed on all three configurations. If CD drive is opened during boot (grub -> boot -> KDE) it seems all works fine except the two messages in dmesg.
Yes, strange! Per your dmesg, your machine still using pata_via but not sata_via. So, your current situation is with pata but not sata.
Is it related to 'hdparm -d0 /dev/sr0'?
Please try 'hdparm -d1 /dev/sr0' to set DMA flag back to enable. And, I am not sure originally you used sata or pata driver when you report this bug? There doesn't have dmesg for check when you report this issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c20
--- Comment #20 from Joey Lee
https://bugzilla.novell.com/show_bug.cgi?id=627147
https://bugzilla.novell.com/show_bug.cgi?id=627147#c21
Jeffrey Cheung
participants (1)
-
bugzilla_noreply@novell.com