linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] pci/iommu: PCIe requester ID interface
@ 2013-07-11 21:03 Alex Williamson
  2013-07-11 21:03 ` [RFC PATCH v2 1/2] pci: Create " Alex Williamson
  2013-07-11 21:03 ` [RFC PATCH v2 2/2] iommu/intel: Make use of " Alex Williamson
  0 siblings, 2 replies; 29+ messages in thread
From: Alex Williamson @ 2013-07-11 21:03 UTC (permalink / raw)
  To: bhelgaas; +Cc: linux-pci, joro, iommu, acooks, ddutile, dwmw2

v2: second pass at refining the interface.  Rolled pci_requester_id
into pci_get_visible_pcie_requester.  Fixed some bus walk issues.

Another obscure issue that I forgot to mention that this should fix
is gaps in requester IDs.  If you had:

 ---pcie--->[pcie2pci]---pci--->[pci2pcie]---pcie--->[endpoint]

I think the current code would try to use the endpoint requester id and
fail.  This code will use the pcie2pci->secondary as the requester id.
This may not even be that obscure of a bug if a PCIe ASIC is soldered
to a pci2pcie bridge to make a compatible conventional PCI card.

The diffstat for pci improves a bit when we remove:
pci_find_upstream_pci_bridge:

 drivers/iommu/intel-iommu.c         |  164 ++++++++++-----------------
 drivers/iommu/intel_irq_remapping.c |    2 
 drivers/pci/search.c                |  215 +++++++++++++++++++++++++++++++-----
 include/linux/pci.h                 |   16 +-
 4 files changed, 260 insertions(+), 137 deletions(-)

Comments?  Thanks,

Alex

---

Alex Williamson (2):
      pci: Create PCIe requester ID interface
      iommu/intel: Make use of PCIe requester ID interface


 drivers/iommu/intel-iommu.c         |  164 +++++++++++------------------
 drivers/iommu/intel_irq_remapping.c |    2 
 drivers/pci/search.c                |  198 +++++++++++++++++++++++++++++++++++
 include/linux/pci.h                 |    7 +
 4 files changed, 270 insertions(+), 101 deletions(-)

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

end of thread, other threads:[~2014-04-04 15:00 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-11 21:03 [RFC PATCH v2 0/2] pci/iommu: PCIe requester ID interface Alex Williamson
2013-07-11 21:03 ` [RFC PATCH v2 1/2] pci: Create " Alex Williamson
2013-07-23 22:35   ` Bjorn Helgaas
2013-07-23 23:21     ` Alex Williamson
2013-07-24 15:03       ` Andrew Cooks
2013-07-24 15:50         ` Alex Williamson
2013-07-24 16:47       ` Bjorn Helgaas
2013-07-24 18:12         ` Alex Williamson
2013-07-24 23:24           ` Bjorn Helgaas
2013-07-25 17:56             ` Alex Williamson
2013-07-26 21:54               ` Bjorn Helgaas
2013-07-29 16:06                 ` Alex Williamson
2013-07-29 21:02                   ` Bjorn Helgaas
2013-07-29 22:32                     ` Alex Williamson
2013-08-01 22:08                       ` Bjorn Helgaas
2013-08-02 16:59                         ` Alex Williamson
2014-04-03 21:48                           ` Bjorn Helgaas
2014-04-04  2:51                             ` Alex Williamson
2014-04-04 15:00                               ` Bjorn Helgaas
2013-07-29 21:03                   ` Don Dutile
2013-07-29 22:55                     ` Alex Williamson
2013-07-24 20:42     ` Don Dutile
2013-07-24 21:22       ` Alex Williamson
2013-07-25 18:38         ` Don Dutile
2013-07-25 17:19       ` Bjorn Helgaas
2013-07-25 18:25         ` Don Dutile
2013-07-26 19:48           ` Bjorn Helgaas
2013-07-26 20:04             ` Don Dutile
2013-07-11 21:03 ` [RFC PATCH v2 2/2] iommu/intel: Make use of " Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).