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." --
| Jeremy Allison | Re: [RFC] Heads up on sys_fallocate() |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Joerg Roedel | [PATCH 03/34] AMD IOMMU: add defines and structures for ACPI scanning code |
| Eric W. Biederman | [PATCH] powerpc pseries eeh: Convert to kthread API |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
