[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DMA is turned off on my HDD



On Sun, Jul 27, 2008 at 16:57:19 +0300, Anton Liaukevich wrote:
> Florian Kulzer wrote:
>> On Wed, Jul 23, 2008 at 20:59:09 +0300, Anton Liaukevich wrote:
>>> Anton Liaukevich wrote:
>>>> In several days I discovered that DMA is turned off on my HDD (fsck 
>>>>  sayed it while Debian booting). Please, help me turn on DMA mode.
>>>>
>>>> My hardware:
>>>>     motherboard: Epox 8RDA3I rev 3.3 (nForce 2 Ultra)
>>>>     hdd: WD1200JB (ide, 120gb)
>>>>     cpu: Sempron 2200 (k7)

[...]

>>> Today I upgraded my linux kernel to 2.6.25-2-686, but problem hasn't  
>>> been solved yet.

[...]

> I installed hdparm long ago and it says that dma if off, moreover hdparm  
> can't turn it on:
>
> leva:/home/anthony/admin# hdparm -d1 /dev/hda
>
> /dev/hda:
>  setting using_dma to 1 (on)
>  HDIO_SET_DMA failed: Operation not permitted
>  using_dma     =  0 (off)

Maybe your system is using the wrong driver.

> Trying to check if my kernel has loaded the correct modules:
>
> leva:/home/anthony/admin# lsmod | grep -E 'amd74xx|ata|\bide'
> ide_pci_generic         4228  0 [permanent]
> amd74xx                 8136  0 [permanent]
> ata_generic             8004  0
> libata                142288  1 ata_generic

I was expecting to see amd74xx listed here in addition to ata_generic.

> scsi_mod              138668  1 libata
> dock                   10448  1 libata
> ide_cd_mod             32864  0
> cdrom                  31872  1 ide_cd_mod
> ide_disk               13952  8
> ide_generic             1376  0 [permanent]

Hmm, maybe you system uses ide_generic, which would explain why it
cannot turn on DMA.

> ide_core              100312  5  
> ide_pci_generic,amd74xx,ide_cd_mod,ide_disk,ide_generic
>
>
> Also I'm giving you output of 'lspci -nn' command:
>
> leva:/home/anthony/admin# lspci -nn

[...]

> 00:09.0 IDE interface [0101]: nVidia Corporation nForce2 IDE [10de:0065] (rev a2)

This is as expected; I checked the 2.6.25 kernel sources and this
controller should be supported.

I would be interested to see the output of

udevadm info -a --name /dev/hda

to check which drivers are used.

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |


Reply to: