PCI: Add DMA alias quirk for Intel VCA NTB
authorSlawomir Pawlowski <slawomir.pawlowski@intel.com>
Tue, 17 Sep 2019 09:20:48 +0000 (09:20 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 15 Oct 2019 21:39:12 +0000 (16:39 -0500)
commit56b4cd4b7da9ee95778eb5c8abea49f641ebfd91
tree6424e1f15c24eeda681762ae8f533d4511b50bb4
parentd8558ac8c93d429d65d7490b512a3a67e559d0d4
PCI: Add DMA alias quirk for Intel VCA NTB

Intel Visual Compute Accelerator (VCA) is a family of PCIe add-in devices
exposing computational units via Non Transparent Bridges (NTB, PEX 87xx).

Similarly to MIC x200, we need to add DMA aliases to allow buffer access
when IOMMU is enabled.

Add aliases to allow computational unit access to host memory.  These
aliases mark the whole VCA device as one IOMMU group.

All possible slot numbers (0x20) are used, since we are unable to tell what
slot is used on other side.  This quirk is intended for both host and
computational unit sides.  The VCA devices have up to five functions: four
for DMA channels and one additional.

Link: https://lore.kernel.org/r/5683A335CC8BE1438C3C30C49DCC38DF637CED8E@IRSMSX102.ger.corp.intel.com
Signed-off-by: Slawomir Pawlowski <slawomir.pawlowski@intel.com>
Signed-off-by: Przemek Kitszel <przemyslawx.kitszel@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c