DMA doesn't work in hardy on T43p dvd drive

Bug #70685 reported by Stephen Shirley
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-2.6.24-10-generic

Reading from the dvd drive in edgy is painfully slow. dd (invoked as: dd if=/dev/scd0 of=/dev/null bs=100M count=1) reports a read-speed of ~1.8MB/s. The same problem existed in dapper, and i think it's related to bug #42083.

I've tried booting with combined_mode=ide, combined_mode=libata, neither made any difference, nor did passing the atapi_enabled=1 parameter to libata. Most of the instructions i've found on the net talk about getting libata/ata_piix to handle the sata controller instead of ide-generic, but in my case that's already the case, and DMA still doesn't work, despite dmesg claiming the drive is set up for UDMA/33. DMA works fine for the hard drive though.

Software:
Edgy release
linux-image-2.6.17-10-generic

Hardware:
Ibm t43p laptop
Intel 82801FBM (ICH6M) SATA Controller. Pciid 8086:2653

Also tested under Hardy:
root@kiki:~# hdparm /dev/scd0

/dev/scd0:
 IO_support = 0 (default)
16-bit)
 HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
 HDIO_GET_DMA failed: Inappropriate ioctl for device
 HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
 readonly = 0 (off)
 readahead = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device
root@kiki:~# hdparm -d1 /dev/scd0

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

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

Here's the output of lspci:

diamond@squee:~$ sudo lspci -s 00:1f.2 -nv
00:1f.2 0101: 8086:2653 (rev 03) (prog-if 80)
        Subsystem: 1014:056a
        Flags: bus master, 66MHz, medium devsel, latency 0
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at <unassigned>
        I/O ports at 18c0 [size=16]
        Capabilities: [70] Power Management version 2

and i've attached the dmesg output from the 2.6.19-2-generic kernel from feisty.

Revision history for this message
Matthew Woerly (nattgew) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you in the latest version of Ubuntu? Thanks in advance.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the linux-source-2.6.17 Edgy Eft kernel task.

Changed in linux-source-2.6.17:
status: New → Invalid
Changed in linux:
status: New → Incomplete
Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

I can reproduce this in ubuntu 8.04 with my T43.

Changed in linux:
status: Incomplete → Confirmed
description: updated
Revision history for this message
Duane Chamblee (duanec-nc) wrote :

I have the same problem with 8.04 and my T42...
I don't think the HD or the CD/DVD are working correctly.

/dev/sda:
 IO_support = 0 (default)
16-bit)
 HDIO_GET_UNMASKINTR failed: Inappropriate ioctl for device
 HDIO_GET_DMA failed: Inappropriate ioctl for device
 HDIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
 readonly = 0 (off)
 readahead = 256 (on)
 geometry = 4864/255/63, sectors = 78140160, start = 0

/dev/sdb:
 HDIO_GET_32BIT failed: Invalid argument
 HDIO_GET_UNMASKINTR failed: Invalid argument
 HDIO_GET_DMA failed: Invalid argument
 HDIO_GET_KEEPSETTINGS failed: Invalid argument
 readonly = 0 (off)
 readahead = 256 (on)
 geometry = 1024/0/62, sectors = 0, start = 0

Revision history for this message
Duane Chamblee (duanec-nc) wrote :

I might be wrong...
dmesg shows
...
[ 1.112011] ata1.00: configured for UDMA/100
[ 1.383809] ata2.00: configured for UDMA/33
...
so they might be correct,
I was just checking hdparm and noticed all the "failed:" messages.

Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Please don't remove tag 'edgy-close', I added it for a reason.

Revision history for this message
Philipp Enoeckl (philofive) wrote :

same bug here on a T43 / Ubuntu 8.04. I can remember everything having worked in 5.04

i just give you the whole -maybe- relevant output of dmesg, maybe it helps

 15.559795] scsi0 : ata_piix
[ 15.559945] scsi1 : ata_piix
[ 15.560896] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
[ 15.560899] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1818 irq 15
[ 15.680319] ata1.00: ATA-6: HTS541040G9AT00, MB2IA60A, max UDMA/100
[ 15.680322] ata1.00: 78140160 sectors, multi 16: LBA
[ 15.680325] ata1.00: applying bridge limits
[ 15.682223] ata1.00: configured for UDMA/100
[ 15.849137] ata2.00: ATAPI: UJDA765 DVD/CDRW, 1.02, max UDMA/33
[ 15.987592] ata2.00: configured for UDMA/33
[ 15.987712] scsi 0:0:0:0: Direct-Access ATA HTS541040G9AT00 MB2I PQ: 0 ANSI: 5
[ 15.989228] scsi 1:0:0:0: CD-ROM MATSHITA UJDA765 DVD/CDRW 1.02 PQ: 0 ANSI: 5
[ 16.001156] Driver 'sd' needs updating - please use bus_type methods
[ 16.001226] sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
[ 16.001238] sd 0:0:0:0: [sda] Write Protect is off
[ 16.001241] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 16.001256] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 16.001301] sd 0:0:0:0: [sda] 78140160 512-byte hardware sectors (40008 MB)
[ 16.001311] sd 0:0:0:0: [sda] Write Protect is off
[ 16.001313] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 16.001327] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 16.001331] sda:<4>Driver 'sr' needs updating - please use bus_type methods
[ 16.026980] sda1 sda2 sda3 sda4
   16.068069] sd 0:0:0:0: [sda] Attached SCSI disk
[ 16.073455] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 16.073475] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 16.074120] sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
[ 16.074123] Uniform CD-ROM driver Revision: 3.20
[ 16.074161] sr 1:0:0:0: Attached scsi CD-ROM sr0

Revision history for this message
Philipp Enoeckl (philofive) wrote :

overlooked, there is an attchament already, sorry!

Revision history for this message
Philipp Enoeckl (philofive) wrote :

overlooked, there is an attachment already, sorry!

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.

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.