LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   canīt enable DMA-Mode why? (https://www.linuxquestions.org/questions/linux-general-1/can%B4t-enable-dma-mode-why-105577/)

Odan 10-18-2003 11:25 AM

canīt enable DMA-Mode why?
 
Hello,

I have SuSE 8.1 with KDE 3.1.something ;-) running.
When I try to enable DMA-Mode with Systemadministration by YaST for either the harddisks and the DVD-Rom. Yast tells me "error - couldnīt set device hda (and hdc and hdd; everyone after another) to value `1ī. And so when i start yast again i see the current state is all of them are DMA-disabled.

Is there another way or what could it be?

I have also an SuSE 8.1 one withe the original KDE 3.0 running and it does not function either.

Thanks a lot

Odan

salparadise 10-18-2003 04:35 PM

from the c0ommand line
as root

hdparm -d1 /dev/hda

this is the command to enable dma
if it responds ok

(under mandrake and redhat)
i add that line to the end of /etc/rc.local

(i also add -c1 (to switch 32bit support on) and -k1 (tells it to keep settings after a reset))

Odan 10-19-2003 01:07 PM

hdparm
 
Thanks,

but hdparm does not work either.
it just tells thatit canīt set hda with DMA on.

Could there be another way or a bios thing or something

Thanks

Odan

Mad Merlin 10-19-2003 01:35 PM

If you've got bleeding edge hardware or a bleeding edge motherboard, you'll probably need a newer kernel to support the hardware. I'd give that a try first.

Scruff 10-19-2003 01:38 PM

I know when I was using Slackware 9 with the default kernel 2.4.20 I couldn't get proper hard drive settings to work either. I was getting 3mb/s disk reads. Compiled 2.4.22, did hdparm, and got 40mb/s disk reads.

Shade 10-19-2003 06:18 PM

Yeah, you need to have ultra-dma enabled in the kernel, I had this problem too.

First thing to check -- Is 32 bit LBA operation enabled?

see if this works:

hdparm -c1 /dev/hda

That'll switch it 32 (i know it's already mentioned above, but I wanted to stress it.)

IF that goes through, then try

hdparm -d1 /dev/hda

IF neither go through, you'll need to recompile your kernel with dma support.

-Shade

h1tman 10-19-2003 09:25 PM

root@darkstar:/home/h1tman# hdparm -c1 /dev/hda

/dev/hda:
setting 32-bit IO_support flag to 1
IO_support = 1 (32-bit)
root@darkstar:/home/h1tman# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
root@darkstar:/home/h1tman#

Odan 10-19-2003 11:50 PM

compiling
 
Hi guys,

i get the same with hdparm as "h1tman" does. So, how do i compile the kernel?

Thanks

Odan

Odan 10-21-2003 04:01 PM

Please,

how do i recompile the kernel with DMA support?

Thanks

Odan

nrunge 10-21-2003 05:57 PM

I am having the same problem. However DMA is compiled into my kernel, and I am running 2.4.22.

Please refer to >http://www.linuxquestions.org/questi...hreadid=104957

For more of my system information.

salparadise 10-22-2003 01:11 AM

slackware 9 has dma support
i've installed it and used it before and hdparm worked first time

is it worth checking the BIOS to see if DMA is turned off?

Odan 10-22-2003 06:45 AM

Well, DMA is enabled by the BIOS and e.g. Windows is using the DMA-Mode.
So how do i figure out my kernel and get a DMA Support compiled, sorry, but i just donīt know.

Thanks


All times are GMT -5. The time now is 03:50 AM.