]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Don't enable iommu's which have been ignored
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 12 Jun 2019 00:28:47 +0000 (08:28 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Jun 2019 08:36:59 +0000 (10:36 +0200)
commit26d9e218673fda2ba28f0c76a4e38d6c4d39e66f
tree7597d0f6839a4b4773237413f096eea76fd4f383
parentfa5abc05581a29042b532fbe22db8c3b3598dc7e
iommu/vt-d: Don't enable iommu's which have been ignored

The iommu driver will ignore some iommu units if there's no
device under its scope or those devices have been explicitly
set to bypass the DMA translation. Don't enable those iommu
units, otherwise the devices under its scope won't work.

Fixes: b686edd279ac3 ("iommu/vt-d: Enable DMA remapping after rmrr mapped")
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c