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)
commitd7af4d987dfa31c5d715e940a447ea959f89e575
treee876a96729aa4334e46a3b0b79861a96ee3e4e13
parentcd6c84d8f0cdc911df435bb075ba22ce3c605b07
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