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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-06-2003, 11:01 PM
|
#1
|
LQ Newbie
Registered: Apr 2003
Distribution: RedHat
Posts: 3
Rep:
|
DMA on /dev/hda but not on /dev/dvd
I am trying to enable DMA mode on my dvd-rom to get enough speed to actually play a dvd. My drive supports DMA, so does the controller/motherboard, but I can get it to work. My HD is already running in DMA mode (set at startup), so I can't understand why the dvd doesn't work.
# hdparm -d1 /dev/dvd <-- As root, of course
/dev/dvd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
# hdparm -i /dev/dvd
/dev/dvd:
Model=HITACHI DVD-ROM GD-7500, FwRev=0005, SerialNo=
Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=no
# hdparm -i /dev/hda
/dev/hda:
Model=MAXTOR 4K040H2, FwRev=A08.1500, SerialNo=572121417537
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
BuffType=DualPortCache, BuffSize=2000kB, MaxMultSect=16, MultSect=16
CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=78198750
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
AdvancedPM=no WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1: 1 2 3 4 5
The motherboard is SiS, I don't know the exact details (dmesg says omething about SIS5513, SIS730 ATA 100 controller)
Thanks for any help
Jeremy
|
|
|
04-06-2003, 11:22 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
First off, try finding where /dev/dvd is pointing to:
ls -l /dev/dvd
Then, taking the actual device, try there:
hdparm -d1 /dev/hdX
If your device is using scsi emulation, determine which standard ide block device it was before emulation occured:
hda = Primary Master
hdb = Secondary Master
hdc = Primary Slave
hdd = Secondary Slave
Also, check the man page, it mentions using the -X option with -d option to ensure it uses the correct dma.
So
hdparm -d1 -X udma2 /dev/hdX
might be what you are looking for.
Cool
|
|
|
04-07-2003, 09:19 AM
|
#3
|
LQ Newbie
Registered: Apr 2003
Distribution: RedHat
Posts: 3
Original Poster
Rep:
|
Using hdparm -X option didn't help, still same result:
(/dev/dvd is linked to /dev/hdb, btw)
# hdparm -d1 -X udma2 /dev/hdb
/dev/hdb:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting xfermode to 66 (UltraDMA mode2)
using_dma = 0 (off)
Same result for any of the other DMA modes (sdma0, mdma2)
Thanks for the suggestion, though...
|
|
|
04-07-2003, 10:10 AM
|
#4
|
LQ Addict
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403
Rep:
|
Do a search of the forums, I just noticed you are using RedHat and I recall there is a specific problem with enabling DMA on cdrom/dvdroms with RedHat, there's a setting you have to enter somewhere (I don't remember).
|
|
|
04-07-2003, 11:26 PM
|
#5
|
LQ Newbie
Registered: Apr 2003
Distribution: RedHat
Posts: 3
Original Poster
Rep:
|
Thanks for the suggestion. I had no idea this problem was specific to rh-8.0. Here's what I found:
---------------------------------------------------------------------
I had the same problem. Here's the solution from Red Hat's web site:
NOTE: As with the 8.0 release, IDE DMA on CD-ROM drives is disabled by
default. If you are sure that your CD-ROM drive is capable of IDE
DMA, place the following line in the /etc/modules.conf file:
options ide-cd dma=1
I did it and now DVD is smooth as silk.
-----------------------------------------------------------------------
I did the same thing, works perfectly
|
|
|
All times are GMT -5. The time now is 12:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|