OSDN Git Service

PCI: vmd: Remove dma_map_ops overrides
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 21 Jan 2020 13:37:50 +0000 (06:37 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 24 Jan 2020 20:58:59 +0000 (14:58 -0600)
commit962e329d888cfcb923d39af4e14fd616467de167
tree10cf32d96715d665569670a6612c255398cbc7e3
parente3560ee4cfb29e232ea99ff9adfaa8ac5b414345
PCI: vmd: Remove dma_map_ops overrides

Devices on the VMD domain use the VMD endpoint's requester ID and have been
relying on the VMD endpoint's DMA operations.  The problem with this was
that VMD domain devices would use the VMD endpoint's attributes when doing
DMA and IOMMU mapping.  We can be smarter about this by only using the VMD
endpoint when mapping and providing the correct child device's attributes
during DMA operations.

Remove the dma_map_ops redirect.

Link: https://lore.kernel.org/r/1579613871-301529-7-git-send-email-jonathan.derrick@intel.com
Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/Kconfig
drivers/pci/controller/vmd.c