View previous topic :: View next topic |
Author |
Message |
vladms n00b
Joined: 26 Jul 2005 Posts: 54 Location: Romanian in Delft, Netherlands
|
Posted: Tue Aug 09, 2005 8:13 pm Post subject: Freeze when playing from audio cd [almost SOLVED] |
|
|
Hello all,
I had the following problem: when I tried playing audio cd without a direct connection between the sound card and the cdrom drive I experienced regular freezes. The only option was to reset the computer.
I have a NEC cdrom drive and an nforce3 motherboard with onboard sound.
After a day of search I didn't found anything of intereset regarding this and I thought I should post a topic, but I stumbled on a topic about hdparm. Even if the topic wasn't helpfull after half our of testing I found out what could solve problem:
Code: | hdparm -d 0 /dev/cdrom |
(turn off dma).
Does anybody have a clue why activating DMA caused my system to freeze ?
After some more digging I found out that my gentoo automaticly set DMA on all IDE devices (/etc/conf.d/hdparm). Is this a good thing ? (and my freeze was maybe an unfortunate case.... )
Hope this helps somebody.
Good luck configuring Gentoo _________________ Vlad-Mihai Sima |
|
Back to top |
|
|
VStrider Apprentice
Joined: 27 Jun 2005 Posts: 244 Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N
|
Posted: Tue Aug 09, 2005 8:27 pm Post subject: |
|
|
Maybe your cdrom drive is too old and doesn't support dma? Maybe the problem is with an old IDE cable?
Anyway if your drive doesn't support dma, enabling it would make things alot slower. You can check whether dma is supported and which modes, if you run hdparm -i /dev/yourdrivehere |
|
Back to top |
|
|
vladms n00b
Joined: 26 Jul 2005 Posts: 54 Location: Romanian in Delft, Netherlands
|
Posted: Tue Aug 09, 2005 8:53 pm Post subject: |
|
|
The result of hdparm -i
Code: |
/dev/cdrom:
Model=NEC CD-ROM DRIVE:282, FwRev=4.E0, SerialNo=
Config={ 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=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
* signifies the current active mode
|
Don't know though what kind of cable is it inside . _________________ Vlad-Mihai Sima |
|
Back to top |
|
|
VStrider Apprentice
Joined: 27 Jun 2005 Posts: 244 Location: 1 to Rule All way, Moria Gate, Middle Earth, SAU 70N
|
Posted: Tue Aug 09, 2005 9:33 pm Post subject: |
|
|
hmm, you said you disabled dma....yet your drive is running on udma2
Anyway your drive looks like it supports dma, so you should be ok. I don't know about your problem, but I think it's unlikely(but I don't overrule it completely, you never know...) that the problem is with DMA. Maybe it was a coincidence that when you turned it off the problem dissapeared? |
|
Back to top |
|
|
vladms n00b
Joined: 26 Jul 2005 Posts: 54 Location: Romanian in Delft, Netherlands
|
Posted: Tue Aug 09, 2005 9:51 pm Post subject: |
|
|
This is what I get. Don't know what/who uses/don't use dma.
Code: |
host ~ # hdparm -d /dev/cdrom
/dev/cdrom:
using_dma = 0 (off)
host ~ # hdparm -i /dev/cdrom
/dev/cdrom:
Model=NEC CD-ROM DRIVE:282, FwRev=4.E0, SerialNo=
Config={ 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=yes, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2
AdvancedPM=no
* signifies the current active mode
|
The fact is that the other ide disk and the cdrom with data disk works perfect.
If I enable dma for the cd and I skip song in xmms after 3-4 I get a freeze (tested 2 times). Without it keeps skiping (for as long as I had patiance to keep 'b' pressed ) _________________ Vlad-Mihai Sima |
|
Back to top |
|
|
|
|
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
|
|