]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Fix bind svm with multiple devices
authorJacob Pan <jacob.jun.pan@linux.intel.com>
Wed, 8 May 2019 19:22:46 +0000 (12:22 -0700)
committerJoerg Roedel <jroedel@suse.de>
Mon, 27 May 2019 09:54:56 +0000 (11:54 +0200)
commit133b9891312156d2940c99296e23e90c2fcc2a13
treee876a96729aa4334e46a3b0b79861a96ee3e4e13
parent7f3e30282b380958e65348f1509b90f11030d416
iommu/vt-d: Fix bind svm with multiple devices

If multiple devices try to bind to the same mm/PASID, we need to
set up first level PASID entries for all the devices. The current
code does not consider this case which results in failed DMA for
devices after the first bind.

Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reported-by: Mike Campin <mike.campin@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-svm.c