No DMA for DVD-burner on ULi 1695 chipset

Bug #328053 reported by Carl Englund
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Intrepid by Montblanc
Nominated for Jaunty by Montblanc
Nominated for Karmic by Montblanc

Bug Description

Binary package hint: linux-image

Using Ubuntu 8.10
linux-image-2.6.27-11-generic

Expected to be able to burn CDs and DVDs without problems.
Seemingly burn works ok but eventually get failure message about system being too slow. Burned discs won't work properly.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
LsUsb:
 Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Package: linux-image-2.6.27-11-generic 2.6.27-11.27
ProcCmdLine: User Name=/dev/md0 ro quiet splash
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=sv_FI.UTF-8
ProcVersionSignature: Ubuntu 2.6.27-11.27-generic
SourcePackage: linux

Tags: apport-bug
Revision history for this message
Carl Englund (englundc) wrote :
Revision history for this message
323232 (323232) wrote :

Same with Jaunty 2.6.28-11.38

DVD playing is extremely choppy / almost impossible!
dsmeg gives te following output:
[ 4.204372] ata2.00: ATAPI: SONY DVD RW DW-D56A, PFS3, max UDMA/33
[ 4.204389] ata2.00: WARNING: ATAPI DMA disabled for reliablity issues. It can be enabled
[ 4.204392] ata2.00: WARNING: via pata_ali.atapi_dma modparam or corresponding sysfs node.

Revision history for this message
323232 (323232) wrote :
Download full text (3.2 KiB)

Also tried
1) "options pata_ali atapi_dma=1" in /etc/modprobe.d/options
2) "echo 1 > /sys/module/pata_ali/parameters/atapi_dma" in /etc/rc.local
3) "pata_ali.atapi_dma=1" after defoptions in /boot/grub/menu.lst

Al give similar output like:

[ 0.000000] BIOS-e820: 000000001df70000 - 000000001df7f000 (ACPI data)
[ 0.000000] modified: 000000001df70000 - 000000001df7f000 (ACPI data)
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] PERCPU: Allocating 45056 bytes of per cpu data
[ 0.000000] Kernel command line: root=UUID=19cbbabb-8fed-43fc-acd2-5b517c381033 ro rootflags=data=writeback quiet noresume pata_ali.atapi_dma=1
[ 0.004000] Memory: 468508k/490944k available (4127k kernel code, 21788k reserved, 2208k data, 532k init, 0k highmem)
[ 0.004000] .data : 0xc0507dff - 0xc072fe60 (2208 kB)
[ 0.456574] ACPI: EC: GPE = 0x18, I/O: command/status = 0x66, data = 0x62
[ 0.465004] libata version 3.00 loaded.
[ 1.701602] pata_ali 0000:00:0f.0: can't derive routing for PCI INT A
[ 1.701848] scsi0 : pata_ali
[ 1.702058] scsi1 : pata_ali
[ 1.703159] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x8080 irq 14
[ 1.703163] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x8088 irq 15
[ 1.864536] ata1.00: ATA-6: HTS726060M9AT00, MH4OA68A, max UDMA/100
[ 1.864539] ata1.00: 117210240 sectors, multi 16: LBA48
[ 1.880485] ata1.00: configured for UDMA/100
[ 2.044286] ata2.00: ATAPI: SONY DVD RW DW-D56A, PFS3, max UDMA/33
[ 2.060249] ata2.00: configured for UDMA/33
[ 2.340125] Write protecting the kernel read-only data: 1532k
[ 3.461927] EXT3-fs: mounted filesystem with writeback data mode.
[ 120.818109] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 120.818125] ata2.00: cmd a0/01:00:00:00:10/00:00:00:00:00/a0 tag 0 dma 4096 in
[ 120.818132] ata2.00: status: { DRDY }
[ 125.820343] ata2: link is slow to respond, please be patient (ready=0)
[ 130.820133] ata2: device not ready (errno=-16), forcing hardreset
[ 130.820159] ata2: soft resetting link
[ 131.000852] ata2.00: configured for UDMA/33
[ 132.725367] ata2: EH complete
[ 162.817039] ata2.00: limiting speed to UDMA/25:PIO4
[ 162.817047] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 162.817060] ata2.00: cmd a0/01:00:00:00:10/00:00:00:00:00/a0 tag 0 dma 4096 in
[ 162.817066] ata2.00: status: { DRDY }
[ 167.840298] ata2: link is slow to respond, please be patient (ready=0)
[ 172.848234] ata2: device not ready (errno=-16), forcing hardreset
[ 172.848311] ata2: soft resetting link
[ 173.014186] ata2.00: configured for UDMA/25
[ 174.362277] ata2: EH complete
[ 204.817606] ata2.00: limiting speed to PIO4
[ 204.817664] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 204.817768] ata2.00: cmd a0/01:00:00:00:10/00:00:00:00:00/a0 tag 0 dma 4096 in
[ 204.817825] ata2.00: status: { DRDY }
[ 209.856278] ata2: link is slow to respond, please be patient (ready=0)
[ 214.864261] ata2: device not ready (errno=-16), forcing hardreset
[ 214.864336] ata2: soft resetting link
[ 215.033958] ata2.00: configured for PIO4
[ 216...

Read more...

Revision history for this message
Dimitris Kalamaras (dimitris-kalamaras) wrote :

Hi,

I had similar speed problems (due to missing dma setting) in my Ubuntu Jaunty installation with my 2 x ATAPI LG DVD Drives on an ASUS A8R32-MVP Deluxe (ULi M1575 Southbridge). I tried these workarounds:

Added
1) "options pata_ali atapi_dma=1" in /etc/modprobe.d/options (new file for me!)
2) "echo 1 > /sys/module/pata_ali/parameters/atapi_dma" in /etc/rc.local

and finally I added
 "pata_ali atapi_dma=1" to "/etc/initramfs-tools/modules"

All these to be sure! :)

After the reboot (the dmesg messages still appear!) the problem was finally solved.
Now I can watch and write DVDs at full speed.

I added a similar comment in an older but similar bug report, in case it helps somebody:
 https://bugs.launchpad.net/ubuntu/+bug/292142

Revision history for this message
Andy Whitcroft (apw) wrote :

This is not a bug in the linux-meta package, moving to the linux package.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Montblanc (montblanc) wrote :

I can confirm this regression on Ali (Uli) M1575 south bridge too. The "pata_ali" workaround just prevented system hangs on Intrepid, in my case. I'm currently running Jaunty and I don't need the pata_ali workaround anymore, but I'm still getting unacceptable speeds, DMA or not. I even tried upgrading the kernel at no avail. Please, take a look at these related bugs:

https://bugs.launchpad.net/ubuntu/+bug/292142
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/31709

I'm very unhappy knowing that I will have these issues on Karmic stable too, but I'm attaching some outputs anyway, hoping to help finally fixing this bug. If you need more info, please just tell me.

~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty

~$ uname -a
Linux ubuntu 2.6.31-020631-generic #020631 SMP Thu Sep 10 22:34:46 UTC 2009 i686 GNU/Linux

Revision history for this message
Montblanc (montblanc) wrote :
Revision history for this message
Montblanc (montblanc) wrote :
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
GBZ (gianbi3) wrote :

Same problem: MB ASRock 939 Dual Sata2 with chipset Uli, DVD playing is impossible. Please try to solve this bug cause I can't use Ubuntu with this problem.

Revision history for this message
zzztop (opps234) wrote :

 hey just wanted to say Dimitris Kalamaras fix worked for me. I`m using 9.04 on asrock Dual Sata2. This was a winger for me as I was at my last shot to fix it and I have no idea what exactly I did but it works.

 Added
1) "options pata_ali atapi_dma=1" in /etc/modprobe.d/options (new file for me!)
2) "echo 1 > /sys/module/pata_ali/parameters/atapi_dma" in /etc/rc.local

  Thanks alot Dimitris Kalamaras and I hope this works for others.

Revision history for this message
Igor Wojnicki (wojnicki) wrote :

Mind that this bug report is a duplicate.

Second, enablig DMA as indicated via /sys filesystem works for some ALI chipsets and doesn't work for others - it doesn't work for mine :(

For more comments see #228302

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.