[linux-audio-dev] Re: any update on the pcmcia bug blocking Audigy2 notebook sound card driver development

2005-08-07 Thread Andrew Morton
Raymond Lai <[EMAIL PROTECTED]> wrote: > > Hi all, > > I remember there's a kernel pcmcia bug preventing the development for > the Audigy2 pcmcia notebook sound card driver. > > See > http://www.alsa-project.org/alsa-doc/index.php?vendor=vendor-Creative_Labs#matrix > > Is there any new update

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

2004-09-17 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > if you're scared that there are too many cond_resched (I'm not scared > and people should enable them anyways if they make a difference, they > still should be less than the number of spin_unlocks with preempt > enabled), then you should add a con

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

2004-07-20 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > discovered I can reliably produce a large XRUN by toggling Caps Lock, > Scroll Lock, or Num Lock. This is with 2.6.8-rc1-mm1 + voluntary > preempt That's odd. I wonder if the hardware is sick. What is the duration is the underrun? The info you sent d

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > I'm missing where cond_resched is needed inside lock_kernel though, Anywhere where we do lots of work inside lock_kernel(). Various ioctls and ext3 journal recovery are instances.

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > > And it's currently OK to add a might_sleep() to (say) an inline path which > > is expended a zillion times because we know it'll go away for production > > builds. If those things become cond_resched() calls instead, the code > > increase will be p

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > What I'm doing is basically to replace all might_sleep with cond_resched I cannot see a lot of point in that. They are semantically different things and should look different in the source. And it's currently OK to add a might_sleep() to (say) an i

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 13, 2004 at 03:25:32PM -0700, Andrew Morton wrote: > > local_irq_disable(); > > > > function_which_calls_cond_resched(); > > > > local_irq_enable(); > > >

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > > Sleeping with local interrupts disabled is usually a bug, so we should > > prefer to keep that check in might_sleep(). > > either it's _always_ a bug including for entry.S or sched_yield, or it's > _never_ a bug. I don't understand the "usually".

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > On Tue, Jul 13, 2004 at 11:48:29AM -0700, Andrew Morton wrote: > > sys_sched_yield() also calls schedule() with local interrupts disabled. > > It's a bit grubby, but saves a few cycles. Nick and Ingo prefer it tha

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

2004-07-14 Thread Andrew Morton
Andrea Arcangeli <[EMAIL PROTECTED]> wrote: > > On Mon, Jul 12, 2004 at 05:08:44PM -0700, Andrew Morton wrote: > > of code then it's pretty obvious what's happening. If the trace is due to > > a long irq-off time then it will point up into the offending >

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

2004-07-13 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > Would this explain these? When running JACK with settings that need > sub-millisecond latencies, I get them when I generate any load at all on > the system (typing, switching windows, etc). I also get lots of these > if I run JACK from an X terminal, but

[linux-audio-dev] Re: desktop and multimedia as an afterthought?

2004-07-13 Thread Andrew Morton
Thomas Charbonnel <[EMAIL PROTECTED]> wrote: > > On my system xruns seem related to the keyboard. I get xruns on ~8.079 > seconds boundaries when the keyboard is in use, regardless of the load. > My usual test is running jack with 2 periods of 64 samples and no > client, and keep a key pressed.

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

2004-07-13 Thread Andrew Morton
Takashi Iwai <[EMAIL PROTECTED]> wrote: > > > You can do unlock_kernel()/lock_kernel() in soundcore_open(). > > I remember ioctl() is also in lock_kernel()? yes, you'll need to do unlock_kernel/lock_kernel there too. If someone changes the rules, or otherwise calls your ioctl withoht lock_kerne

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

2004-07-13 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > On Tue, 2004-07-13 at 05:00, Andrew Morton wrote: > > Lee Revell <[EMAIL PROTECTED]> wrote: > > > > > > > framebuffer scrolling inside lock_kernel(). Tricky. Suggest you use X or > > > > v

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

