]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/vt-d: Allow devices with RMRRs to use identity domain
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 15 Jan 2020 03:03:58 +0000 (11:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 08:48:18 +0000 (10:48 +0200)
commitad5676629a126afeb8f3aa9d08eaad663cf0e8e2
treecd37e074960947dffd47cce39bed8f17426af0c5
parent04ad505eed58f442b8d55004df10456ab2f0ec08
iommu/vt-d: Allow devices with RMRRs to use identity domain

commit 9235cb13d7d17baba0b3a9277381258361e95c16 upstream.

Since commit ea2447f700cab ("intel-iommu: Prevent devices with
RMRRs from being placed into SI Domain"), the Intel IOMMU driver
doesn't allow any devices with RMRR locked to use the identity
domain. This was added to to fix the issue where the RMRR info
for devices being placed in and out of the identity domain gets
lost. This identity maps all RMRRs when setting up the identity
domain, so that devices with RMRRs could also use it.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: John Donnelly <john.p.donnelly@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/intel-iommu.c