Re: [PATCH 0/4] Retrieve MSI/MSIX cap struct for once on setup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux