Skip to contentSkip to conversation

IRQ blocking when reading audio CDs

DISCUSSION Gundolf Kiefer 3 participants 4 messages Sep 26, 2004 – Sep 29, 2004

lore
Share & tools
lore
#0 lore raw

Dear Jens (& Christoph),

on my media PC (a Pentium II 350 MHz running Debian Woody with Kernel 2.4.25), I have problems using LIRC 0.6.6 with a serial IR reveiver when at the same time some application (cdparanoia, xmms/Audio CD reader) is reading audio data from a CD.

After some testing and exploration of the LIRC source code, I figured out that during audio CD reading interrupts seem to be blocked for a longer time (in the order of milliseconds), while lirc_serial measures the exact time between two serial interrupts and thus relies on an accurate timing. In consequence, LIRC does not recognize the IR sequences, there are no errors reported. Assigning a high priority to the serial interrupt using "irq_tune" did not help.

Is there a way to make the audio CD read operations less blocking? Or does any of you know a different source of the problem I observed?

Thank you very much,

Gundolf

#1 lore raw
Quoted 15 lines · Gundolf Kiefer

Dear Jens (& Christoph),

on my media PC (a Pentium II 350 MHz running Debian Woody with Kernel 2.4.25), I have problems using LIRC 0.6.6 with a serial IR reveiver when at the same time some application (cdparanoia, xmms/Audio CD reader) is reading audio data from a CD.

After some testing and exploration of the LIRC source code, I figured out that during audio CD reading interrupts seem to be blocked for a longer time (in the order of milliseconds), while lirc_serial measures the exact time between two serial interrupts and thus relies on an accurate timing. In consequence, LIRC does not recognize the IR sequences, there are no errors reported. Assigning a high priority to the serial interrupt using "irq_tune" did not help.

Quoted 2 lines

Is there a way to make the audio CD read operations less blocking? Or does any of you know a different source of the problem I observed?

Upgrade to 2.6, it can use DMA for cdda extraction. If you cannot for some reason, Andrew had an ide-cd hack to enable dma in 2.4 for this.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 10 lines · Jens Axboe
Quoted 6 lines · Gundolf Kiefer

Dear Jens (& Christoph),

on my media PC (a Pentium II 350 MHz running Debian Woody with Kernel 2.4.25), I have problems using LIRC 0.6.6 with a serial IR reveiver when at the same time some application (cdparanoia, xmms/Audio CD reader) is reading audio data from a CD.

Upgrade to 2.6, it can use DMA for cdda extraction. If you cannot for some reason, Andrew had an ide-cd hack to enable dma in 2.4 for this.

Seems like it should also work in PIO mode as long as unmask_irq is set.

Lee

#3 lore raw

Ok, I applied Andrew Morton's updated CDROMREADAUDIO DMA patch from Jan 2003 (http://lwn.net/Articles/19386/) to kernel 2.4.25, and everything seems to work fine now.

Thanks, Jens & Lee!

Quoted 17 lines · On 2004.09.28 21:21 Lee Revell wrote:
Quoted 5 lines · Jens Axboe
Quoted 4 lines · Gundolf Kiefer

Dear Jens (& Christoph),

on my media PC (a Pentium II 350 MHz running Debian Woody with Kernel 2.4.25), I have problems using LIRC 0.6.6 with a serial IR reveiver when

at

Quoted 5 lines
Quoted 2 lines

the same time some application (cdparanoia, xmms/Audio CD reader) is reading audio data from a CD.

Upgrade to 2.6, it can use DMA for cdda extraction. If you cannot for some reason, Andrew had an ide-cd hack to enable dma in 2.4 for this.

Seems like it should also work in PIO mode as long as unmask_irq is set.

Lee