impossible to read a dvd

Bug #42083 reported by humufr
14
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I have a Thinkpad z60m and I cna use the dvd-rw but I can't read any dvd. Each time I tried with mplayer, kaffeine or totem-xine I have a lot message from the kernel like:

[4298917.367000] printk: 573 messages suppressed.
[4298917.367000] Buffer I/O error on device sr0, logical block 5062
[4298917.378000] end_request: I/O error, dev sr0, sector 20248
[4298917.389000] end_request: I/O error, dev sr0, sector 20256
[4298917.400000] end_request: I/O error, dev sr0, sector 20256
[4298917.411000] end_request: I/O error, dev sr0, sector 20264

The strange thing is I can mount and check at the data on the dvd without any problem.

I have libdvdcss install and the player began to read the dvd until it's freeze and I give me the message from the kernel.

The dvd is using sata so perhaps it's link to the problem. It's impossible to turn on the dma on mu HD and dvd:

~$ sudo hdparm -d1 /dev/sda
Password:

/dev/sda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device

sudo hdparm -d1 /dev/sr0

/dev/sr0:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device

thanks

Tags: dvd thinkpad
Revision history for this message
humufr (humufr-deactivatedaccount) wrote :

I tried the different solution found on internet to turn off the ide system (thinkwiki page on sata problem and no dma)

so I tried:

to pass the parameter:

ide1=noprobe libata.atapi_enabled=1

for the kernel in menu.lst, the second options is not known.

I place them in: /etc/modprobe.d/thinkpad
options libata atapi_enabled=1
options ide ide1=noprobe

and I rebuild the initrd with:
sudo dpkg-reconfigure linux-image-`uname -r`

but I have always the same answer with hdparm:

sudo hdparm -tT /dev/sr0
Password:

/dev/sr0:
 Timing cached reads: 2568 MB in 2.00 seconds = 1283.55 MB/sec
 Timing buffered disk reads: 8 MB in 3.49 seconds = 2.29 MB/sec

The timing buffered disk show clearly that the dma is not enabled on my dvd player.

Revision history for this message
humufr (humufr-deactivatedaccount) wrote :

Like told before I test the different options to enable the dma mode. I even try the 2.6.15-27 kernel version and same problem. One thing I saw in the dmesg i:

[4294667.296000] Kernel command line: root=/dev/sda6 ro quiet splash combined_mo
de=libata acpi_sleep=s3_bios ide1=noprobe libata.atapi_enabled=1 pci=routeirq ir
qpoll
[4294667.296000] ide_setup: ide1=noprobe
[4294667.296000] Unknown boot option `libata.atapi_enabled=1': ignoring

this is a problem to have a workaround at my problem with the dvd. Could it be possible to have this option enable?

Revision history for this message
humufr (humufr-deactivatedaccount) wrote :

it seems that none is interesting in this bug but me doesn't matter I'll give the solution tat you probably know but... Combined mode seems to be a little bit a mess and a patch exist to take this in count in the kernel 2.6.1. I'll try to compile a working 2.6.16 kernel for dapper (it's a shame that this kernel is not in dapper especially with the two month delay even if it's not the default kernel). Perhaps that will be possible to do a backport of this patch for the dapper kernel (and it seems that to have it working You'll need to enable ATAPI support for ata_piix in
include/linux/libata.h

Change:
#undef ATA_ENABLE_ATAPI

into
#define ATA_ENABLE_ATAPI

I don't know if it's done or not.

you can close this bug (even if I think that this bug is a major bug due to the number of new laptop with this kind of hardware).

commit 2bd0fa3b62e8565a80f9535e0f2bd51bba46213f
Author: Jesse Barnes <email address hidden>
Date: Tue Dec 13 03:05:03 2005 -0500

    [PATCH] add boot option to control Intel SATA/PATA combined mode

    Combined mode sucks. Especially when both libata and the legacy IDE
    drivers try to drive ports on the same device, since that makes DMA
    rather difficult.

    This patch addresses the problem by allowing the user to control which
    driver binds to the ports in a combined mode configuration. In many
    cases, they'll probably want the libata driver to control both ports
    since it can use DMA for talking with ATAPI devices (when
    libata.atapi_enabled=1 of course). It also allows the user to get old
    school behavior by letting the legacy IDE driver bind to both ports.
    But neither is forced, the patch doesn't change current behavior unless
    one of combined_mode=ide or combined_mode=libata is passed
    on the boot line. Either of those options may require you to access
    your devices via different device nodes (/dev/hd* in the ide case
    and /dev/sd* in the libata case), though of course if you have udev
    installed nicely you may not notice anything. :)

    Let me know if the documentation is too cryptic, I'd be happy to expand
    on it if necessary. I think most users will want to boot with
    'combined_mode=libata' and add 'options libata atapi_enabled=1'
    to their modules.conf to get good DVD playing and disk behavior
    (haven't tested CD or DVD writing though).

    I'd much rather things behave sanely by default (i.e. DMA for devices on
    both ports), but apparently that's difficult given the various chip
    bugs and hardware configs out there (not to mention that people's
    drives may suddenly change from /dev/hdc to /dev/sdb), so this boot
    option may be the correct long term fix.

    Signed-off-by: Jesse Barnes <email address hidden>
    Signed-off-by: Jeff Garzik <email address hidden>

Revision history for this message
Alexandre Otto Strube (surak) wrote :

the problem is that the bug is posted against ubuntu, and not on kernel. I'll reassign to the correct people now.

Revision history for this message
Stephen Shirley (kormat) wrote :

I'm getting the exact same issue on both my thinkpad t43p and my inspiron 9300. I haven't tried the above tweaking yet, will post back when i know if it works or not for me. Possibly related is that i've been unable to write cds on the t43p also.

Revision history for this message
Stephen Shirley (kormat) wrote :

I've just tested dvd playback and cd-writing on edgy on the inspiron 9300, and both worked perfectly.

marcogoni (cogoni)
Changed in linux-source-2.6.15:
status: New → Fix Released
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.