2004-07-13 Thread Andrew Morton
Takashi Iwai <[EMAIL PROTECTED]> wrote: > > t Tue, 13 Jul 2004 02:00:25 -0700, > Andrew Morton wrote: > > > > Lee Revell <[EMAIL PROTECTED]> wrote: > > > > > > Here are some more. These result from using mplayer with ALSA OSS > &g

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

2004-07-13 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > > framebuffer scrolling inside lock_kernel(). Tricky. Suggest you use X or > > vgacon. You can try removing the lock_kernel() calls from do_tty_write(), > > but make sure you're wearing ear protection. > > > > OK, I figured this was not an easy one

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

2004-07-13 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > Jul 13 04:27:50 mindpipe kernel: ALSA > /usr/src/alsa-cvs-1.0.5/alsa-driver/alsa-kernel/core/pcm_lib.c:169: XRUN: pcmC0D0p > Jul 13 04:27:50 mindpipe kernel: [__crc_totalram_pages+1387264/5353478] > snd_pcm_period_elapsed+0x2ca/0x410 [snd_pcm] > Jul 13

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

2004-07-12 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > Here are a few more: > > Jul 12 22:20:41 mindpipe kernel: ALSA > /usr/src/alsa-cvs-1.0.5/alsa-driver/alsa-kernel/core/pcm_lib.c:169: XRUN: pcmC0D0p > Jul 12 22:20:41 mindpipe kernel: [__crc_totalram_pages+1387264/5353478] > snd_pcm_period_elapsed+0x2c

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

