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 - 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 03-03-2005, 12:54 PM   #1
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Rep: Reputation: 15
No DMA on DVD Drive


hi, i need to get DMA working for my dvd drive as movies are choppy, but i'm having problems. I use suse so the obvious way to do this would be from yast, it gives me the option to turn dma on for my dvd drive but when i try to it fails.

So next step was to do it using hdparm from the command line but that also fails,

# hdparm -d1 /dev/dvdrecorder

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

Also noticed it tried to set dma at boot but fails with the same output.

After doing lots of reading on this i have found that it could be because i don't have the relevent modules compiled in my kernel to set dma. Is this right or could it be something else?

I looked in my bios and it says the controller for my dvd is 'Parallel ATA'. Do i need to get my kernel to support this? If so how? My kernel version is 2.6.8-24.11 and i have suse 9.2. I have had dma working on this same machine on previous suse installations!
 
Old 03-03-2005, 01:49 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Run these two commands:
Code:
# cat /usr/src/linux/.config | grep CONFIG_BLK_DEV_IDEDMA_PCI
# cat /usr/src/linux/.config | grep CONFIG_IDEDMA_PCI_AUTO
You want the output to be:
Code:
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
If they are not set you need to rebuild a kernel with these options enabled.
 
Old 03-03-2005, 02:36 PM   #3
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Yep both of those are set to 'y'. I've had a look through the .config file but it is huge and i don't really know what i'm looking for.
 
Old 03-03-2005, 02:46 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Can you run:
Code:
lspci | grep IDE
It will give the type of IDE interface, hopefully more useful than "Parallel ATA". Some problematic IDE interfaces will not work with auto DMA, so you need to add explicit IDE support in the kernel.

These are found in:
Device Drivers --> ATA/ATAPI/MFM/RLL support -->
about halfway down starting with "AEC62XX chipset support". Hopefully you can find your IDE chipset here.
 
Old 03-03-2005, 03:06 PM   #5
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Here is the output i get,

# lspci | grep IDE
0000:00:1f.2 IDE interface: Intel Corp. 82801FR/FRW (ICH6R/ICH6RW) SATA Controller (rev 03)

I have tried looking through my config my chipset but can't find anything that looks relevent to this. I take it it's the '82801FR/FRW' bit i'm looking for?

Last edited by cootetom; 03-03-2005 at 03:10 PM.
 
Old 03-03-2005, 03:31 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Ok, well this is out of my league now...I don't have any SATA so I don't really know but doesn't SATA use SCSI drivers?

You can try "Intel PIIXn chipsets support" or perhaps "SLC90E66 chipset support" bit I really don't know if either will work.

Edit: it seems the driver you need (have?) is "Intel PIIX/ICH SATA support (NEW)"
found in SCSI device support ---> SCSI low-level drivers ---> Serial ATA (SATA) support

Someone who knows more about SATA/SCSI is going to have to step in here, as it is my understanding that hdparm cannot act on SCSI disks (:: SATA...).
 
Old 03-03-2005, 03:43 PM   #7
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Again i'm not overly sure on this. I have ATA_PIIX as a module, is that it? So then i modprobed ata_piix and tried using hdparm again but with no luck. But then if u say hdparm can't do SATA then thats why!

Anyway here is the relevent section in my .config

