Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi!
After I copied some huge amounts of data from one hard disk to another (and the system becoming unusable meanwhile) it came to my mind that DMA could be disabled for my hard drives. A simple 'hdparm /dev/hda' and I was sure. But enabling DMA with 'hdparm -d1 /dev/hda' just says 'Operation not permitted.' But I was trying as root, so I tried a chmod 777 /dev/hda and chown 777 /dev/hda. But it didn't had any effects.
Does anyone know a way to enable DMA? I use the 2.6.7-rc3 Kernel and an nForce2 chipset. The FAQ on nvidia's homepage just tells you to use the universal ide driver, since the nForce2 IDE controller should be standard-compliant.
btw, does this include any infos if my chipset supports dma under Linux?
Code:
BIOS-provided physical RAM map:
Shuttle AN35N detected: BIOS IRQ0 pin2 override will be ignored
ACPI: BIOS IRQ0 pin2 override ignored.
CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
It was part of my dmesg.
My Kernel .config inclueds the following, so dma should work (?)
Code:
CONFIG_GENERIC_ISA_DMA=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
the nVidia nForce Linux drivers FAQ just says:
Quote:
Q: My IDE hard drive is running very slowly, how can I enable DMA mode?
A: A kernel patch was added in kernel 2.4.21pre3-ac1 which enables DMA for the nForce2 IDE controller and should be available in the final released 2.4.21 kernel. An alternative to upgrading your kernel is to use the "hdparm" utility to enable DMA for your hard drive. For example:
example% su
Password: ******
example# hdparm -d 1 /dev/hdX
Where /dev/hdX is the IDE device you wish to enable DMA for. You must do this every time you reboot, or add it to an rc script. Some distributions have a file "/etc/sysconfig/harddisks" where you can enable this for all hard drives on system boot.
When the dma patch was added in a 2.4 Kernel, it should surely be available in my 2.6 Kernel, right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.