All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Retrieve MSI/MSIX cap struct for once on setup
@ 2013-04-05  2:54 Gavin Shan
  2013-04-05  2:54 ` [PATCH 1/4] PCI: Cache MSI/MSI-X cap in PCI device Gavin Shan
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Gavin Shan @ 2013-04-05  2:54 UTC (permalink / raw)
  To: linux-pci; +Cc: bhelgaas, Gavin Shan

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.

v2 -> v3:
	* Remove checking on MSI/MSI-X capability offset in msi_set_enable()
	  and msix_set_enable(). Let the caller does the check
	* Using "u8" for MSI/MSI-X/PM capability
	* Let caller of pci_msi_check_device() checks MSI/MSI-X capability
	* Replace msi_control_reg() with "pos + PCI_MSI_FLAGS"
	* Merge [4/5] to [3/5]
v1 -> v2:
	* Cache the MSI/MSI-X capability offset to pci_dev directly according
	  to Bjorn's suggestion.
	* Rebase to 3.9.RC5

---

drivers/pci/msi.c   |  110 +++++++++++++++++++++++----------------------------
drivers/pci/msi.h   |    1 -
include/linux/pci.h |    4 +-
3 files changed, 52 insertions(+), 63 deletions(-)

Thanks,
Gavin


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-04-22 23:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-05  2:54 [PATCH v3 0/5] Retrieve MSI/MSIX cap struct for once on setup Gavin Shan
2013-04-05  2:54 ` [PATCH 1/4] PCI: Cache MSI/MSI-X cap in PCI device Gavin Shan
2013-04-05  2:54 ` [PATCH 2/4] PCI: Remove MSI/MSI-X cap check in pci_msi_check_device() Gavin Shan
2013-04-05  2:54 ` [PATCH 3/4] PCI: Use cached MSI cap while enabling MSI interrupts Gavin Shan
2013-04-05  2:54 ` [PATCH 4/4] PCI: Use cached MSI-X cap while enabling MSI-X Gavin Shan
     [not found] ` <5167564e.c628320a.6610.1710SMTPIN_ADDED_BROKEN@mx.google.com>
2013-04-22 23:11   ` [PATCH v3 0/5] Retrieve MSI/MSIX cap struct for once on setup Bjorn Helgaas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.