Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DMA is disabled for DVD player
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
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Wed Jan 21, 2004 6:49 am    Post subject: DMA is disabled for DVD player Reply with quote

A couple of days, I realized that dma is not enabled for dvd player.
I was surprised, because the hdparm script runs during boot, with the following arguments
Code:

disc0_args="-c1 -d1 -k1 -m16 -u1 -X69"
 disc1_args="-c1 -d1 -k1 -m16 -u1 -X69"
 cdrom0_args="-c1 -d1 -k1 -u1"
 cdrom1_args="-c1 -d1 -k1 -u1"


I did not pay attention, but today I show this strange message after I run dmesg:
Code:

ISO 9660 Extensions: Microsoft Joliet Level 3
request_module: failed /sbin/modprobe -- nls_iso8859-1. error = 256
Unable to load NLS charset iso8859-1
Unable to load NLS charset iso8859-1
ISO 9660 Extensions: RRIP_1991A
hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40LastFailedSense 0x04
hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40LastFailedSense 0x04
hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40LastFailedSense 0x04
hdc: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
hdc: cdrom_decode_status: error=0x40LastFailedSense 0x04
hdc: DMA disabled
hdc: ide_intr: huh? expected NULL handler on exit
hdc: ATAPI reset complete


Ok, I forgot to compile in the kernel support for nls_iso8869-1 ,
but why do I get the "Dma disabled" ? Could it be because of that?

I did a search on google, and I found that dma is disabled if you insert a blank dvd-r drive, but I did not do that.

Any idea is greatly appreciated
Thank you
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7731
Location: Underworld

PostPosted: Wed Jan 21, 2004 7:33 pm    Post subject: Reply with quote

Are you sure that DMA is disabled? Maybe this message is before hdparm run. Try "hdparm -i /dev/hdc"
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
MasterX
Veteran
Veteran


Joined: 26 Jun 2003
Posts: 1165

PostPosted: Thu Jan 22, 2004 2:30 am    Post subject: Reply with quote

Unfortunately it is disabled
Code:

hdparm /dev/hdc

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


The interesting thing is that dma is disabled only for the dvd player not for the cdwriter!!

I do not know if it is going to make any difference, but I forgot to say that I am using 2.6.1 kernel.
Back to top
View user's profile Send private message
Dolio
l33t
l33t


Joined: 17 Jun 2002
Posts: 650

PostPosted: Sat Jan 24, 2004 3:13 pm    Post subject: Reply with quote

The same thing happens here.

I don't know if it happened when I had 2.4 kernels (it's been a while), but I have the same symptoms as you do.

I can hdparm the drive to turn on DMA, but as soon as I play a dvd it pops back to not having dma (which may be responsible for my choppy video).

What kind of motherboard and dvd drive do you have? I have an Aopen DVD 1640 Pro and an IWill KA266-R here (relevant IDE chipset is ALi M5229 (M15x3 driver in the kernel)).

For what it's worth, I can't use DMA in Windows either with this drive. If I set it to anything other than PIO then inserting something into the drive almost freezes windows until I eject. In other words, I'm not convinced this isn't a hardware problem for me, although I don't know whether it's a problem with the DVD-ROM or the motherboard.

It'd be nice to know the answer to all this so I could watch DVDs in Linux. :)
_________________
They don't have a good bathroom to do coke in.
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