Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- From: Hidetoshi Seto <seto.hidetoshi@xxxxxxxxxxxxxx>
- Date: Thu, 15 Jan 2009 16:38:21 +0900
Rafael J. Wysocki wrote:
On Wednesday 14 January 2009, Rafael J. Wysocki wrote:
On Wednesday 14 January 2009, Kenji Kaneshige wrote:[...]
I'm sorry but I don't understand what the problem is.No, I don't. It was just confusion on my side, sorry.
Do you mean pci_disable_msix() doesn't work on some platforms?
Please have a look at the new version of the patch I sent yesterday
(http://marc.info/?l=linux-pci&m=123185510828181&w=4).
BTW, in your patch the first dummy pci_enable_msix() allocates just one
vector, which means that the contents of both
msix_entries[idx_hppme].entry and msix_entries[idx_aer].entry will be the same,
if my reading of the spec (PCI 3.0 in this case) is correct.
According to PCI 3.0 implementation note "Handling MSI-X Vector Shortage,"
it seems your reading is not correct.
Assume that the port have 4 entries([0-3]) in MSI-X table, and that entry[2]
for hotplug/PME and entry[3] for AER, and that kernel only allocates 2 vector.
Spec says that the port could be designed for software to configure entries
assigning vectors{A,B} to multiple entries as ABAB, AABB, ABBB etc.
So if there is just one vector, it could be AAAA.
Thanks,
H.Seto
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- From: Kenji Kaneshige
- Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- References:
- [PATCH 0/8] PCI Express port driver fixes and cleanups
- From: Rafael J. Wysocki
- Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- From: Kenji Kaneshige
- Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- From: Rafael J. Wysocki
- Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- From: Rafael J. Wysocki
- [PATCH 0/8] PCI Express port driver fixes and cleanups
- Prev by Date: [PATCH 7/7] unaligned: remove the old implementation
- Next by Date: Re: [2.6.28] Kernel panic after closing lid on HP 2510p
- Previous by thread: Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- Next by thread: Re: [PATCH 5/8] PCI PCIe portdrv: Fix allocation of interrupts
- Index(es):
Relevant Pages
|