Re: [RFC patch 0/5] genirq: add infrastructure for threaded interrupt handlers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Thursday, October 2, 2008 - 8:23 pm

On Thu, Oct 02, 2008 at 02:31:46PM -0700, Greg KH wrote:

Not sure I follow? You're saying you want to first allow very long running
IRQ handlers and then after the fact somehow fix them?  Sounds like a weird
proposal to be honest.

The problem of course is that if you have such a very slow hardirq (let's
say one that runs for tens of ms) that what happens when another
interrupt comes in? How deep is your hardware queue?  Or will you 
just lose events in that case?

I suspect in the end you'll need another "fast interrupt" anyways
if the hardware queue is not deep enough to buffer at the software
side. Sounds a bit like the existing "interrupts" vs "softirq" 
doesn't it?

So I'm just not sure what the "slow interrupt handler" will give
you longer term. It just sounds like a redundant concept to me.

The other issue is that if you allow sleeping locks in the interrupt
handler what guarantee is that it won't block for even longer than
tens of milliseconds? And lose even more events.

-Andi

-- 
ak@linux.intel.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC patch 0/5] genirq: add infrastructure for threade ..., Andi Kleen, (Thu Oct 2, 8:23 pm)
[RFC patch] genirq threading for ehci, ohci and uhci USB hosts, Sven-Thorsten Dietrich, (Mon Oct 20, 6:32 pm)
Re: [RFC patch] genirq threading (v2) for ehci, ohci and u ..., Sven-Thorsten Dietrich, (Tue Oct 21, 3:29 am)