DVD drive errors in hardy

Bug #224561 reported by lesshaste
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I upgraded from Gutsy to Hardy and now have a number of problems. The first is that in any VT I get (copied from dmesg)

[ 23.125524] ide0: BM-DMA at 0xf300-0xf307, BIOS settings: hdaio, hdbio
[ 24.531732] hda: BENQ DVD DD DW1640, ATAPI CD/DVD-ROM drive
[ 24.531767] hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
[ 24.532076] hda: UDMA/33 mode selected
[ 24.532656] hda: task_in_intr: status=0x51 { DriveReady SeekComplete Error }
[ 24.532662] hda: task_in_intr: error=0x04 { AbortedCommand }
[ 35.863928] hda: status error: status=0x59 { DriveReady SeekComplete DataRequest Error }
[ 35.863935] hda: status error: error=0x00 { }
[ 35.863940] hda: drive not ready for command
[ 35.863944] hda: ATAPI CD-ROM drive, 0kB Cache
[ 35.863983] hda: status error: status=0x59 { DriveReady SeekComplete DataRequest Error }

and then the errors are repeated over and over again

If I reboot using the old 2.6.22 kernel (instead of the hardy 2.6.24 kernel) these errors go away.

For comparison this is what the hda lines in dmesg look like in 2.6.22

[ 22.630386] ide0: BM-DMA at 0xf300-0xf307, BIOS settings: hda:pio, hdb:pio
[ 23.365668] hda: BENQ DVD DD DW1640, ATAPI CD/DVD-ROM drive
[ 24.036264] hda: selected mode 0x42
[ 35.217427] hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)

So it looks like a kernel driver problem at first sight.

Raphael

Revision history for this message
lesshaste (clifford-cs) wrote :
Revision history for this message
Alessio Igor Bogani (abogani) wrote :

It should be assigned to kernel.

Revision history for this message
lesshaste (clifford-cs) wrote :

I don't know if this is useful information but I can stop the messages by resetting with

hdparm -w /dev/hda

that outputs

hda: DMA disabled
hda: ATAPI reset complete

in dmesg and the error messages stop appearing.

Raphael

Revision history for this message
lesshaste (clifford-cs) wrote :

Assigning to kernel team as requested.

Revision history for this message
floid (jkanowitz) wrote :

This also turns up when trying the 8.04 release livecd on a Compaq SR1611NX desktop with its stock HP dvd640 DVD-RW, aka the "dvd640i" due to HP's confused naming conventions for those drives. The SR1611NX is a socket 939 Athlon 64 machine using an ATI "Radeon Xpress 200" chipset, with the SB400 driving the SATA and PATA interfaces.

If anyone cares about the particular drive, 6.06LTS's kernel 2.6.15-51-k7 identifies it as:

[17179577.056000] ide1: BM-DMA at 0xf908-0xf90f, BIOS settings: hdc:pio, hdd:pio
[17179578.768000] hdc: HP DVD Writer 640, ATAPI CD/DVD-ROM drive
[17179579.472000] hdc: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(33)

ide_info /dev/hdc:
MODEL="HP DVD Writer 640"
FW_REV="QS12"
SERIAL_NO="CNLW03839C"

For a livecd user, this means getting dumped to a busybox prompt on the initramfs when attempting a live session because the optical can't be accessed.

Revision history for this message
Alessio Igor Bogani (abogani) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it, because your description does not yet have enough information.

Please include the following additional information, if you have not already done so (pay attention to lspci's additional options), as required by the Ubuntu Kernel Team:
1. Please include the output of the command "uname -a" in your next response. It should be one, long line of text which includes the exact kernel version you're running, as well as the CPU architecture.
2. Please run the command "dmesg > dmesg.log" after a fresh boot and attach the resulting file "dmesg.log" to this bug report.
3. Please run the command "sudo lspci -vvnn > lspci-vvnn.log" and attach the resulting file "lspci-vvnn.log" to this bug report.

For your reference, the full description of procedures for kernel-related bug reports is available at [WWW] https://wiki.ubuntu.com/KernelTeamBugPolicies Thanks in advance!

Changed in linux:
assignee: nobody → ubuntu-kernel-team
status: New → Incomplete
Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

I've got the same problem with a BENQ drive.

uname -a: Linux sana 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

also here is the lspci output

Revision history for this message
floid (jkanowitz) wrote :

Here's my contribution, from the HP-Compaq SR1611NX running:
Linux roberts 2.6.24-18-generic #1 SMP Wed May 28 20:27:26 UTC 2008 i686 GNU/Linux

(I know, it's a point release or two behind, but with the kernel changelogs only indicating ABI bumps without 'real' changes I haven't seen a reason to reboot. Are those for undisclosed security patches or are they just catch-up noise?)

Revision history for this message
floid (jkanowitz) wrote :

PCI device tree for HP-Compaq SR1611NX.

For a convenient hardware summary, HP documents the motherboard at http://preview.tinyurl.com/6qhzk5
As noted, the DVD-RW hardware is not necessarily consistent even under one model number (for the drive, let alone the machine).

Revision history for this message
Colin Ian King (colin-king) wrote :

Hi,

My first line of action is to add all_generic_ide to the kernel boot parameters and see if this helps.

Colin

Revision history for this message
floid (jkanowitz) wrote :

I tried that at the time of the original Hardy release (so with the original release kernel) and seem to recall that it both didn't help with making the optical work and may not have played nicely with the SB400 in that system in some other way. For completeness I'll try to test it again shortly.

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

I just tried ide_generic_all, but my system failed to boot properly as apparently my hard drive doesn't like it.

Is there something which can be done to expedite this bug? My optical drive is now useless after upgrading to Hardy, and evidently I am not alone.

Changed in linux:
status: Incomplete → Confirmed
status: Confirmed → Incomplete
Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

(Is someone still triaging this bug?)

Revision history for this message
Colin Ian King (colin-king) wrote :

Hi there,

It may be worth while trying hda=nodma to help try to corner the issue here.

Revision history for this message
MenTaLguY (mental-deactivatedaccount) wrote :

I tried both hda=nodma at boot, and hdparm -d0 /dev/hda afterwards; neither helped.

Changed in linux:
status: Incomplete → Confirmed
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
floid (jkanowitz) wrote :

2.6.27 (linux-image-2.6.27-2-generic_2.6.27-2.3_i386.deb) resolves my issue with the "HP DVD Writer 640" "QS12". Thank you!

Revision history for this message
floid (jkanowitz) wrote :

After being forced to back down to 2.6.26-5-generic for VMWare, I can confirm that 2.6.26-5 did not exhibit the bug either.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Thanks for the feedback. I'm going to tentatively mark this "Fix Released" for Intrepid.

lesshaste, since you are the original bug reporter, if this is not resolved for you with the newer 2.6.27 kernel please feel free to preopen this by setting the status back to "New". Thanks.

Changed in linux:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.