LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slow DVD Playing, CD Burning - Cant enable DMA (https://www.linuxquestions.org/questions/linux-newbie-8/slow-dvd-playing-cd-burning-cant-enable-dma-113685/)

MG-Cloud 11-08-2003 03:04 AM

Slow DVD Playing, CD Burning - Cant enable DMA
 
Hi :)
I just installed Linux around Halloween, but I am trying my best to learn. However, I've run into a few problems that I couldn't fix by reading the documentation, and I was hoping that someone could give me a few pointers as to the correct course of action to take.

First, for DVD playing. I've installed mplayer, totem, and gxine, and they all are having problems playing DVDs. Mplayer just doesn't work - sometimes it'll play the movie trailer (quite smoothly actually, but without sound), and sometimes it won't play anything. Totem and Gxine both play the DVDs fine, but with a huge amount of skipped frames. I tried using hdparm -d1 /dev/hdd (my dvdrom drive), but it said:

Quote:

root@nebula dev # hdparm -d1 /dev/hdd

/dev/hdd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
Also, when I boot up, I receive an error about DMA on my hard drive. It tells me that DMA is not enabled on my hard drive, and that the fsck process would be slow. I've done some reading, and I've found out that if dma can't be enabled, then there is likely a problem with kernel settings. I've checked them over, and I can't seem to find anything wrong. Here are the settings I'm using: (this is kernel 2.6.0-test9-mm2)

Quote:

<*> ATA/ATAPI/MFM/RLL support
<*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
--- Please see Documentation/ide.txt for help/info on IDE drives
[ ] Use old disk-only driver on primary interface
<*> Include IDE/ATA-2 DISK support
[ ] Use multi-mode by default
[ ] Auto-Geometry Resizing support
<*> Include IDE/ATAPI CDROM support
< > Include IDE/ATAPI TAPE support (EXPERIMENTAL)
<*> Include IDE/ATAPI FLOPPY support
<*> SCSI emulation support
[ ] IDE Taskfile Access[*] IDE Taskfile IO (EXPERIMENTAL)
--- IDE chipset support/bugfixes
[ ] CMD640 chipset bugfix/support[*] PNP EIDE support[*] PCI IDE chipset support[*] Sharing PCI IDE interrupts support
[ ] Boot off-board chipsets first support[*] Generic PCI IDE Chipset Support
< > OPTi 82C621 chipset enhanced support (EXPERIMENTAL)
< > RZ1000 chipset bugfix/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
[ ] ATA Work(s) In Progress (EXPERIMENTAL)
Following the ATA Work(s) in Progress item, there is a list of different chipsets to support. I couldn't find mine in there. Just in case though, my motherboard is the EPoX 8KHA+. I had a link ready for quick reference, but unfortunately I can't post it until I get more posts :( Also, I noticed while I was looking this over that I had mistakenly overlooked a default chipset choice - the Intel PIIXn was checked. Could this be what's causing the problem? It wouldn't be a huge deal for me to recompile my kernel to remove support for this chipset if that's all that's wrong.

On a somewhat related note, I'm also having problems with CD-burning performance. when trying to use xcdroast, I'm experiencing much lower transfer speeds than my drives can support. It says that I shouldn't be using ATAPI; that I should be using SCSI Emulation. However, I've read somewhere on the internet that the new 2.6 series of kernels includes ATAPI support (and I guess it does -- it works, but much more slowly). Should I remove ATAPI Support from the kernel and add SCSI Emulation (the docs say they are mutually exclusive)? Or is this just a fault of xcdroast and/or a problem due to the above DMA problem? Any suggestions?

Thanks so much in advance for any help. :Pengy:

megaspaz 11-08-2003 03:18 AM

you could try to have your dvd drive scsi-emulated on boot. what bootloader are you using? grub or lilo? i'm using grub, so adding the option to the line in bold will use scsi emulation for that drive. in my grub.conf, my dvd drive is /dev/hdc and my cdrw is /dev/hdb.

Code:

title Red Hat Linux 7.3 (2.4.18-10)
        root (hd0,10)
        kernel /boot/vmlinuz-2.4.18-10 ro root=/dev/hda11 hdb=ide-scsi hdc=ide-scsi
        initrd /boot/initrd-2.4.18-10.img



now doing this will wreak havoc with your /dev links as this device will no longer mount as /dev/hdd, but as /dev/scd0 (if this is the only cd/dvd/cdrw/dvdrw drive you have) or as /dev/scd1 (if you have let's say a cdburner or cdrom on your first ide channel). also if kudzu is running at boot, it will most likely add /dev/cdrom3 which will point to this new device label (/dev/scd0 or /dev/scd1). anyway, you can figure out which dvd/cdromX (where X is a differentiating number) points to which device by right clicking on the link and going into it's properties where it will have a "Points to" field. you need to delete the /dev/cdromX that points to the old device, /dev/hdd and rename the /dev/cdromY (the other cdrom device where Y is it's number) pointing to the /dev/scd1 (or scd0, but my guess is because it's on the second ide channel, it will be /dev/scd1) to /dev/cdromX. you'll then need to delete your /dev/dvd link and create a new link to /dev/cdromX that points to /dev/scd1.

after doing this, now try to enable dma the same way you did before (hdparm -d1 /dev/hdd).

anyway, this technique works for laptops whose cd/cdrw/dvd/etc.. peripherals won't enable dma.

MG-Cloud 11-08-2003 03:33 AM

Thanks so much for the quick reply! I appreciate it greatly :D

Sorry, I think I should have been a little more specific though :(
In addition to my dvdrom drive, I can't enable DMA on my hard disk (ide) nor my cdrw drive.

Would scsi-emulation allow me to then enable DMA when I couldn't before?

megaspaz 11-08-2003 03:39 AM

for you cdrw it would. i'm not so sure about your hard drive, though. usually ide hard drives should enable dma just fine. it could be that you don't have enable dma in your kernel, in which case you'd have to create a custom kernel. i would wait on suggestions for that though before doing anything like the scsi emulation thingy. although, if you do the scsi emulation and you still can't enable dma on your dvd or cdrw drive, then i'm apt to think your kernel version doesn't have dma support set.

MG-Cloud 11-08-2003 04:02 AM

Thanks :)

Yeah I agree with you... I think I'll wait to make sure my kernel is configured correctly (it *should* be, but I've been know to make mistakes ;) ). If that doesn't work, then at least I know I have a backup solution that should work for my peripherals.

