Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DVD Drive Issues - DMA turns off/kernel messages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
markusg
n00b
n00b


Joined: 29 Dec 2002
Posts: 16

PostPosted: Thu Jan 23, 2003 2:19 am    Post subject: DVD Drive Issues - DMA turns off/kernel messages Reply with quote

Hopefully someone can help me with this.

I have a AOpen DVD drive which works fine in Windows XP when playing DVDs/etc. Here's the output from hdparm -i:

Model=AOpen 12xDVD-ROM DRIVE 10042000, FwRev=R04, 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:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
Drive conforms to: device does not report version: 1 2 3 4

I've attempted to get this drive to work properly with Gentoo, but when using both Ogle and Xine to play DVDs, I get horrible perfomance.

First, I noticed that DMA was not on, so I issued:

hdparm -d 1 /dev/hda (which is DVD drive, my hard drives are on another controller). After I do that, hdparm gives me this output:

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

Looks like DMA is now on, so I play a DVD... and still poor, jumpy, video.

Also, oddly, DMA decides to turn itself off. Also, I seem to get these messages (via dmesg):

hda: ATAPI reset complete
hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hda: cdrom_decode_status: error=0x30
hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hda: cdrom_decode_status: error=0x30
hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hda: cdrom_decode_status: error=0x30
hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hda: cdrom_decode_status: error=0x30
hda: ATAPI reset complete

I've made sure that the kernel has support for my IDE chipset. I've tried mounting/not mounting the DVD. I've also pulled everything else off the channel with no improvement.

I'd chalk it up to a bad DVD drive, cable or controller, but it works fine in XP with the same DVD and drive. I'd rather not have to boot into XP to play DVDs :).

Any suggestions?
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Thu Jan 23, 2003 2:49 am    Post subject: Reply with quote

could you post your /proc/ide/hda/settings?

And you can change your configs directly there. Maybe you could try different access modes. See http://linux-sxs.org/hdptune.html this page for info in accepted modes.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
markusg
n00b
n00b


Joined: 29 Dec 2002
Posts: 16

PostPosted: Thu Jan 23, 2003 3:40 am    Post subject: Reply with quote

Here it is:

Code:

name                    value           min             max             mode
----                    -----           ---             ---             ----
breada_readahead        4               0               127             rw
current_speed           66              0               69              rw
dsc_overlap             0               0               1               rw
file_readahead          0               0               2097151         rw
ide_scsi                0               0               1               rw
init_speed              12              0               69              rw
io_32bit                0               0               3               rw
keepsettings            0               0               1               rw
max_kb_per_request      64              1               127             rw
nice1                   1               0               1               rw
number                  0               0               3               rw
pio_mode                write-only      0               255             w
slow                    0               0               1               rw
unmaskirq               0               0               1               rw
using_dma               0               0               1               rw


I'll take a look at the page as well, thanks for the suggestion.

edit: Seems that link is no good.. bummer.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum