LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-14-2006, 08:42 PM   #1
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
Setting DMA with hdparm


The problem : Setting DMA with hdparm -d 1 /dev/hdc returns :

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)

I compiled the kernel myself and built my chipset support as a module because I wasn't sure of the precise chipset. My purchase order says MSI 661FM-L, so I flagged most of them for module building and the kernel detected the SIS 5513.

dmesg returns the following:

SIS5513: IDE controller at PCI slot 0000:00:02.5
ACPI: PCI interrupt 0000:00:02.5[A] -> GSI 16 (level, low) -> IRQ 16
SIS5513: chipset revision 0
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller
SIS5513: port 0x01f0 already claimed by ide0
SIS5513: port 0x0170 already claimed by ide1
SIS5513: neither IDE port enabled (BIOS)

The kernel is quite sibylline on the subject:
- SIS5513: SiS 962/963 MuTIOL IDE UDMA133 controller -> Is this the same as DMA ?
- SIS5513: not 100% native mode: will probe irqs later -> Does this affect anything at all ? If so, have they been properly probed as claimed ?
- SIS5513: neither IDE port enabled (BIOS) -> Are my BIOS setting at fault ?

There is a special -X flag in hdparm but the man page states that it is "seldom necessary since most/all modern IDE drives default to their fastest PIO transfer mode at power-on" and that "Fiddling with this can be both needless and risky".

I still tried it like so: hdparm -d1 -X mdma2 /dev/hdc ands I got this:

/dev/hdc:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting xfermode to 34 (multiword DMA mode2)
using_dma = 0 (off)

Ok, so no crash so far. But still on a slump.

Any help appreciated.


---
narc.
 
Old 06-14-2006, 09:06 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
Originally Posted by narc

I compiled the kernel myself and built my chipset support as a module because I wasn't sure of the precise chipset. My purchase order says MSI 661FM-L, so I flagged most of them for module building and the kernel detected the SIS 5513.
no, not as a module.........you'll need to re-build the kernel with chipset built directly into it.
 
Old 06-15-2006, 09:06 AM   #3
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Original Poster
Rep: Reputation: 15
Smile

Another success story on the LQ forums.
Thanks 320mb.

---
narc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Q1: Setting DMA Mode with hdparm mattz40 Debian 3 03-15-2005 04:52 PM
turning DMA on with hdparm geniarse Linux - Hardware 4 09-09-2004 03:47 PM
Enabling DMA with no hdparm ? SML Fedora 1 02-22-2004 03:52 PM
Enabling DMA with no hdparm SML Red Hat 1 02-22-2004 03:46 PM
hdparm/dma MightyKC Linux - Newbie 7 08-19-2003 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration