Re: [SLUG] DMA doesn't seem to be be working, but everything looks aok...

From: Eben King (eben1@tampabay.rr.com)
Date: Tue Mar 29 2005 - 00:17:24 EST


On Sun, 27 Mar 2005, Eric Jahn wrote:

> Need a little troubleshooting/conceptual direction here: so I pop a
> video into my DVD player and it plays slightly choppy in both Xine and
> Totem. I make a copy with DVD backup and it plays back perfectly
> straight from the hard disk. Mmm-kay. So the first thing that comes to
> mind is DMA for my DVD drive isn't working. Sure enough, during DVD
> playback, when I watch the light for my hard disk, it is always
> flashing. Funny thing is, according to the following output, DMA is
> fully enabled and functioning. What gives?

> 64funky:/usr/src/linux# hdparm -d 1 /dev/hdc
>
> /dev/hdc:
> setting using_dma to 1 (on)
> HDIO_SET_DMA failed: Operation not permitted
> using_dma = 0 (off)

Yep, DMA's off and can't be turned on.

> cat /proc/pci:
> ...
> Bus 2, device 0, function 0:
> VGA compatible controller: ATI Technologies Inc RV280 [Radeon 9200 SE] (rev 1).
> IRQ 12.
> Master Capable. Latency=32. Min Gnt=8.
> Prefetchable 32 bit memory at 0xc0000000 [0xcfffffff].
> I/O at 0xc000 [0xc0ff].
> Non-prefetchable 32 bit memory at 0xd1000000 [0xd100ffff].

What about your IDE controller? Mine looks like this:

Bus 0, device 17, function 1:
  IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 6).
    Master Capable. Latency=32.
    I/O at 0xa400 [0xa40f].

You need to have support for that controller available (compiled in if you
boot from IDE, although an initrd may remove that restriction). I have
this:

ATA/IDE/MFM/RLL support --->
 <*> ATA/IDE/MFM/RLL support
 IDE, ATA and ATAPI Block devices --->
  <*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
  [*] PCI IDE chipset support
  [*] Generic PCI bus-master DMA support
  [*] Use PCI DMA by default when available
  [*] ATA Work(s) In Progress (EXPERIMENTAL)
  <*> VIA82CXXX chipset support

[snip]
> PIO modes: pio0 pio1 pio2 pio3 pio4
> DMA modes: mdma0 mdma1 mdma2
> UDMA modes: udma0 udma1 *udma2
> AdvancedPM=no
>
> * signifies the current active mode

Maybe that asterisk means that _if_ it uses UDMA, _then_ it uses udma2?

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

"You're one of those condescending Unix computer users!" "Here's a nickel, kid. Get yourself a better computer" - Dilbert.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:25:17 EDT