So .. is there any more info needed on my kernel configuration besides what I've given above? :)

MG-Cloud 11-09-2003 02:33 AM

Any other solutions?
Also, could it possibly be a setting in the BIOS? Windows worked fine with these drives, however.

Joey.Dale 11-10-2003 10:55 AM

if it worked with winblows it is a problem with your linux config

Daliz 02-07-2004 08:09 AM

Hi,

I've been trying to enable the SCSI emulation on my plextor DVD-rom drive. I have plextor dvd+/-rw (scsi emulated, hdc) and my dvd-rom drive is hdd. I just wanted to ask where I should add the "hdd=ide-scsi"-line? My lilo.conf:

boot=/dev/hda
vga=normal
default="Mandrake9.2"
keytable=/boot/fi-latin1.klt
prompt
nowarn
timeout=50
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hdg bios=0x83
disk=/dev/hde bios=0x82
image=/boot/vmlinuz-2.4.22-10mdk
label="Mandrake9.2"
root=/dev/hdb1
initrd=/boot/initrd-2.4.22-10mdk.img
append="devfs=mount splash=silent hdc=ide-scsi acpi=ht resume=/dev/hdb5"
vga=788
read-only
other=/dev/hda1
label="Win2000"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe


Thanks! :)

snacky 02-07-2004 08:21 AM

Use "lspci" to find out what ide controller you have.

One of the lines of output will look something like:
Code:

00:xx.x IDE interface: Manufacturer controllername blah blah blah
This will probably help you decide what to enable in the kernel configuration. I have no idea why the PIIXn chipset is always enabled by default. It's been that way for many kernel versions. You can safely turn that off, though it makes little difference either way...

acid_kewpie 02-07-2004 09:31 AM

Daliz, please do not hijack other irrelevant threads, your question is not related to the initial question, and is just confusing things.

I have no idea if this old thread (which was quite happily dead) was resolved or not, but you may well want to enable the amd74xx module or similar, i need this module in order to have DMA on my nforce2 board.

deadslota 12-04-2004 12:56 AM

I'm having similar problems with DMA on my nforce2 board, I tried to enable scsi emulation but get the error:
FATAL: Module ide_mod not found.
when it attepts to set hdc and hdd to scsi

I tried loading the amd74xx module before this, no dice.

my main hd is SATA, it runs fine, I just can't get my optical drives to enable dma (both pioneer DVDs)

cheers for any ideas guys


All times are GMT -5. The time now is 07:07 AM.