public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw-KKrjLPT3xs0@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	Pavel Troller <patrol-FIBU9iiavH4@public.gmane.org>
Cc: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
Subject: Re: More experiences with 2.6.13-rc3 with ec_polling patch
Date: Mon, 25 Jul 2005 18:46:55 +0200	[thread overview]
Message-ID: <200507251846.55852.rjw@sisk.pl> (raw)
In-Reply-To: <20050725152653.GA18227-hxMeMO63rIAUgFT2KJq8fg@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1387 bytes --]

On Monday, 25 of July 2005 17:26, Pavel Troller wrote:
> > Hi,
> > 
> > The problem you describe is not related to the ec_polling patch (see below).
> I know. Sorry for bad formulation of the subject, I simply wanted to tell
> "more experiences with -rc3 after fixing that one with EC :-)".
> > 
> > 
> > This happens because the sound card should drop the IRQ during
> > suspend but it doesn't.  Please try to apply the patch at
> > 
> > http://bugzilla.kernel.org/attachment.cgi?id=5371&action=view
> > 
> > and let me know if that helps.
> It seems to help just a little:
> 1) The "Nobody cared" message with the backtrace is still there the same

Is the message:

handlers:
[<dc86e850>] (snd_intel8x0_interrupt+0x0/0x240 [snd_intel8x0])

still present in the backtrace with the patch?

> 2) ohci-hcd no more complains about wrong IRQ and inserts/removes OK
> .. but nevertheless, neither soundcard now USB is working.

That would mean the patch is needed anyway ...

> Of course I verified that the patch is there in the i8x0 code.

Can you please use the attached patch instead and put printk()s right before
free_irq() in intel8x0_suspend() and request_irq() in intel8x0_resume(),
and retest?

Rafael


-- 
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
		-- Lewis Carroll "Alice's Adventures in Wonderland"

[-- Attachment #2: 2.6.13-rc3-git5-intel8x0-suspend_resume.patch --]
[-- Type: text/x-diff, Size: 923 bytes --]

--- linux-2.6.13-rc3-git5/sound/pci/intel8x0.c	2005-07-23 19:26:43.000000000 +0200
+++ patched/sound/pci/intel8x0.c	2005-07-25 18:21:36.000000000 +0200
@@ -2373,6 +2373,8 @@ static int intel8x0_suspend(snd_card_t *
 	for (i = 0; i < 3; i++)
 		if (chip->ac97[i])
 			snd_ac97_suspend(chip->ac97[i]);
+	if (chip->irq >= 0)
+		free_irq(chip->irq, (void *)chip);
 	pci_disable_device(chip->pci);
 	return 0;
 }
@@ -2384,7 +2386,14 @@ static int intel8x0_resume(snd_card_t *c
 
 	pci_enable_device(chip->pci);
 	pci_set_master(chip->pci);
-	snd_intel8x0_chip_init(chip, 0);
+	if (request_irq(chip->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) {
+		snd_printk("unable to grab IRQ %d\n", chip->irq);
+		chip->irq = -1;
+		pci_disable_device(chip->pci);
+		return -EBUSY;
+	}
+	synchronize_irq(chip->irq);
+	snd_intel8x0_chip_init(chip, 1);
 
 	/* refill nocache */
 	if (chip->fix_nocache)

  parent reply	other threads:[~2005-07-25 16:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-23 13:37 More experiences with 2.6.13-rc3 with ec_polling patch Pavel Troller
     [not found] ` <20050723133726.GA2079-xk5YvUdtsdomyzK0JynY2A@public.gmane.org>
2005-07-24 14:24   ` Pavel Machek
     [not found]     ` <20050724142432.GC1778-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-07-25  8:40       ` Pavel Troller
     [not found]         ` <20050725084044.GA22944-hxMeMO63rIAUgFT2KJq8fg@public.gmane.org>
2005-07-25 12:07           ` Rafael J. Wysocki
     [not found]             ` <200507251407.55454.rjw-KKrjLPT3xs0@public.gmane.org>
2005-07-25 15:26               ` Pavel Troller
     [not found]                 ` <20050725152653.GA18227-hxMeMO63rIAUgFT2KJq8fg@public.gmane.org>
2005-07-25 16:46                   ` Rafael J. Wysocki [this message]
     [not found]                     ` <200507251846.55852.rjw-KKrjLPT3xs0@public.gmane.org>
2005-07-25 18:48                       ` Pavel Troller
     [not found]                         ` <20050725184827.GA30854-hxMeMO63rIAUgFT2KJq8fg@public.gmane.org>
2005-07-26  9:36                           ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507251846.55852.rjw@sisk.pl \
    --to=rjw-kkrjlpt3xs0@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=patrol-FIBU9iiavH4@public.gmane.org \
    --cc=pavel-+ZI9xUNit7I@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox