LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-09-2007, 09:00 AM   #1
dont_stop_me
Member
 
Registered: Sep 2005
Location: Romania
Distribution: Slackware 12
Posts: 42

Rep: Reputation: 15
could not enable cdrom/dvd dma acces


I am trying to enable the dma acces mode for my DVD-rom but I get this error:
Code:
/dev/hdb:
 setting 32-bit IO_support flag to 3
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 IO_support    =  3 (32-bit w/sync)
 using_dma     =  0 (off)
And this is a part of my .conf file for the kernel:
Code:
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.21.5
# Sun Jul  8 17:49:13 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
dmesg:
Code:
Linux version 2.6.21.5-smp (root@darkstar) (gcc version 4.1.2) #1 SMP Sun Jul 8 17:59:58 EEST 2007
...
Entering add_active_range(0, 0, 393136) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   229376
  HighMem    229376 ->   393136
early_node_map[1] active PFN ranges
    0:        0 ->   393136
On node 0 totalpages: 393136
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 1279 pages used for memmap
  HighMem zone: 162481 pages, LIFO batch:31
DMI 2.3 present.


Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hdb: SONY DVD RW DRU-710A, ATAPI CD/DVD-ROM drive
ide1: I/O resource 0x170-0x177 not free.
ide1: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdb: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
Loading iSCSI transport class v2.0-724.
ata_piix 0000:00:1f.2: version 2.10ac1
ata_piix 0000:00:1f.2: MAP [ IDE IDE P0 P1 ]
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 18 (level, low) -> IRQ 16
ata: 0x1F0 IDE port busy
ata: conflict with ide0
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: DUMMY
ata2: SATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
scsi0 : ata_piix
scsi1 : ata_piix
ata2.00: ATA-7: ST3160811AS, 3.AAE, max UDMA/133
ata2.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      ST3160811AS      3.AA PQ: 0 ANSI: 5
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
what should i do?
 
Old 07-09-2007, 09:13 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You are setting the DMA option as the root user, correct? You won't be able to do it with a normal user account.
 
Old 07-09-2007, 09:23 AM   #3
dont_stop_me
Member
 
Registered: Sep 2005
Location: Romania
Distribution: Slackware 12
Posts: 42

Original Poster
Rep: Reputation: 15
right, I'm using root account I get the same error with hdparm if i put in rc.local
 
Old 07-09-2007, 09:24 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

What is the output as root from cli;
Code:
#hdparm -iI /dev/hdb
This will get you the device parameters to show what the device is able to be setup as.

Do a 'man hdparm' to understand the command.
 
Old 07-09-2007, 09:26 AM   #5
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Alright, in that case, have you tried setting the DMA from a live CD? So that you have a system with a (hopefully) clean configuration and fully featured kernel?

I find that is usually the easiest way to diagnose a kernel problem. If the thing I am trying to do doesn't appear to work in any live CDs, then I know it isn't something I did wrong. It is either the hardware or the kernel itself. For example, you may need to compile in specific support for your chipset. I know on my laptop I have to, or else DMA will always fail.
 
Old 07-10-2007, 01:52 AM   #6
merer
LQ Newbie
 
Registered: Jul 2007
Location: Vilnius,Lithuania
Distribution: Slackware 12.2
Posts: 20

Rep: Reputation: 1
I had the same problem on Slackware 12, with Intel ICH6 SATA Controller. My hard disk is SATA while DVD is IDE. And i finally found a solution that helped.
I only had to change BIOS IDE mode to native. The difference is that CD is now /dev/hda instead of /dev/hdc.

You can read more about the problem and how to solve it here:
http :// linux-ata.org/faq.html (sorry, it's my first post, so I can't post links yet. Just delete spaces.)

Last edited by merer; 07-10-2007 at 01:55 AM.
 
Old 07-10-2007, 03:39 AM   #7
dont_stop_me
Member
 
Registered: Sep 2005
Location: Romania
Distribution: Slackware 12
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks a lot, this helped. I had problems before with this chipset when i tried to use one ide and one sata harddrive, since I have now only sata works fine.
I have Asus motherboard with intel chipset, my option to enable was: "enhanced mode"
to post a link there is a button in the textbar wich looks like the earth globe
 
  


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
Dell D610 enable dvd DMA problem rcastro1414 Linux - Laptop and Netbook 8 07-05-2007 05:15 PM
Enable DMA on DVD drives puppy Ubuntu 5 09-08-2005 07:09 PM
Enable DMA for IDE CDROM RHEL3 sbrewer Linux - Hardware 1 11-30-2004 06:33 AM
How do I enable DMA for my DVD jbasement Debian 2 10-14-2004 07:55 PM
can not enable dma on laptop cd/dvd megaspaz Linux - Laptop and Netbook 2 09-08-2003 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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