2004-07-12 Thread Andrew Morton
(please don't top-post) Jan Depner <[EMAIL PROTECTED]> wrote: > > Is this problem strictly with reiserfs in 2.6 or is it also a problem > with 2.4. I actually experienced fewer xruns with reiserfs vs ext3 on > 2.4 (preempt/ll) but I have no hard numbers to back that up. Actually, the 2.4 low-la

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

2004-07-12 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > > resierfs: yes, it's a problem. I "fixed" it multiple times in 2.4, but the > > fixes ended up breaking the fs in subtle ways and I eventually gave up. > > > > Interesting. There is an overwhelming consensus amongst Linux audio > folks that you sho

[linux-audio-dev] Re: desktop and multimedia as an afterthought?

2004-07-12 Thread Andrew Morton
Paul Davis <[EMAIL PROTECTED]> wrote: > > >It's too bad that the multimedia community didn't participate > >much during the 2.5.xx development leading up to 2.6.0. If they > >had done so, the situation might be different today. Fortunately, > >fixing up the multimedia problems isn't too risky to do

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

2004-07-12 Thread Andrew Morton
Paul Davis <[EMAIL PROTECTED]> wrote: > > >OK, thanks. The problem areas there are the timer-based route cache > >flushing and reiserfs. > > > >We can probably fix the route caceh thing by rescheduling the timer after > >having handled 1000 routes or whatever, although I do wonder if this is a > >

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

2004-07-12 Thread Andrew Morton
Paul Davis <[EMAIL PROTECTED]> wrote: > > >resierfs: yes, it's a problem. I "fixed" it multiple times in 2.4, but the > >fixes ended up breaking the fs in subtle ways and I eventually gave up. > > andrew, this is really helpful. should we conclude that until some > announcement from reiser that t

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

2004-07-12 Thread Andrew Morton
Lee Revell <[EMAIL PROTECTED]> wrote: > > On Sun, 2004-07-11 at 01:25, Andrew Morton wrote: > > What we need to do is to encourage audio testers to use ALSA drivers, to > > enable CONFIG_SND_DEBUG in the kernel build and to set > > /proc/asound/*/*/xrun_debug and to s

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

2004-07-11 Thread Andrew Morton
Arjan van de Ven <[EMAIL PROTECTED]> wrote: > > On Sun, Jul 11, 2004 at 03:42:58AM -0700, Andrew Morton wrote: > > > We do not want to enable preempt for Fedora yet because it > > > breaks just too much stuff > > > > What stuff? > > just look ov

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

2004-07-11 Thread Andrew Morton
Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > * Andrew Morton <[EMAIL PROTECTED]> wrote: > > > OK, but most of the new ones are unneeded with CONFIG_PREEMPT=y. I'm > > still failing to see why a non-preempt, voluntary preemption kernel > > even ne

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

2004-07-11 Thread Andrew Morton
Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > * Andrew Morton <[EMAIL PROTECTED]> wrote: > > > Ingo Molnar <[EMAIL PROTECTED]> wrote: > > > > > > For all the > > > other 200 might_sleep() points it doesnt matter much. > > &g

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

2004-07-11 Thread Andrew Morton
Ingo Molnar <[EMAIL PROTECTED]> wrote: > > For all the > other 200 might_sleep() points it doesnt matter much. Sorry, but an additional 100 might_sleep()s is surely excessive for debugging purposes, and unneeded for latency purposes: all these sites are preemptible anyway. Let me repeat that I a

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

2004-07-10 Thread Andrew Morton
Ingo Molnar <[EMAIL PROTECTED]> wrote: > > I took a > look at latencies and indeed 2.6.7 is pretty bad - latencies up to 50 > msec (!) can be easily triggered using common workloads, on fast 2GHz+ > x86 system - even when using the fully preemptible kernel! What were those workloads? Certainly

[linux-audio-dev] Re: ANN: cmpci 6.67 released

2004-03-31 Thread Andrew Morton
C.L. Tien - _ <[EMAIL PROTECTED]> wrote: > > > Hi, > > I made serveral changes for 6.64, the change are as following: To what kernel do these patches apply? Certainly not current 2.6. If you intend to raise 2.6 patches, please ensure that they are against the latest kernel.org kernel.

[linux-audio-dev] Re: Low Latency patches and kernel 2.6.x

2003-12-26 Thread Andrew Morton
Florian Schmidt <[EMAIL PROTECTED]> wrote: > > > Hi Andrew, > > i'm a user of a 2.4.22 kernel patched with the preemption patches plus > your Low Latency patches. It works very nicely for audio applications > [like jackd, ardour, etc...]. Cool. > Looking into the config menu of the 2.6.0 kernel

Re: [Jackit-devel] Re: [linux-audio-dev] Re: [Jackit-devel]2.4.20 + lowlat +preempt + alsa + jack = dead computer

2003-01-04 Thread Andrew Morton
Fernando Pablo Lopez-Lezcano wrote: > > ... > 4) > schedule +1ab > sleep_on +45 > bread +20 > __mark_inode_dirty +d9 > pipe_write +1b9 > poll_freewait +44 > sys_write +9f > system_call +33 > > So the system seems to be stuck in __mark_inode_dirty, whatever that is. No, that's just stack gunk. T

[linux-audio-dev] 2.4.20 low-latency patch

2002-12-12 Thread Andrew Morton
At http://www.zip.com.au/~akpm/linux/2.4.20-low-latency.patch.gz Very much in sustaining mode. It includes a fix for a livelock problem in fsync() from Stephen Tweedie.

Re: [linux-audio-dev] latency performance of 2.4 and 2.5...

2002-10-14 Thread Andrew Morton
Joern Nettingsmeier wrote: > > some new interesting results with 2.5.42: > > http://spunk.dnsalias.org/latencytest/2.5.42/2x256.html > > overall much worse, *but* greatly reduced latency peaks (max. 6 ms) as > compared to 2.5.41: > > http://spunk.dnsalias.org/latencytest/2.5.41/2x256.html > >

Re: [linux-audio-dev] we should start testing kernel 2.5 ...

2002-09-29 Thread Andrew Morton
Paul Davis wrote: > > from kernel traffic: > > Linus agreed that if the VM is as good as it seems to be, indeed > the upcoming release deserves to be called 3.0. But he also pointed > out that there are many silent users who tend not to speak up until > there is an official release. He a

