iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iommu/intel: Quirk non-compliant PCIe-to-PCI bridges
@ 2013-05-28 18:40 Alex Williamson
  2013-05-28 18:40 ` [PATCH v2 2/2] intel-iommu: Convert to iommu_pci_find_upstream + iommu_pci_is_pcie_bridge Alex Williamson
       [not found] ` <20130528183527.3318.5365.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
  0 siblings, 2 replies; 23+ messages in thread
From: Alex Williamson @ 2013-05-28 18:40 UTC (permalink / raw)
  To: iommu, dwmw2, joro; +Cc: stephen, linux-pci, ddutile

This series tries to address:

https://bugzilla.kernel.org/show_bug.cgi?id=44881

Where pci_find_upstream_pcie_bridge() gets lost trying to find the
upstream PCIe-to-PCI bridge for a device because the bridge doesn't
expose a PCIe capability.  To do this, we add a iommu_pci_is_pcie_bridge
function which includes a quirk to look to the next upstream device
as a sanity check.  We can then replace pci_find_upstream_pcie_bridge
with a function that's a bit more generic and less tied to intel-iommu
eccentricities.

v2 uses the same logic as v1, but moves the search and match code to
IOMMU-core since PCI-core doesn't want it.  v1 has several reports
from users that this solves the problem they have in the above bz.
Thanks,

Alex

---

Alex Williamson (2):
      iommu: Quirked PCIe bridge test and search function
      intel-iommu: Convert to iommu_pci_find_upstream + iommu_pci_is_pcie_bridge


 drivers/iommu/Kconfig               |    5 ++
 drivers/iommu/Makefile              |    1 
 drivers/iommu/intel-iommu.c         |   77 ++++++++++++++++++++++-------------
 drivers/iommu/intel_irq_remapping.c |   15 +++++--
 drivers/iommu/pci.c                 |   69 +++++++++++++++++++++++++++++++
 drivers/iommu/pci.h                 |   23 ++++++++++
 6 files changed, 157 insertions(+), 33 deletions(-)
 create mode 100644 drivers/iommu/pci.c

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

end of thread, other threads:[~2013-07-30 11:52 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 18:40 [PATCH v2 0/2] iommu/intel: Quirk non-compliant PCIe-to-PCI bridges Alex Williamson
2013-05-28 18:40 ` [PATCH v2 2/2] intel-iommu: Convert to iommu_pci_find_upstream + iommu_pci_is_pcie_bridge Alex Williamson
     [not found] ` <20130528183527.3318.5365.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2013-05-28 18:40   ` [PATCH v2 1/2] iommu: Quirked PCIe bridge test and search function Alex Williamson
2013-05-28 19:38     ` Stephen Hemminger
2013-05-28 19:53       ` Alex Williamson
2013-05-28 19:56         ` Stephen Hemminger
2013-05-28 20:15           ` Alex Williamson
2013-05-28 20:28             ` Stephen Hemminger
     [not found]     ` <20130528184020.3318.7800.stgit-xdHQ/5r00wBBDLzU/O5InQ@public.gmane.org>
2013-06-20 13:59       ` Joerg Roedel
2013-06-20 15:44         ` Alex Williamson
     [not found]           ` <1371743091.32709.52.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2013-06-20 16:15             ` Joerg Roedel
2013-06-26  4:20               ` Bjorn Helgaas
     [not found]                 ` <CAErSpo5_P9tPdmpq2XO-X-d5NUWFG8Nbm_byKOkd5d4b8UMcMQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-06-26 18:45                   ` Alex Williamson
2013-06-26 19:11                     ` Bjorn Helgaas
2013-05-28 22:09   ` [PATCH v2 0/2] iommu/intel: Quirk non-compliant PCIe-to-PCI bridges Bjorn Helgaas
2013-05-28 22:53   ` [PATCH v2 3/2] pci: Remove unused pci_find_upstream_pcie_bridge() Alex Williamson
2013-07-08 17:07   ` [PATCH v2 0/2] iommu/intel: Quirk non-compliant PCIe-to-PCI bridges Alex Williamson
     [not found]     ` <1373303240.2602.28.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2013-07-08 19:34       ` Bjorn Helgaas
     [not found]         ` <20130708193436.GA31985-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2013-07-08 20:49           ` Alex Williamson
2013-07-08 21:51             ` Bjorn Helgaas
     [not found]               ` <20130708215131.GA1168-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2013-07-09 18:27                 ` Alex Williamson
2013-07-09 20:10                   ` Bjorn Helgaas
2013-07-30 11:52       ` Joerg Roedel

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).