]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Tue, 4 Feb 2020 09:18:41 +0000 (09:18 +0000)
commitdeffedfba69e93ac937094932dd8e7ba3bc133f0
tree94b70275d13ef9e30331a9080817185eebfc42ae
parent4c347ea7eb8d5003dde6e38fc650fcb80e67bff9
PCI: Add DMA alias quirk for Intel VCA NTB

BugLink: https://bugs.launchpad.net/bugs/1861784
[ Upstream commit 56b4cd4b7da9ee95778eb5c8abea49f641ebfd91 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/pci/quirks.c