public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* No DMA Since 2.6.8 Upgrade
@ 2004-08-14 14:25 Nicolas BENOIT
  2004-08-14 20:10 ` Mark Lord
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas BENOIT @ 2004-08-14 14:25 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

Hi!

I just upgraded to 2.6.8 and I can't enable DMA anymore.
It fails for all my devices, telling me that I don't have the
permission.

"HDIO_SET_DMA failed: Operation not permitted"

What's strange, is that I did not change anything in my new .config
file. (just enabled Message Signaled Interrupts )

I enabled "Use PCI DMA by default when available", but it doesn't change
anything.

My chipset is an Intel i875p, so I am using "Intel PIIXn chipsets
support"

This message comes with an strace dump of 'hdparm -d1 /dev/hda' and with
a dump of 'cat /proc/ide/hda/settings'

Greetings,
Nicolas


-- 
+-----------------------------------+
| Nicolas BENOIT                    |
| http://nbenoit.tuxfamily.org      |
|                                   |
|   .~.                             |
|   /V\          Gnu - Linux        |
|  // \\   http://www.slackware.com |
| /(   )\                           |
|  ^^-^^                            |
+-----------------------------------+

[-- Attachment #2: cat_dump.txt --]
[-- Type: text/plain, Size: 1631 bytes --]

name			value		min		max		mode
----			-----		---		---		----
acoustic                0               0               254             rw
address                 1               0               2               rw
bios_cyl                19457           0               65535           rw
bios_head               255             0               255             rw
bios_sect               63              0               63              rw
bswap                   0               0               1               r
current_speed           0               0               70              rw
failures                0               0               65535           rw
init_speed              0               0               70              rw
io_32bit                3               0               3               rw
keepsettings            0               0               1               rw
lun                     0               0               7               rw
max_failures            1               0               65535           rw
multcount               16              0               16              rw
nice1                   1               0               1               rw
nowerr                  0               0               1               rw
number                  0               0               3               rw
pio_mode                write-only      0               255             w
unmaskirq               1               0               1               rw
using_dma               0               0               1               rw
wcache                  1               0               1               rw

[-- Attachment #3: strace_dump.txt --]
[-- Type: text/plain, Size: 2023 bytes --]

execve("/sbin/hdparm", ["hdparm", "-d1", "/dev/hda"], [/* 40 vars */]) = 0
brk(0)                                  = 0x8055000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=90489, ...}) = 0
old_mmap(NULL, 90489, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40016000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360Y\1"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1250840, ...}) = 0
old_mmap(NULL, 1237892, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4002d000
mprotect(0x40155000, 25476, PROT_NONE)  = 0
old_mmap(0x40155000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x128000) = 0x40155000
old_mmap(0x40159000, 9092, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40159000
close(3)                                = 0
munmap(0x40016000, 90489)               = 0
stat64("/dev/hda", {st_mode=S_IFBLK|0660, st_rdev=makedev(3, 0), ...}) = 0
open("/dev/hda", O_RDONLY|O_NONBLOCK)   = 3
fstat64(1, {st_mode=S_IFREG|0644, st_size=1240, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40016000
ioctl(3, 0x326, 0x1)                    = -1 EPERM (Operation not permitted)
dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x8001 (flags O_WRONLY|O_LARGEFILE)
close(4)                                = 0
write(2, " HDIO_SET_DMA failed: Operation "..., 46 HDIO_SET_DMA failed: Operation not permitted
) = 46
ioctl(3, 0x30b, 0x8054638)              = 0
close(3)                                = 0
write(1, "\n/dev/hda:\n setting using_dma to"..., 65
/dev/hda:
 setting using_dma to 1 (on)
 using_dma    =  0 (off)
) = 65
munmap(0x40016000, 4096)                = 0
exit_group(0)                           = ?

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: No DMA Since 2.6.8 Upgrade
@ 2004-08-15 12:21 Nicolas BENOIT
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas BENOIT @ 2004-08-15 12:21 UTC (permalink / raw)
  To: linux-kernel

Ok, so finally, it's not working...

Well it works for the hard drive, but cd drives have to be detected
through the IDE/ATAPI driver.
And I still can't change the DMA settings for them...


If I don't enable IDE/ATAPI support, I get this:

ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xFC08 irq 15
ata2: dev 0 cfg 49:0f00 82:0218 83:4000 84:4000 85:0218 86:0000 87:4000
88:041f
ata2: dev 0 ATAPI, max UDMA/66
ata2: dev 1 cfg 49:0f00 82:0000 83:0000 84:0000 85:0000 86:0000 87:0000
88:0407
ata2: dev 1 ATAPI, max UDMA/33
ata2: dev 0 configured for UDMA/33
ata2: dev 1 configured for UDMA/33
scsi1 : ata_piix

And the drives aren't attached to any /dev/*** (even if I enable scsi
cdrom)


So on the one hand, I have my cd drives with hd* and using IDE/ATAPI
drivers and I can't change the DMA settings; and on the other hand, I
have two devices detected at boot time but not attached (so unusable).

Nicolas.

-- 
+-----------------------------------+
| Nicolas BENOIT                    |
| http://nbenoit.tuxfamily.org      |
|                                   |
|   .~.                             |
|   /V\          Gnu - Linux        |
|  // \\   http://www.slackware.com |
| /(   )\                           |
|  ^^-^^                            |
+-----------------------------------+


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-15 12:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-14 14:25 No DMA Since 2.6.8 Upgrade Nicolas BENOIT
2004-08-14 20:10 ` Mark Lord
  -- strict thread matches above, loose matches on Subject: below --
2004-08-15 12:21 Nicolas BENOIT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox