On Wed, Mar 27, 2013 at 2:56 AM, Gavin Shan <shangw@xxxxxxxxxxxxxxxxxx> wrote: > While we setup MSI or MSI-X for specific PCI device, the address of > MSI or MSI-X capability structure is figured out from the config > space for multiple times. That's unnecessary and the patchset addresses > that. With the patchset applied, the latency for MSI or MSI-X setup > would be decreased hopefully. > > drivers/pci/msi.c | 51 ++++++++++++++++++++------------------ > drivers/pci/pcie/portdrv_core.c | 2 +- > include/linux/pci.h | 4 +- > 3 files changed, 30 insertions(+), 27 deletions(-) It seems a bit complicated to be passing around "pos" or "&pos" all the time. Wouldn't it be simpler to cache the MSI and MSI-X capability addresses directly in the pci_dev, like we do for the PCIe and PM capabilities? Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html