All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add parameter for disabling ACS redirection for P2P
@ 2018-05-31 23:50 ` Logan Gunthorpe
  0 siblings, 0 replies; 22+ messages in thread
From: Logan Gunthorpe @ 2018-05-31 23:50 UTC (permalink / raw)
  To: linux-kernel, linux-pci, linux-doc
  Cc: Stephen Bates, Christoph Hellwig, Bjorn Helgaas, Jonathan Corbet,
	Ingo Molnar, Thomas Gleixner, Paul E. McKenney, Marc Zyngier,
	Kai-Heng Feng, Frederic Weisbecker, Dan Williams,
	Jérôme Glisse, Benjamin Herrenschmidt, Alex Williamson,
	Christian König, Logan Gunthorpe

Hi,

As discussed in our PCI P2PDMA series, we'd like to add a kernel
parameter for selectively disabling ACS redirection for select
bridges. Seeing this turned out to be a small series in itself, we've
decided to send this separately from the P2P work.

This series generalizes the code already done for the resource_alignment
option that already exists. The first patch creates a helper function
to match PCI devices against strings based on the code that already
existed in pci_specified_resource_alignment().

The second patch expands the new helper to optionally take a path of
PCI devfns. This is to address Alex's renumbering concern when using
simple bus-devfns. The implementation is essentially how he described it and
similar to the Intel VT-d spec (Section 8.3.1).

The final patch adds the disable_acs_redir kernel parameter which takes
a list of PCI devices and will disable the ACS P2P Request Redirect,
ACS P2P Completion Redirect and ACS P2P Egress Control bits for the
selected devices. This allows P2P traffic between selected bridges and
seeing it's done at boot, before IOMMU group creating the IOMMU groups
will be created correctly based on the bits.

Thanks,

Logan

--

Changes since v1:

* Reworked pci_dev_str_match_path using strrchr as suggested by Alex
* Collected Christian's Acks

--

Logan Gunthorpe (3):
  PCI: Make specifying PCI devices in kernel parameters reusable
  PCI: Allow specifying devices using a base bus and path of devfns
  PCI: Introduce the disable_acs_redir parameter

 Documentation/admin-guide/kernel-parameters.txt |  39 ++-
 drivers/pci/pci.c                               | 353 ++++++++++++++++++++----
 2 files changed, 331 insertions(+), 61 deletions(-)

--
2.11.0

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

end of thread, other threads:[~2018-06-01 15:48 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31 23:50 [PATCH 0/3] Add parameter for disabling ACS redirection for P2P Logan Gunthorpe
2018-05-31 23:50 ` Logan Gunthorpe
2018-05-31 23:50 ` [PATCH v2 1/3] PCI: Make specifying PCI devices in kernel parameters reusable Logan Gunthorpe
2018-05-31 23:50   ` Logan Gunthorpe
2018-06-01 10:39   ` Andy Shevchenko
2018-06-01 10:39     ` Andy Shevchenko
2018-06-01 10:39     ` Andy Shevchenko
2018-06-01 15:46     ` Logan Gunthorpe
2018-06-01 15:46       ` Logan Gunthorpe
2018-05-31 23:50 ` [PATCH v2 2/3] PCI: Allow specifying devices using a base bus and path of devfns Logan Gunthorpe
2018-05-31 23:50   ` Logan Gunthorpe
2018-06-01 10:41   ` Andy Shevchenko
2018-06-01 10:41     ` Andy Shevchenko
2018-06-01 10:41     ` Andy Shevchenko
2018-06-01 15:46     ` Logan Gunthorpe
2018-06-01 15:46       ` Logan Gunthorpe
2018-06-01 14:30   ` Alex Williamson
2018-06-01 14:30     ` Alex Williamson
2018-06-01 15:47     ` Logan Gunthorpe
2018-06-01 15:47       ` Logan Gunthorpe
2018-05-31 23:50 ` [PATCH v2 3/3] PCI: Introduce the disable_acs_redir parameter Logan Gunthorpe
2018-05-31 23:50   ` Logan Gunthorpe

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.