]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Set intel_iommu_gfx_mapped correctly
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 2 May 2019 01:34:25 +0000 (09:34 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 3 May 2019 15:31:32 +0000 (17:31 +0200)
commite7312980619b17dd4a1622f35d9eb96bdcc69cdd
tree405dc1e48cfd537083692f94bf6566b86b08d2a6
parentaf5c465e7fd5b4c98986f46e0fa56a2cd9f4185a
iommu/vt-d: Set intel_iommu_gfx_mapped correctly

The intel_iommu_gfx_mapped flag is exported by the Intel
IOMMU driver to indicate whether an IOMMU is used for the
graphic device. In a virtualized IOMMU environment (e.g.
QEMU), an include-all IOMMU is used for graphic device.
This flag is found to be clear even the IOMMU is used.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Reported-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Fixes: 1eba63f75d67b ("intel-iommu: Export a flag indicating that the IOMMU is used for iGFX.")
Suggested-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c