All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: linux-kernel@vger.kernel.org
Subject: Can't enable DMA on my DVD in 2.6.1?
Date: 17 Jan 2004 18:22:33 -0500	[thread overview]
Message-ID: <873cae17pi.fsf@stark.xeocode.com> (raw)



Now I have a strange situation. I finally got the dvd-rom and cd burner
devices to be recognized at all under 2.6.1 and now they work but DMA seems to
be off.

The situation: Asus P4P800 motherboard with Intel ICH5 chipset in Enhanced
mode "SATA Only". Using 2.6.1 with ata_piix handling the two SATA hard drives
(sda, sdb) and ide-cdrom handling the PATA drive, cd burner, and dvd (hda,
hdc, hdd).

When I play DVDs using Xine it seems to be barely able to keep up and
occasionally stutters. Much as if DMA were disabled. And indeed I see it
apparently isn't. 

Moreoever when I try to turn it on I get EPERM. And I don't see the kernel
option to use DMA by default any more. I suppose that went out with 2.6.1?

bash-2.05b# hdparm -v /dev/hdd

/dev/hdd:
 HDIO_GET_MULTCOUNT failed: Invalid argument
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  1 (on)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Invalid argument

bash-2.05b# hdparm -d 1 /dev/hdd

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


bash-2.05b# hdparm -I /dev/hdd

/dev/hdd:

ATAPI CD-ROM, with removable media
	Model Number:       LG       DVD-ROM DRD-8160B              
	Serial Number:      
	Firmware Revision:  1.01    
Standards:
	Used: ATAPI for CD-ROMs, SFF-8020i, r2.5
	Supported: CD-ROM ATAPI-2 
Configuration:
	DRQ response: 50us.
	Packet size: 12 bytes
Capabilities:
	LBA, IORDY(can be disabled)
	DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 
	     Cycle time: min=120ns recommended=150ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=227ns  IORDY flow control=120ns


bash-2.05b# hdparm -i /dev/hdd

/dev/hdd:

 Model=LG DVD-ROM DRD-8160B, FwRev=1.01, 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:227,w/IORDY:120}, tDMA={min:120,rec:150}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=no

 * signifies the current active mode

-- 
greg


             reply	other threads:[~2004-01-17 23:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-17 23:22 Greg Stark [this message]
2004-01-29  2:24 ` Can't enable DMA on my DVD in 2.6.1? Eric
2004-01-29 18:07   ` Greg Stark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873cae17pi.fsf@stark.xeocode.com \
    --to=gsstark@mit.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.