Re: Multiple MSI

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Wilcox
Date: Monday, July 7, 2008 - 9:39 am

On Mon, Jul 07, 2008 at 10:17:03AM -0600, Grant Grundler wrote:

That's not the only way it can work.  If you have an APIC per root bus,
you can target that with the write.  The APIC could then map the
interrupt request to the appropriate CPU.  In this scenario, programming
affinity would be twiddling some bits in the APIC and not need to write
to the device's MSI register at all.

What I've implemented for x86-64 can target any mask of CPUs that are
in the same interrupt domain.  My machine only has one interrupt domain,
so I can target the MSI to any subset of the CPUs.  They all move
together, so you can't target a different subset of CPUs for different
MSIs on the same device.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Multiple MSI, Matthew Wilcox, (Wed Jul 2, 7:44 pm)
Re: Multiple MSI, Benjamin Herrenschmidt, (Wed Jul 2, 8:24 pm)
Re: Multiple MSI, Matthew Wilcox, (Wed Jul 2, 8:59 pm)
Re: Multiple MSI, Benjamin Herrenschmidt, (Wed Jul 2, 9:41 pm)
Re: Multiple MSI, Michael Ellerman, (Wed Jul 2, 11:44 pm)
Re: Multiple MSI, Arnd Bergmann, (Thu Jul 3, 2:10 am)
Re: Multiple MSI, Benjamin Herrenschmidt, (Thu Jul 3, 2:17 am)
Re: Multiple MSI, Matthew Wilcox, (Thu Jul 3, 4:31 am)
Re: Multiple MSI, Matthew Wilcox, (Thu Jul 3, 4:34 am)
Re: Multiple MSI, Benjamin Herrenschmidt, (Thu Jul 3, 4:41 am)
Re: Multiple MSI, Michael Ellerman, (Thu Jul 3, 6:52 pm)
Re: Multiple MSI, Alan Cox, (Fri Jul 4, 1:08 am)
Re: Multiple MSI, Matthew Wilcox, (Sat Jul 5, 6:27 am)
[PATCH 2/4] PCI: Support multiple MSI, Matthew Wilcox, (Sat Jul 5, 6:34 am)
[PATCH 3/4] AHCI: Request multiple MSIs, Matthew Wilcox, (Sat Jul 5, 6:34 am)
[PATCH 4/4] x86-64: Support for multiple MSIs, Matthew Wilcox, (Sat Jul 5, 6:34 am)
Re: Multiple MSI, Matthew Wilcox, (Sat Jul 5, 6:43 am)
Re: Multiple MSI, Matthew Wilcox, (Sat Jul 5, 3:38 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Michael Ellerman, (Sun Jul 6, 7:05 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Matthew Wilcox, (Sun Jul 6, 7:45 pm)
Re: [PATCH 1/4] PCI MSI: Store the number of messages in t ..., Benjamin Herrenschmidt, (Sun Jul 6, 8:26 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Michael Ellerman, (Sun Jul 6, 8:56 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Matthew Wilcox, (Mon Jul 7, 4:31 am)
Re: Multiple MSI, Grant Grundler, (Mon Jul 7, 9:17 am)
Re: Multiple MSI, Matthew Wilcox, (Mon Jul 7, 9:39 am)
Re: [PATCH 3/4] AHCI: Request multiple MSIs, Grant Grundler, (Mon Jul 7, 9:45 am)
Re: Multiple MSI, Grant Grundler, (Mon Jul 7, 9:51 am)
Re: [PATCH 3/4] AHCI: Request multiple MSIs, Matthew Wilcox, (Mon Jul 7, 10:48 am)
Re: Multiple MSI, Benjamin Herrenschmidt, (Mon Jul 7, 4:06 pm)
Re: Multiple MSI, Michael Ellerman, (Wed Jul 9, 5:55 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Michael Ellerman, (Wed Jul 9, 6:32 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Matthew Wilcox, (Wed Jul 9, 6:43 pm)
Re: [PATCH 2/4] PCI: Support multiple MSI, Michael Ellerman, (Wed Jul 9, 9:00 pm)
Re: [PATCH 3/4] AHCI: Request multiple MSIs, Grant Grundler, (Sun Jul 20, 12:49 am)