LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-03-2006, 10:32 AM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
help with DMA in CentOS 4.x


on my media box i moved from Debian to CentOS 4 for several reasons, but once again i am plagued with the lack of DMA on that system. it seems that even more modern distros do not like the chipset on that motherboard.

it has some kind of intel (want to say 810, but not 100%, thus this thread) chipset and i need some help with a few things.

1. how do i get the information to help you help me.

2. once i have that information, how do i modify the kernel so that it will load the proper module so i can gain access to the DMA again.

Code:
uname -a
Linux media.ssmahome.local 2.6.9-22.0.1.EL #1 Thu Oct 27 12:26:11 CDT 2005 i686athlon i386 GNU/Linux

Code:
cat /proc/ide/hda/settings
name                    value           min             max             mode
----                    -----           ---             ---             ----
acoustic                0               0               254             rw
address                 0               0               2               rw
bios_cyl                65535           0               65535           rw
bios_head               16              0               255             rw
bios_sect               63              0               63              rw
bswap                   0               0               1               r
current_speed           69              0               70              rw
failures                0               0               65535           rw
init_speed              69              0               70              rw
io_32bit                0               0               3               rw
keepsettings            0               0               1               rw
lun                     0               0               7               rw
max_failures            1               0               65535           rw
multcount               16              0               16              rw
nice1                   1               0               1               rw
nowerr                  0               0               1               rw
number                  0               0               3               rw
pio_mode                write-only      0               255             w
unmaskirq               0               0               1               rw
using_dma               1               0               1               rw
wcache                  1               0               1               rw

Code:
hdparm -i /dev/hda

/dev/hda:

 Model=WDC WD400BB-00AUA1, FwRev=18.20D18, SerialNo=WD-WMA6R1975528
 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version:

 * signifies the current active mode
what i really need the DMA for is the DVD player:

Code:
hdparm -d1 /media/cdrom

/media/cdrom:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device
[root@media ~]# hdparm -d1 /media/cdrom1

/media/cdrom1:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Inappropriate ioctl for device
at this point neither of laser drives have any media in them so do not know if that will matter or not, but i really could use DMA to just run on them both so i can get the performance from them.

many thanks.

Last edited by lleb; 01-03-2006 at 10:34 AM.
 
Old 01-03-2006, 04:22 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Code:
su
hdparm -d1 /dev/hda
Note that its the device file (eg. /dev/hdc might be your DVD drive), not the mount point that you need to give to hdparm. HTH.
 
Old 01-03-2006, 09:09 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by tkedwards
Code:
su
hdparm -d1 /dev/hda
Note that its the device file (eg. /dev/hdc might be your DVD drive), not the mount point that you need to give to hdparm. HTH.
ok here is what happend:

Code:
cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=SWAP-hdb1         swap                    swap    defaults        0 0
/dev/hdd                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/hdc                /media/cdrom1           auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
[root@media ~]# hdparm -d1 /dev/hdd

/dev/hdd:
 setting using_dma to 1 (on)
 using_dma    =  1 (on)
[root@media ~]# hdparm -d1 /dev/hdc

/dev/hdc:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Input/output error
 using_dma    =  0 (off)
IIRC the cdrom = just that a cdrom, but the cdrom1 = my DVD player. that is the one i really need to have DMA running on.
 
Old 01-03-2006, 09:24 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Sounds like a hardware support problem. Try googling with the model number of that DVD drive and that error message or the model number and 'linux'. Also look at the hardware forum on this site.

What model number is it BTW?
 
Old 01-04-2006, 11:56 AM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by tkedwards
Sounds like a hardware support problem. Try googling with the model number of that DVD drive and that error message or the model number and 'linux'. Also look at the hardware forum on this site.

What model number is it BTW?

its some generic DVD player i pulled out of an older Compaq. how would i go about finding out what make/modle it is?

[edit to add] forgot to add it did work when i was running Debian on that system. So it "should" work.
 
Old 01-04-2006, 05:53 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
It might be a bit of a PITA but if you could install Debian on another drive or partition on that machine and see what kernel version it is and what modules are used. Or maybe try something like the Knoppix LiveCD and see if that can work the DVD drive properly and what kernel version and modules it uses.

Have you got all the updates to Centos 4 BTW? Redhat often includes driver updates in their updates for RHEL.
 
Old 01-04-2006, 06:27 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Original Poster
Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by tkedwards
It might be a bit of a PITA but if you could install Debian on another drive or partition on that machine and see what kernel version it is and what modules are used. Or maybe try something like the Knoppix LiveCD and see if that can work the DVD drive properly and what kernel version and modules it uses.

Have you got all the updates to Centos 4 BTW? Redhat often includes driver updates in their updates for RHEL.
yes Cent is updated. I will download and burn a newer copy of Knoppix to see if I can get the DVD player to work.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Drive Problems: timeout waiting for DMA; error waiting for DMA mintee Linux - Hardware 10 09-21-2007 05:06 AM
Whats the differnce between Centos and CentOS? duffmckagan cAos 1 06-12-2005 12:23 PM
DMA works but not by default (despite "use DMA by default" kernel) mehlkelm Linux - Hardware 7 04-11-2005 03:29 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM
Suse 8.2 change my DMA setting on my DVD-R drive to off & IDE DMA MODE NOT SHOWING IT maximalred Linux - General 0 08-23-2003 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:13 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