Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hdparm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Mon May 03, 2004 11:07 pm    Post subject: hdparm Reply with quote

I'm trying to set DMA on my new HD. However I get an error:

# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)hda: WDC WD400JB-00FMA0, ATA DISK drive
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

This is what dmesg has to say about the HD:

hda: WDC WD400JB-00FMA0, ATA DISK drive
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/8192KiB Cache, CHS=77545/16/63

Here's the DMA related lines from my kernel config:

# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
# CONFIG_BLK_DEV_ADMA100 is not set
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_DMA_NONPCI is not set
# CONFIG_SCSI_EATA_DMA is not set

Any ideas? TIA :?:
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon May 03, 2004 11:09 pm    Post subject: Reply with quote

And, erm, you are root ?
Else the permissions on the HD device may be wrong.
I'm sure I've seen this before - search the forum, it's bound to come up!
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Mon May 03, 2004 11:55 pm    Post subject: Reply with quote

I had the same kind of problems. Go to:
Code:

Device Drivers --->
  ATA/ATAPI/MFM/RLL support  --->
      .....
       [*]       Generic PCI bus-master DMA support                                 
       [  ]         Force enable legacy 2.0.X HOSTS to use DMA                       
       [*]         Use PCI DMA by default when available
       [  ]           Enable DMA only for disks
      .....

That did the trick for me. (this is in a 2.6.3 kernel)

[edit]
If I remember corectly the following was also important:
Code:

 <*>         VIA82CXXX chipset support

Please don't shoot me if I'm wrong... It was a long time ago. :)
[/edit]
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Tue May 04, 2004 1:22 am    Post subject: SOLVED Reply with quote

Thanks Vulpes_Vulpes, I recompiled my 2.4.24 kernel with these options:

CONFIG_BLK_DEV_GENERIC=y
CONFIG_BLK_DEV_VIA82CXXX=y

Now it works! It seems that it has now turned off my SoundBlaster game port however...
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Tue May 04, 2004 8:46 am    Post subject: Reply with quote

In the proces of trying to get your game port working I would advice you to upgrade to a newer kernelversion. I think there was a prety serious bug in the =< 2.4.24 versions... (vanilla-sources). Upgrade to 2.4.25 or to 2.4.26 while your a it. :)

I am using the 2.6.* very happily for some time now. It took me some time to get ALSA working properly but there are loads of manuals and tips for on this forum now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum