You are not logged in.

#1 2006-08-15 12:51:34

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

can't turn dma on [solved]

Hi,

I'm creating a new ext3 partition on a new disk, but I can't turn DMA on, I get the following error:

[14:43][root@mouse256:~]$ hdparm -d1 /dev/hda2

/dev/hda2:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Invalid argument
 using_dma    =  0 (off)

I don't boot from this disk, arch is installed on a software raid on 2 SATA disk, the SATA disks and the raid works perfectly. It's the PATA disk which is causing troubles. (/dev/hda1 is a windows/ntfs partition, /dev/hda2 is fresh ext3 partition)

okay, for the rest a description of my system:
I'm using a nforce2 motherboard (nforce2 controller for the ide disks, silicon image for the sata).
Using stock arch kernel with initcpio

[14:45][root@mouse256:~]$ hdparm /dev/hda2

/dev/hda2:
 multcount    =  0 (off)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 16383/255/63, sectors = 152521110, start = 81915435
[14:49][root@mouse256:~]$ hdparm -I /dev/hda2

/dev/hda2:

ATA device, with non-removable media
        Model Number:       WDC WD1200JB-00DUA3
        Serial Number:      WD-WMACM2144429
        Firmware Revision:  75.13B75
Standards:
        Supported: 6 5 4
        Likely used: 6
Configuration:
        Logical         max     current
        cylinders       16383   65535
        heads           16      1
        sectors/track   63      63
        --
        CHS current addressable sectors:    4128705
        LBA    user addressable sectors:  234441648
        LBA48  user addressable sectors:  234441648
        device size with M = 1024*1024:      114473 MBytes
        device size with M = 1000*1000:      120034 MBytes (120 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Standby timer values: spec'd by Standard, with device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
Security:
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by CSEL
Checksum: correct
[14:49][root@mouse256:~]$ lsmod
Module                  Size  Used by
nls_cp437               5760  0
vfat                   10880  0
fat                    47644  1 vfat
usb_storage            78528  0
udf                    84100  0
lirc_serial            11776  1
lirc_dev               13044  1 lirc_serial
ipv6                  243232  18
ipt_MASQUERADE          2944  1
iptable_nat             6404  1
ip_nat                 14764  2 ipt_MASQUERADE,iptable_nat
ipt_TCPMSS              3712  1
xt_tcpudp               3328  3
ipt_LOG                 6656  3
ipt_REJECT              4736  3
xt_state                2048  2
ip_conntrack           45536  4 ipt_MASQUERADE,iptable_nat,ip_nat,xt_state
nfnetlink               5272  2 ip_nat,ip_conntrack
iptable_filter          2688  1
ip_tables              12244  2 iptable_nat,iptable_filter
x_tables               11652  8 ipt_MASQUERADE,iptable_nat,ipt_TCPMSS,xt_tcpudp,ipt_LOG,ipt_REJECT,xt_state,ip_tables
usbhid                 48928  0
usblp                  12160  0
raid1                  21504  1
joydev                  8384  0
evdev                   8192  1
ohci_hcd               18692  0
shpchp                 36520  0
pci_hotplug            27588  1 shpchp
ehci_hcd               29576  0
ohci1394               32176  0
aic7xxx               176564  0
ieee1394               86488  1 ohci1394
rtc                    10676  0
serio_raw               5764  0
ppp_generic            24852  0
slhc                    6528  1 ppp_generic
capability              3464  0
commoncap               5632  1 capability
eeprom                  5904  0
w83l785ts               5648  0
asb100                 19860  0
hwmon_vid               2816  1 asb100
i2c_nforce2             6272  0
i2c_core               17536  4 eeprom,w83l785ts,asb100,i2c_nforce2
nvnet                  67748  0
3c59x                  40232  0
mii                     5248  1 3c59x
nvsound              1539640  5
soundcore               7776  6 nvsound
fglrx                 387948  18
nvidia_agp              6556  1
agpgart                26980  2 fglrx,nvidia_agp
usbcore               113536  6 usb_storage,usbhid,usblp,ohci_hcd,ehci_hcd
ide_cd                 36256  0
cdrom                  35616  1 ide_cd
ide_disk               14208  0
sd_mod                 16768  13
amd74xx                13596  0 [permanent]
generic                 4356  0 [permanent]
ide_core              113736  5 usb_storage,ide_cd,ide_disk,amd74xx,generic
sata_sil                7432  13
libata                 60940  1 sata_sil
ext3                  128264  5
jbd                    56084  1 ext3
raid0                   7680  2
md_mod                 69780  5 raid1,raid0

I couldn't find a solution here on the forum or using google, so I hope someone can help.

Offline

#2 2006-08-15 14:47:03

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: can't turn dma on [solved]

Check your BIOS... There should be an option somewhere in there for enabling DMA.

Offline

#3 2006-08-15 15:09:20

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: can't turn dma on [solved]

Bios wasn't the problem (I was rather shure about this, but I did check it anyway), but when I rebooted, the problem was suddenly fixed smile

I found what was causing the problem:
As I do not use this drive much, I put it in sleep-mode after booting (hdparm -Y /dev/hda), this saves me energy, heath and noise.  But is seems that waking up the drive disables the dma mode...
If someone has a solution for this feel free to mention, but I can live with it for now wink

Offline

#4 2006-11-20 02:49:24

prokrypt
Member
Registered: 2006-04-06
Posts: 4

Re: can't turn dma on [solved]

my late response =]

First of all, /dev/hda2 is a partition, /dev/hda is the drive, so:

hdparm -d1 /dev/hda

Secondly, I suggest you use "hdparm -y" instead of "hdparm -Y" for no particular reason, heh... just try it!

Offline

Board footer

Powered by FluxBB