]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0d2f5645bdb19da4e5d6ed8e708df947293e74f5
treebed314a29bf4c2e9a670675c425535e25692d87b
parent29cf97db2ebd6821ceb613a0b6d46213d7e6ef32
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