From: Takashi Iwai Subject: Re: [PATCH] azt3328 fatal deadlock fix (very rare, though) Date: Wed, 21 Jun 2006 12:33:08 +0200 Message-ID: References: <20060621083234.GA25022@rhlx01.fht-esslingen.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060621083234.GA25022@rhlx01.fht-esslingen.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Andreas Mohr Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Wed, 21 Jun 2006 10:32:34 +0200, Andreas Mohr wrote: > > Hi all, > > while listening to my 315th MP3 file played on this soundcard I had the > extreme mispleasure of experiencing a complete lockup of my box right > during shutdown of this file's playback, not even Magic SysRq worked > (characteristic sign of spinlock conflicts). > > I determined that it must have been the combination of not doing the _irqsave() > variant in the playback trigger function and then having another IRQ occur > (which tried to spinlock again, against the active lock in the playback trigger > function). By always doing _irqsave() everywhere we also don't need separate > locking in the IRQ handler any more (managed to reduce CPU load, too). I don't understand this. The local irq is already disabled in either snd_pcm_lib_write1() or snd_pcm_lib_read1() that are the sole callers of snd_pcm_start(). Ditto for snd_pcm_stop(). Takashi