Re: [ath9k-devel] ath9k: massive unexplained latency in 2.6.27 (rc5, rc6, probably others)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Noonan
Date: Friday, September 19, 2008 - 1:22 am

On Fri, Sep 19, 2008 at 12:29 AM, Steven Noonan <steven@uplinklabs.net> wrote:

Do pardon me if this is incredibly stupid, but I have some thoughts
about ath9k interrupt handling. Let me know if there's any validity
here. And if there's any invalid points, please help me understand
what's going on. :)

First of all, I know for certain the ath9k interrupt handler is
registered before the driver prints the line saying the name of the
device ("phy1: Atheros 5416"). So any IRQs to IRQ 17 should be seen by
the ath9k handler (ath_isr) after that point, right? Shortly after
that point is where we're seeing the "nobody cared". This seems to
suggest that it registered the handler successfully (because we didn't
get an error message), but the handler returned IRQ_NONE.

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?

- Steven
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 11:34 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 11:42 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 1:44 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 3:01 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 3:08 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 4:10 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 4:12 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Thu Sep 18, 8:01 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Steven Noonan, (Fri Sep 19, 1:22 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Senthil Balasubramanian, (Fri Sep 19, 7:28 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Senthil Balasubramanian, (Fri Sep 19, 10:58 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Fri Sep 19, 11:23 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Fri Sep 19, 4:53 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Fri Sep 19, 6:13 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Fri Sep 19, 6:15 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sat Sep 20, 1:56 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sat Sep 20, 1:57 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sat Sep 20, 2:03 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sat Sep 20, 2:24 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sat Sep 20, 2:26 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Sun Sep 21, 11:54 pm)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Mon Sep 22, 12:14 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Mon Sep 22, 1:06 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Mon Sep 22, 9:01 am)
Re: [ath9k-devel] ath9k: massive unexplained latency in 2. ..., Luis R. Rodriguez, (Tue Sep 23, 12:22 pm)