Re: [linux-audio-dev] Re: [announce] [patch] Voluntary Kernel Preemption Patch

From: Takashi Iwai
Date: Tue Jul 13 2004 - 04:38:20 EST


At Tue, 13 Jul 2004 02:25:01 -0700,
Andrew Morton wrote:
>
> Takashi Iwai <tiwai@xxxxxxx> wrote:
> >
> > t Tue, 13 Jul 2004 02:00:25 -0700,
> > Andrew Morton wrote:
> > >
> > > Lee Revell <rlrevell@xxxxxxxxxxx> wrote:
> > > >
> > > > Here are some more. These result from using mplayer with ALSA OSS
> > > > emulation:
> > > >
> > > > Jul 13 04:31:49 mindpipe kernel:
> > > > Jul 13 04:31:49 mindpipe kernel: ALSA /usr/src/alsa-cvs-1.0.5/alsa-driver/alsa-kernel/core/pcm_lib.c:169: XRUN: pcmC0D0p
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+1387264/5353478] snd_pcm_period_elapsed+0x2ca/0x410 [snd_pcm]
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+1455070/5353478] snd_emu10k1_interrupt+0x3c8/0x480 [snd_emu10k1]
> > > > Jul 13 04:31:49 mindpipe kernel: [handle_IRQ_event+49/96] handle_IRQ_event+0x31/0x60
> > > > Jul 13 04:31:49 mindpipe kernel: [do_IRQ+155/352] do_IRQ+0x9b/0x160
> > > > Jul 13 04:31:49 mindpipe kernel: [common_interrupt+24/32] common_interrupt+0x18/0x20
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+1394929/5353478] snd_pcm_format_set_silence+0x4b/0x1d0 [snd_pcm]
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+2165815/5353478] snd_pcm_oss_change_params+0x5a1/0x850 [snd_pcm_oss]
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+2166620/5353478] snd_pcm_oss_get_active_substream+0x76/0x90 [snd_pcm_oss]
> > > > Jul 13 04:31:49 mindpipe kernel: [__crc_totalram_pages+2170556/5353478] snd_pcm_oss_get_formats+0x26/0x100 [snd_pcm_oss]
> > >
> > > Looks like those memcpys in snd_pcm_format_set_silence() are hurting.
> >
> > Hmm, but it's not in lock at least...
>
> It is - see chrdev_open().

Oh yeah...

> You can do unlock_kernel()/lock_kernel() in soundcore_open().

I remember ioctl() is also in lock_kernel()?


Takashi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/