Re: MSI interrupts and disable_irq

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Friday, October 5, 2007 - 3:12 pm

Stephen Hemminger <shemminger@linux-foundation.org> writes:


I didn't see anything in disable_irq that would cause it to fail in
the suggested way.  But I couldn't quite convince myself we were
race free either.  I didn't see anything that was specific to MSI
that would cause something.  But switching from level to edge
triggered, and to a lower latency delivery path may have caused
some behavior changes.


I took a look at the underlying side of this.

I don't know if the MSI capability for the forcedeth supports a mask
bit or not.  Mine doesn't even have a msi capability.  If it doesn't
support a mask bit the pci spec provides not valid way to mask the
interrupt, so what we do is actually disable the msi capability.
At which point we might get weird INTx interactions.

We have a similar case with ioapics and INTx that also turns
a hardware level disable into a reroute to another irq command.
So I'm going to take a look and see how infrequently we can use
hardware level disabled.

Since it looks like hardware level disables tend to be creatively
implemented I recommend using disable_irq as little as possible.

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

Messages in current thread:
Re: MSI interrupts and disable_irq, Jeff Garzik, (Fri Sep 28, 7:47 pm)
Re: MSI interrupts and disable_irq, Stephen Hemminger, (Fri Sep 28, 8:08 pm)
Re: MSI interrupts and disable_irq, Eric W. Biederman, (Fri Oct 5, 3:12 pm)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Fri Oct 5, 11:23 pm)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Sat Oct 6, 10:43 am)
Re: MSI interrupts and disable_irq, Jeff Garzik, (Sat Oct 6, 10:59 am)
Re: MSI interrupts and disable_irq, Manfred Spraul, (Sun Oct 7, 9:54 am)
Re: MSI interrupts and disable_irq, Manfred Spraul, (Sat Oct 13, 2:30 am)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Sat Oct 13, 10:59 pm)
Re: MSI interrupts and disable_irq, Manfred Spraul, (Sun Oct 14, 12:15 am)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Sun Oct 14, 12:55 pm)
Re: MSI interrupts and disable_irq, Benjamin Herrenschmidt, (Sun Oct 14, 2:47 pm)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Sun Oct 14, 4:15 pm)
Re: MSI interrupts and disable_irq, Benjamin Herrenschmidt, (Sun Oct 14, 4:36 pm)
Re: MSI interrupts and disable_irq, Jeff Garzik, (Mon Oct 15, 3:17 pm)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Tue Oct 16, 10:23 am)
Re: MSI interrupts and disable_irq, Jeff Garzik, (Tue Oct 16, 10:39 am)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Tue Oct 16, 10:59 am)
Re: MSI interrupts and disable_irq, Yinghai Lu, (Tue Oct 16, 11:01 am)
Re: MSI interrupts and disable_irq, Jeff Garzik, (Tue Oct 16, 12:44 pm)
Re: MSI interrupts and disable_irq, Manfred Spraul, (Wed Oct 17, 12:43 pm)