From: Robert Hancock <hancockr@shaw.ca>
To: Steven Noonan <steven@uplinklabs.net>
Cc: "Luis R. Rodriguez" <lrodriguez@atheros.com>,
Luis Rodriguez <Luis.Rodriguez@atheros.com>,
Ingo Molnar <mingo@elte.hu>,
"ath9k-devel@lists.ath9k.org" <ath9k-devel@lists.ath9k.org>,
linux-wireless <linux-wireless@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [ath9k-devel] ath9k: massive unexplained latency in 2.6.27 (rc5, rc6, probably others)
Date: Fri, 19 Sep 2008 08:46:51 -0600 [thread overview]
Message-ID: <48D3BB5B.7060003@shaw.ca> (raw)
In-Reply-To: <fa.tRre/FoeQKwChGwdusnYJgwjRmw@ifi.uio.no>
Steven Noonan wrote:
> Second of all, I'm looking at the ath9k interrupt handler right now,
> and there are a few cases where it returns IRQ_NONE. And here's where
> I'm a bit fuzzy. Since there could be any number of things using IRQ
> 17 (though in my case, ath9k is on its own dedicated IRQ), it seems
> odd that you check the value of sc->sc_invalid, since the cookie
> passed to the handler might not actually be ath9k's cookie if multiple
> drivers have registered IRQ handlers for that particular IRQ. Who
> knows if what you're reading is even valid? Heck, what if some driver
> uses a NULL for their cookie (however unlikely)? You'd get a
> segmentation fault on the second line of the interrupt handler. Of
> course, I could be completely wrong: does parent interrupt handler
> check to see which device driver owns the particular device signaling
> an IRQ and then call the appropriate handler?
All the IRQ handlers registered on that interrupt will get called. The
cookie will always be the right one for that handler however.
The bug is presumably that it returns IRQ_NONE in some cases where the
device is actually generating an interrupt. The advice to turn on
irqpoll is rather useless in this case - that's mainly useful where the
IRQ routing is messed up and the device can't receive any interrupts at all.
next parent reply other threads:[~2008-09-19 14:46 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.jQQm4Iwb0lkAWxV+5FAfTMHY4m4@ifi.uio.no>
[not found] ` <fa.zGA6t2p+jJeMRIaZFOqy1I8En1c@ifi.uio.no>
[not found] ` <fa.AGi3s2gpyC3T3KuCJ8cYQ30teak@ifi.uio.no>
[not found] ` <fa.59AlSLNBuMx/BjQSvR6whwGydbU@ifi.uio.no>
[not found] ` <fa.NwYDTAB59VZjr1quzgR4OU0+8eQ@ifi.uio.no>
[not found] ` <fa.tRre/FoeQKwChGwdusnYJgwjRmw@ifi.uio.no>
2008-09-19 14:46 ` Robert Hancock [this message]
2008-09-19 16:27 ` [ath9k-devel] ath9k: massive unexplained latency in 2.6.27 (rc5, rc6, probably others) Steven Noonan
2008-09-18 18:23 Steven Noonan
2008-09-18 18:34 ` [ath9k-devel] " Luis R. Rodriguez
2008-09-18 18:42 ` Luis R. Rodriguez
2008-09-18 19:00 ` Steven Noonan
2008-09-18 19:23 ` Steven Noonan
2008-09-18 20:18 ` Justin Mattock
2008-09-18 20:25 ` Steven Noonan
2008-09-18 20:44 ` Luis R. Rodriguez
2008-09-18 21:31 ` Justin Mattock
2008-09-18 21:49 ` Steven Noonan
2008-09-18 22:01 ` Luis R. Rodriguez
2008-09-18 22:08 ` Luis R. Rodriguez
2008-09-18 23:04 ` Steven Noonan
2008-09-18 23:10 ` Luis R. Rodriguez
2008-09-18 23:16 ` Johannes Berg
2008-09-19 2:52 ` Steven Noonan
2008-09-19 3:01 ` Luis R. Rodriguez
2008-09-19 7:29 ` Steven Noonan
2008-09-19 8:17 ` Ingo Molnar
2008-09-19 8:22 ` Steven Noonan
2008-09-19 8:32 ` Ingo Molnar
2008-09-27 1:23 ` Steven Rostedt
2008-09-27 19:20 ` Ingo Molnar
2008-09-27 19:28 ` Steven Rostedt
2008-09-19 8:45 ` Steven Noonan
2008-09-19 8:51 ` Ingo Molnar
2008-09-19 8:22 ` Steven Noonan
2008-09-19 14:28 ` Senthil Balasubramanian
2008-09-19 16:42 ` Steven Noonan
2008-09-19 17:58 ` Senthil Balasubramanian
2008-09-19 18:23 ` Luis R. Rodriguez
2008-09-19 23:31 ` Steven Noonan
2008-09-19 23:53 ` Luis R. Rodriguez
2008-09-20 0:01 ` Steven Noonan
2008-09-20 1:13 ` Luis R. Rodriguez
2008-09-20 1:15 ` Luis R. Rodriguez
2008-09-20 3:29 ` Steven Noonan
2008-09-20 3:40 ` Steven Noonan
2008-09-20 20:56 ` Luis R. Rodriguez
2008-09-20 15:21 ` Steven Noonan
2008-09-20 20:57 ` Luis R. Rodriguez
2008-09-20 20:58 ` Johannes Berg
2008-09-20 21:03 ` Luis R. Rodriguez
2008-09-20 21:22 ` Steven Noonan
2008-09-20 21:26 ` Luis R. Rodriguez
2008-09-20 21:48 ` Steven Noonan
2008-09-21 1:48 ` Steven Noonan
2008-09-22 6:54 ` Luis R. Rodriguez
2008-09-22 7:14 ` Luis R. Rodriguez
2008-09-22 7:26 ` Steven Noonan
2008-09-22 8:06 ` Luis R. Rodriguez
2008-09-22 15:11 ` Steven Noonan
2008-09-22 16:01 ` Luis R. Rodriguez
2008-09-23 7:22 ` Steven Noonan
2008-09-23 7:55 ` Steven Noonan
2008-09-23 16:20 ` Steven Noonan
2008-09-23 19:22 ` Luis R. Rodriguez
2008-09-20 21:18 ` Steven Noonan
2008-09-20 21:24 ` Luis R. Rodriguez
2008-09-18 23:08 ` Steven Noonan
2008-09-18 23:12 ` Luis R. Rodriguez
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=48D3BB5B.7060003@shaw.ca \
--to=hancockr@shaw.ca \
--cc=Luis.Rodriguez@atheros.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=lrodriguez@atheros.com \
--cc=mingo@elte.hu \
--cc=steven@uplinklabs.net \
/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).