From: Giuliano Pochini Subject: Re: .hw_free() while audio is running ?? Date: Wed, 11 Aug 2004 18:28:10 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20040811182810.17591e8e.pochini@shiny.it> References: <20040808172946.43212219.pochini@shiny.it> <20040810111427.7815ec73.pochini@shiny.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Jaroslav Kysela Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org On Tue, 10 Aug 2004 11:25:05 +0200 (CEST) Jaroslav Kysela wrote: > > > > The call sequence in the logs is: > > > > > > > > pcm_trigger (start) - of two synced ss's > > > > pcm_hw_free (playback ss) > > > > Crash, nothing more in the logs :( > > > > > > > > trigger(stop) wasn't called before hw_free. > > > > > > You have an SMP machine? The hw_free is protected with the > > > runtime->status->state checking, but the code is not protected with > > > spinlock, so I suspect trouble here. > > > > Yes, this is a dual processor, but I booted with maxcpus=1 and preempt is > > not enabled. > > Could you try the attached patch, if it helps? Nope, it freezes the box as soon as I try to play something. Anyway, the problem I reported is quite difficult to trigger because I wasn't able to make it happen again. -- Giuliano. ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285