]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Handle RMRR with PCI bridge device scopes
authorEric Auger <eric.auger@redhat.com>
Mon, 3 Jun 2019 06:53:33 +0000 (08:53 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 12 Jun 2019 08:32:59 +0000 (10:32 +0200)
commit3557b32c2058bab0dfda70c8f4b9acf1583ab551
tree9cf67a124b71f80c84d120d49a396fe6b3df6955
parent3565e834c56ad4d3a459b5ba5973257d329b7126
iommu/vt-d: Handle RMRR with PCI bridge device scopes

When reading the vtd specification and especially the
Reserved Memory Region Reporting Structure chapter,
it is not obvious a device scope element cannot be a
PCI-PCI bridge, in which case all downstream ports are
likely to access the reserved memory region. Let's handle
this case in device_has_rmrr.

Fixes: 093e746ced02 ("intel-iommu: Prevent devices with RMRRs from being placed into SI Domain")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c