Re: [linux-audio-dev] request to use latencytest (OSDL)

2002-07-12 Thread Andrew Morton
Roger Larsson wrote: > > ... > An alternative would be Andrew Mortons amlat - it is simpler, possibly better > in an automated environment. That would require a kernel patch. I always use a mucked-with version of Mark Hahn's `realfeel' application. Simple, accurate. Attached here. /* * This

Re: [linux-audio-dev] latency measuring software

2002-06-12 Thread Andrew Morton
jfm3 wrote: > > I can't get latencytest-0.42 to run on Redhat 7.3. I would like to make > sure that the kernels I've been building are doing what I want. Does > anybody have this working, or are there other audio latency measuring > tools around? > Grab http://www.zip.com.au/~akpm/linux/amlat.t

Re: [linux-audio-dev] Low latency and X11 Direct Rendering

2002-06-05 Thread Andrew Morton
Enrique Robledo Arnuncio wrote: > > ... > diff -urN linux-2.4.19-pre7/drivers/char/drm/mga_dma.c > linux-2.4.19-pre7-jl1-ll/drivers/char/drm/mga_dma.c > --- linux-2.4.19-pre7/drivers/char/drm/mga_dma.cWed Aug 8 19:42:15 2001 > +++ linux-2.4.19-pre7-jl1-ll/drivers/char/drm/mga_dma.c Mon A

Re: [linux-audio-dev] Low latency and X11 Direct Rendering

2002-06-05 Thread Andrew Morton
Enrique Robledo Arnuncio wrote: > > ... > > fragment latency = 2.902494 ms > > cpu latency = 2.321995 ms > > 3.3ms ( 0)| > > 1MS num_time_samples=21477 num_times_within_1ms=21477 factor=100.00 > > 2MS num_time_samples=21477 num_times_within_2ms=21477 factor=100.00 > > Or in other word

Re: [linux-audio-dev] Memory Debugger

2002-05-22 Thread Andrew Morton
"Richard C. Burnett" wrote: > > I am looking for a product similar to Purify to use in Linux, any ideas? > Everyone says valgrind is the hottest thing... http://developer.kde.org/~sewardj/ -

Re: [linux-audio-dev] kernel preemption patch to 2.5 kernel tree!

2002-02-12 Thread Andrew Morton
Steve Harris wrote: > > On Mon, Feb 11, 2002 at 01:05:41 -0800, Andrew Morton wrote: > > Steve Harris wrote: > > > > > > On Mon, Feb 11, 2002 at 01:11:07 -0800, Andrew Morton wrote: > > > > There is hope - at present, RedHat's rawhide kernel, a

Re: [linux-audio-dev] kernel preemption patch to 2.5 kernel tree!

2002-02-11 Thread Andrew Morton
Kai Vehmanen wrote: > > This is great news. Linus has now added Robert Love's kernel preemption > patch to the 2.5 tree! > > http://www.linuxdevices.com/news/NS3989618385.html > > --cut-- > "The addition of kernel preemption to the 2.5 tree is a substantial > feature which will provide benefit

[linux-audio-dev] Re: [PATCH] Additions to full lowlatency patch

2002-01-12 Thread Andrew Morton
Jussi Laako wrote: > > Hi, > > I've done some changes to lowlatency patched kernel. Mainly "fixes" to DRM > drivers and few network drivers. Most probably I have done something really > stupid, but those work here(tm). Especially the Radeon driver patch has got > a lot of testing and seems to ha

Re: [linux-audio-dev] 2.4.16 low latency freezes

2001-11-30 Thread Andrew Morton
Tim Goetze wrote: > > Today Maarten de Boer wrote: > > >starts slowing down (notable the mouse movement gets very sluggish) > >and finally freezes. I did not experience these problems with > >kernel 2.5.15-pre5 > > > >Any suggestions? > > have you already checked if a certain process is consumi