From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.linux-foundation.org,
Anton Vorontsov <avorontsov@ru.mvista.com>,
netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: [linux-pm] [PATCH] 3c59x: Get rid of "Trying to free already-free IRQ"
Date: Fri, 25 Sep 2009 14:32:30 +0200 [thread overview]
Message-ID: <200909251432.30738.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0909250038300.14463-100000@netrider.rowland.org>
On Friday 25 September 2009, Alan Stern wrote:
> On Thu, 24 Sep 2009, Anton Vorontsov wrote:
>
> > Though, there are few other issues with suspend/resume in this driver.
> > The intention of calling free_irq() in suspend() was to avoid any
> > possible spurious interrupts (see commit 5b039e681b8c5f30aac9cc04385
> > "3c59x PM fixes"). But,
> >
> > - On resume, the driver was requesting IRQ just after pci_set_master(),
> > but before vortex_up() (which actually resets 3c59x chips).
>
> Shouldn't it be possible to reset the chip (or at least prevent it from
> generating spurious IRQs) during the early-resume phase?
>
> > - Issuing free_irq() on a shared IRQ doesn't guarantee that a buggy
> > HW won't trigger spurious interrupts in another driver that
> > requested the same interrupt. So, if we want to protect from
> > unexpected interrupts, then on suspend we should issue disable_irq(),
> > not free_irq().
>
> What if some other device shares the IRQ and still relies on receiving
> interrupts when this code runs? Won't disable_irq() mess up the other
> device?
Ah, I overlooked the disable_irq()/enable_irq() part, which is not really
necessary anyway.
Anton, have you tried without that?
Rafael
next prev parent reply other threads:[~2009-09-25 12:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 18:31 [PATCH] 3c59x: Get rid of "Trying to free already-free IRQ" Anton Vorontsov
2009-09-24 20:30 ` Rafael J. Wysocki
2009-09-24 21:30 ` Anton Vorontsov
2009-09-24 22:26 ` David Miller
2009-09-25 12:35 ` Rafael J. Wysocki
2009-09-24 22:47 ` David Miller
2009-09-25 4:43 ` [linux-pm] " Alan Stern
2009-09-25 12:32 ` Rafael J. Wysocki [this message]
2009-09-25 12:56 ` Anton Vorontsov
2009-09-25 13:02 ` 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=200909251432.30738.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=avorontsov@ru.mvista.com \
--cc=davem@davemloft.net \
--cc=linux-pm@lists.linux-foundation.org \
--cc=netdev@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/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;
as well as URLs for NNTP newsgroup(s).