From: Takashi Iwai Subject: Re: 2.6.18-rc5-mm1: BUG in pci_disable_msi on attempts to rmmod snd_hda_intel (64-bit kernel) Date: Thu, 07 Sep 2006 11:20:24 +0200 Message-ID: References: <200609062259.53465.rjw@sisk.pl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mail.suse.de [195.135.220.2]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 5A54C22D for ; Thu, 7 Sep 2006 11:20:25 +0200 (MEST) In-Reply-To: <200609062259.53465.rjw@sisk.pl> 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: "Rafael J. Wysocki" Cc: Andrew Morton , alsa-devel@alsa-project.org, Andi Kleen List-Id: alsa-devel@alsa-project.org At Wed, 6 Sep 2006 22:59:53 +0200, Rafael J. Wysocki wrote: > > Hi, > > I get the appended BUG when I try to rmmod snd_hda_intel on 2.6.18-rc5-mm1 > (the box is an HPC nx6325). > > The driver also breaks the suspend to disk (causes an oops to appear during > the suspend phase, but I haven't been able to catch it yet). Could you try the patch below? It's pending on my local tree for testing... Also, you can use disable_msi=1 option to avoid MSI. Takashi diff -r f38b7e4c44c3 Documentation/sound/alsa/ALSA-Configuration.txt --- a/sound/alsa/Documentation/ALSA-Configuration.txt Wed Sep 06 16:03:11 2006 +0200 +++ b/sound/alsa/Documentation/ALSA-Configuration.txt Thu Sep 07 11:15:07 2006 +0200 @@ -758,6 +758,7 @@ Prior to version 0.9.0rc4 options had a position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size) single_cmd - Use single immediate commands to communicate with codecs (for debugging only) + disable_msi - Disable Message Signaled Interrupt (MSI) This module supports one card and autoprobe. diff -r f38b7e4c44c3 sound/pci/hda/hda_intel.c --- a/sound/pci/hda/hda_intel.c Wed Sep 06 16:03:11 2006 +0200 +++ b/sound/pci/hda/hda_intel.c Thu Sep 07 11:16:34 2006 +0200 @@ -1422,8 +1422,9 @@ static int azx_free(struct azx *chip) } if (chip->irq >= 0) { - pci_disable_msi(chip->pci); free_irq(chip->irq, (void*)chip); + if (!disable_msi) + pci_disable_msi(chip->pci); } if (chip->remap_addr) iounmap(chip->remap_addr); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642