intel-iommu: Export a flag indicating that the IOMMU is used for iGFX.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 17 Oct 2011 22:51:53 +0000 (15:51 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Oct 2011 22:26:38 +0000 (15:26 -0700)
commitbab31a224e91bc376a68b4463d6d06cb1e4ce623
treebed314a29bf4c2e9a670675c425535e25692d87b
parentd15bf23bc025ded52054ac3a05d6433a54e43fd2
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>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/iommu/intel-iommu.c