LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   hdparm -d1 /dev/hda gives me "HDIO_SET_DMA failed: Operation not permitted" (http://www.linuxquestions.org/questions/linux-hardware-18/hdparm-d1-dev-hda-gives-me-hdio_set_dma-failed-operation-not-permitted-260894/)

elluva 11-30-2004 07:52 AM

hdparm -d1 /dev/hda gives me "HDIO_SET_DMA failed: Operation not permitted"
 
I was trying to enable DMA on my disk (with hdparm -d1 /dev/hda) when I got the " "HDIO_SET_DMA failed: Operation not permitted" message.
What could cause this?
How do I solve it, I would like to be able to activate that DMA...

tnx,
elluva

320mb 11-30-2004 01:03 PM

is DMA enabled in the kernel???

geraldomanaus 11-30-2004 03:03 PM

Hello, friends,

You have to enable the chipset module for your motherboard in the Kernel configuration.

elluva 12-01-2004 09:32 AM

Quote:

Originally posted by geraldomanaus
Hello, friends,

You have to enable the chipset module for your motherboard in the Kernel configuration.

tnx, that was the problem ;)

grtz,
elluva

ehrhardt 12-28-2004 12:31 PM

But how do you enable the chipset for your motherboard?
 
I needed to do exactly the same thing on my machine. Understanding english does not mean I knew how to

Quote:

enable the chipset module for your motherboard in the Kernel configuration.
So I googled the web to figure out, how to do it. And this is how:

run the 'lspci -v' command, from the output try to find the name/vendor of the IDE interface chip:
Code:

.
.
.
00:0f.0 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
        Subsystem: Elitegroup Computer Systems: Unknown device 1b41
        Flags: bus master, medium devsel, latency 32
        I/O ports at dc00 [size=16]
        Capabilities: [c0] Power Management version 2
.
.
.

The chip that controls access to the IDE bus on my motherboard is the: "VIA VT82Cxxxx".

Armed with this knowledge you can 'enable the chipset module for your motherboard in the Kernel configuration' and build a new kernel:
If you're using 'make xconfig' to configure your kernel the find the "ATA/IDE/MFM/RLL support" menu/button. From there click on the "IDE, ATA and ATAPI Block devices" button. Under the "PCI IDE chipset support" section they list a bunch of Chipset support options, I found mine "VIA82CXXX chipset support" and selected to build it in the kernel - not as a module (as suggested by other forums).

Then cross your fingers, tap the heels of your shoes together and compile, install the kernel and reboot.

After the reboot try to enable hard disk DMA with hdparm again.

hope it helps.
ehrhardt

WaaX 04-12-2006 09:31 PM

Thanks, i was doing 4mb/s, now with the proper IDE driver built-in the kernel my hd is going ~50mb/s.

What a difference.

jashar 05-19-2007 11:43 AM

initrd
 
In case anyone reading this thread still can't get it to work (like me) you can try editing /etc/mkinitrd/modules to load your motherboard's module, since your system may be like mine and loads the modules in initrd first, and once the ide_generic module is loaded, it's too late to do anything with insmod or modprobe or /etc/modules.

:newbie:

shazam75 07-21-2007 03:49 AM

hey

thanks for the heads up on the kernel part - didnt have it enabled -

Regards
Shelton


All times are GMT -5. The time now is 04:19 AM.