still cannot enable DMA for IDE disk

Bug #155511 reported by pion
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

after upgrading from feisty to gutsy, the system performance is slow.
Apparently DMA access to the hard disk is disabled:

$ sudo hdparm /dev/hda
/dev/hda:
 multcount = 0 (off)
 IO_support = 1 (32-bit)
 unmaskirq = 0 (off)
 using_dma = 0 (off)
 keepsettings = 0 (off)
 readonly = 0 (off)
 readahead = 256 (on)
 geometry = 65535/16/63, sectors = 78126048, start = 0

enabeling fails:

bassler@grgawlan:~$ sudo hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma = 0 (off)

inserting "piix" in "/etc/modules.conf" did not solve the problem.
$cat /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

piix
lp
mousedev
psmouse
fuse

dmesg claims:

[ 6.852000] ata_piix 0000:00:1f.1: version 2.11
[ 6.852000] PCI: Enabling device 0000:00:1f.1 (0005 -> 0007)
[ 6.852000] ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11
[ 6.852000] ata_piix 0000:00:1f.1: 0x1F0 IDE port busy
[ 6.852000] ata_piix 0000:00:1f.1: 0x170 IDE port busy
[ 6.856000] ata_piix 0000:00:1f.1: no available legacy port

/etc/fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda5 -- converted during upgrade to edgy
UUID=e25af425-def8-415b-99cc-439dfc53ea17 / xfs defaults 0 1
# /dev/hda6 -- converted during upgrade to edgy
UUID=b4f18760-50cd-4bf1-887d-d3d134d99ae0 /home xfs defaults 0 2
# /dev/hda7 -- converted during upgrade to edgy
UUID=3c6dad0f-979c-4372-8e54-08fe798ec55a /local xfs defaults 0 2
# /dev/hda1 -- converted during upgrade to edgy
UUID=ACC00865C008385A /media/hda1 ntfs defaults 0 0
# /dev/hda8 -- manually edited to enable swap
#UUID=c33d3678-303c-4cad-a498-d461a5bd76fc none swap sw 0 0
/dev/hda8 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

lspci, lsmod, complete dmesg follows
...

Tags: cft-2.6.27
Revision history for this message
pion (n-bassler) wrote :
Revision history for this message
pion (n-bassler) wrote :
Revision history for this message
pion (n-bassler) wrote :
Revision history for this message
pion (n-bassler) wrote :
Revision history for this message
pion (n-bassler) wrote :
Revision history for this message
pion (n-bassler) wrote :

just wanted to add:

it is concerning Release 7.10 (gutsy), with Kernel 2.6.22-14-generic
running on a "Zepto Znote 120SL" laptop

.

Revision history for this message
Andrea76 (andrea76) wrote :

It doesn't work neither to me.

Revision history for this message
SabreWolfy (sabrewolfy) wrote :

Very slow performance from new 160GB IDE HDD in Ubuntu Hardy:

$ sudo hdparm /dev/sda1

/dev/sda1:
 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 = 19457/255/63, sectors = 113274252, start = 63

$ sudo hdparm -Tt /dev/sda1

/dev/sda1:
 Timing cached reads: 176 MB in 2.02 seconds = 87.24 MB/sec
 Timing buffered disk reads: 60 MB in 3.09 seconds = 19.39 MB/sec

Revision history for this message
SabreWolfy (sabrewolfy) wrote :

Values reported in previous post are for 3.5" 160GB 7200rpm IDE HDD running under Ubuntu Hardy on an older desktop motherboard. [Other operating systems installed on the same machine seem to have much better HDD perforamance.]

2.5" 60GB 4200rpm SATA HDD on notebook under Ubuntu Hardy:

dev/sda1:
 Timing cached reads: 1364 MB in 2.00 seconds = 682.38 MB/sec
 Timing buffered disk reads: 84 MB in 3.06 seconds = 27.42 MB/sec

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
Gord Wait (gordwait) wrote :

I'd like to try the new kernel on my Hardy install.
Can I find a binary package somewhere to install, or do I have to compile from kernel source?
(I spent 20 minutes googling and have not found a binary install as yet..)

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.