# SCSI low-level drivers
#
CONFIG_BLK_DEV_3W_XXXX_RAID=m
CONFIG_SCSI_3W_9XXX=m
CONFIG_SCSI_7000FASST=m
CONFIG_SCSI_ACARD=m
CONFIG_SCSI_AHA152X=m
CONFIG_SCSI_AHA1542=m
CONFIG_SCSI_AACRAID=m
CONFIG_SCSI_AIC7XXX=m
CONFIG_AIC7XXX_CMDS_PER_DEVICE=32
CONFIG_AIC7XXX_RESET_DELAY_MS=5000
# CONFIG_AIC7XXX_DEBUG_ENABLE is not set
CONFIG_AIC7XXX_DEBUG_MASK=0
CONFIG_AIC7XXX_REG_PRETTY_PRINT=y
CONFIG_SCSI_AIC7XXX_OLD=m
CONFIG_SCSI_AIC79XX=m
CONFIG_AIC79XX_CMDS_PER_DEVICE=32
CONFIG_AIC79XX_RESET_DELAY_MS=15000
# CONFIG_AIC79XX_ENABLE_RD_STRM is not set
# CONFIG_AIC79XX_DEBUG_ENABLE is not set
CONFIG_AIC79XX_DEBUG_MASK=0
CONFIG_AIC79XX_REG_PRETTY_PRINT=y
CONFIG_SCSI_DPT_I2O=m
CONFIG_SCSI_IN2000=m
CONFIG_MEGARAID_NEWGEN=y
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_SCSI_SATA=y
CONFIG_SCSI_SATA_SVW=m
CONFIG_SCSI_ATA_PIIX=m
CONFIG_SCSI_SATA_NV=m
CONFIG_SCSI_SATA_PROMISE=m
CONFIG_SCSI_SATA_SX4=m
CONFIG_SCSI_SATA_SIL=m
CONFIG_SCSI_SATA_SIS=m
CONFIG_SCSI_SATA_VIA=m
CONFIG_SCSI_SATA_ULI=m
CONFIG_SCSI_SATA_VITESSE=m
CONFIG_SCSI_BUSLOGIC=m
# CONFIG_SCSI_OMIT_FLASHPOINT is not set
CONFIG_SCSI_DMX3191D=m
CONFIG_SCSI_DTC3280=m
CONFIG_SCSI_EATA=m
CONFIG_SCSI_EATA_TAGGED_QUEUE=y
CONFIG_SCSI_EATA_LINKED_COMMANDS=y
CONFIG_SCSI_EATA_MAX_TAGS=16
CONFIG_SCSI_EATA_PIO=m
CONFIG_SCSI_FUTURE_DOMAIN=m
CONFIG_SCSI_GDTH=m
CONFIG_SCSI_GENERIC_NCR5380=m
CONFIG_SCSI_GENERIC_NCR5380_MMIO=m
CONFIG_SCSI_GENERIC_NCR53C400=y
CONFIG_SCSI_IPS=m
CONFIG_SCSI_INIA100=m
CONFIG_SCSI_PPA=m
CONFIG_SCSI_IMM=m
# CONFIG_SCSI_IZIP_EPP16 is not set
# CONFIG_SCSI_IZIP_SLOW_CTR is not set
CONFIG_SCSI_NCR53C406A=m
CONFIG_SCSI_SYM53C8XX_2=m
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
# CONFIG_SCSI_SYM53C8XX_IOMAPPED is not set
CONFIG_SCSI_LPFC=m
CONFIG_SCSI_IPR=m
CONFIG_SCSI_IPR_TRACE=y
CONFIG_SCSI_IPR_DUMP=y
CONFIG_SCSI_PAS16=m
CONFIG_SCSI_PSI240I=m
CONFIG_SCSI_QLOGIC_FAS=m
CONFIG_SCSI_QLOGIC_ISP=m
CONFIG_SCSI_QLOGIC_FC=m
CONFIG_SCSI_QLOGIC_FC_FIRMWARE=y
CONFIG_SCSI_QLOGIC_1280=m
CONFIG_SCSI_QLA2XXX=m
CONFIG_SCSI_QLA21XX=m
CONFIG_SCSI_QLA22XX=m
CONFIG_SCSI_QLA2300=m
CONFIG_SCSI_QLA2322=m
CONFIG_SCSI_QLA6312=m
CONFIG_SCSI_QLA6322=m
CONFIG_SCSI_SYM53C416=m
CONFIG_SCSI_DC395x=m
CONFIG_SCSI_DC390T=m
CONFIG_SCSI_T128=m
CONFIG_SCSI_U14_34F=m
CONFIG_SCSI_U14_34F_TAGGED_QUEUE=y
CONFIG_SCSI_U14_34F_LINKED_COMMANDS=y
CONFIG_SCSI_U14_34F_MAX_TAGS=8
CONFIG_SCSI_ULTRASTOR=m
CONFIG_SCSI_NSP32=m
CONFIG_SCSI_DEBUG=m
 
Old 03-03-2005, 03:57 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
But then if u say hdparm can't do SATA then thats why!
I don't know for sure about SATA. I do know you can't use hdparm on SCSI. However, if you had DMA working with an earlier distro, it must be possible, I just don't know personally how to do it.
 
Old 03-04-2005, 08:38 AM   #9
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks for all your help on this so far bulliver.

I'm gonna try compiling 'Intel PIIX/ICH SATA support' into the kernel then, as it's just a module at the moment, and see if that makes any difference.

I'm gonna need some help with this tho. So far i have gone to /usr/src/linux and ran make menuconfig, then i included 'Intel PIIX/ICH SATA support' and saved the .config.

So now what do i do? I have read some howto's on compiling the kernel but it seems some differ slightly. I wanna get this right so could someone give me steps that i can do for compiling the kernel on my system, suse 9.2 kernel 2.6.8-24.11.
 
Old 03-04-2005, 06:30 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Just wondering. There is no DMA thing for SCSI disks. If SATA works like SCSI - is there DMA option at all?
 
Old 03-04-2005, 07:28 PM   #11
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Well I have included the ATA_PIIX into my kernel, compiled and installed it but it has made no difference. I have been going through the kernel config and have noticed an option 'Enable DMA Only For Disks', does this mean the kernel won't let me use DMA with my ide dvd and cd rw's? Maybe i should remove that from the kernel?

Another thing, i noticed at boot it will mount everything from fstab before trying any dma option. Could my options in /etc/fstab be stopping dme being enabled?

/dev/sda7 / ext3 acl,user_xattr 1 1
/dev/sda6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvdrecorder /media/dvdrecorder subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
/dev/sda2 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /windows/E vfat users,gid=users,umask=0002,iocharset=utf8 0 0
 
Old 03-09-2005, 06:15 AM   #12
cootetom
Member
 
Registered: May 2004
Location: UK
Distribution: Ubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
Well i've tried compiling the kernel without the option 'Enable DMA for disks only' but this doesn't work either. I'm stuck on this maybe as Emerson said i just can't have dma on my machine.
 
Old 06-01-2006, 08:38 AM   #13
RBEmerson
Member
 
Registered: May 2006
Location: Skippack
Distribution: SuSE Linux 11.1
Posts: 63

Rep: Reputation: 15
Quote:
Originally Posted by cootetom
Well i've tried compiling the kernel without the option 'Enable DMA for disks only' but this doesn't work either. I'm stuck on this maybe as Emerson said i just can't have dma on my machine.
I said that? Or maybe you're quoting my uncle Ralph Waldo? Trust me, not much transcendental about DMA settings...

Anyway, YaST does offer DMA control in the hardware section and has since at least 9.x. BTDT a lot lately.
 
  


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 Off
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
which DVD player can play DVD from hard drive *and* support DVD Menu ? tho_x_tran Linux - Software 16 11-16-2006 02:00 PM
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
dma and dvd MightyKC Linux - General 11 07-04-2003 08:29 AM
DMA for a DVD Drive? Morpheusman Linux - Newbie 3 08-02-2002 04:56 PM

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

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