]> 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 11:16:38 +0000 (13:16 +0200)
commite4e37de2788b3e3dad5a6cbc52cafb8572afa31c
tree79516640b2ec6b397667301451c2526396934d2d
parentbff310a965867674e6f99bbae35b41310a7e4457
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