intel-iommu: Export a flag indicating that the IOMMU is used for iGFX.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 14 Oct 2011 19:59:46 +0000 (20:59 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 14 Oct 2011 19:59:46 +0000 (20:59 +0100)
commitc0771df8d5297bfb9c4fbe8ada085a49cb22ec4f
tree6130a2dfb61a3c36b2e811907e358f75eba4893e
parent6fbcfb3e467adb414e235eeefaeaf51ad12f2461
intel-iommu: Export a flag indicating that the IOMMU is used for iGFX.

We really don't want this to work in the general case; device drivers
*shouldn't* care whether they are behind an IOMMU or not. But the
integrated graphics is a special case, because the IOMMU and the GTT are
all kind of smashed into one and generally horrifically buggy, so it's
reasonable for the graphics driver to want to know when the IOMMU is
active for the graphics hardware.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/iommu/intel-iommu.c