Re: Multiple MSI

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <michaele@...>
Cc: <benh@...>, Matthew Wilcox <matthew@...>, <linux-pci@...>, Kenji Kaneshige <kaneshige.kenji@...>, Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, David Miller <davem@...>, Dan Williams <dan.j.williams@...>, <Martine.Silbermann@...>, <linux-kernel@...>
Date: Thursday, July 3, 2008 - 5:10 am

On Thursday 03 July 2008, Michael Ellerman wrote:

Some years ago, we had discussions about getting rid of IRQ numbers
altogether, or at least the requirement to have device drivers know
about them. Does anyone remember what happened to that idea?

I think the concept was that you pass around struct irq_desc pointers
that may or may not be dynamically allocated by the interrupt controller
code.

Another simplification that should really help here is encapsulating
request_irq() per subsystem so that you can do something like

int my_irq(struct pci_dev *dev);
err = pci_request_irq(pci_dev, &my_irq, IRQF_SHARED);

Most PCI drivers should be trivial to convert to this model. If you want
to have multiple MSI/MSI-X interrupts for one PCI device with this model,
you'd need to introduce the number back as an offset, I guess.

	Arnd <><
--
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)