Re: Multiple MSI

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Benjamin Herrenschmidt <benh@...>
Cc: <linux-pci@...>, Kenji Kaneshige <kaneshige.kenji@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, David Miller <davem@...>, Dan Williams <dan.j.williams@...>, <Martine.Silbermann@...>, <linux-kernel@...>, Michael Ellerman <michaele@...>
Date: Wednesday, July 2, 2008 - 11:59 pm

On Thu, Jul 03, 2008 at 01:24:29PM +1000, Benjamin Herrenschmidt wrote:

The AHCI spec only includes MSI.  So I have a reason to care.


Doh!  I was sure I added him to the CC list.  Sorry.


This is true and worth considering carefully.  Are IRQ numbers a scarce
resource on PowerPC?  They are considerably less scarce than interrupt
vectors are on x86-64.  How hard is it to make IRQ numbers an abundent
resource?  Is it simply a question of increasing NR_IRQS?

This cost should be traded off against the cost of allocating something
like the msix_entry array in each driver that wants to use multiple MSIs,
passing that array around, using it properly, etc.

It would make some sense to pass nr_irqs all the way down to arch code
and let arch code take care of reserving the block of vectors (aligned
appropriately).  That would conserve IRQ numbers, though not vectors.
I think we have to consider excess vectors reserved.  If we don't, we
could get into the situation where a device uses more interrupts than
the driver thinks it will and problems ensue.


By the way, would people be interested in changing the MSI-X API to get
rid of the msix_entry array?  If allocating consecutive IRQs isn't a
problem, then we could switch the MSI-X code to use consecutive IRQs.

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