drm/i915: Disable stolen memory when DMAR is active
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 18 Mar 2014 12:50:50 +0000 (14:50 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 19 Mar 2014 08:05:38 +0000 (10:05 +0200)
commit0f4706d2740f2a221cd502922b22e522009041d9
treefd0df0e726d1309558982b6f0ee7531cc560e46c
parent825938307f812c7cbfe064c7884bd8bdb27c2144
drm/i915: Disable stolen memory when DMAR is active

We have reports of heavy screen corruption if we try to use the stolen
memory reserved by the BIOS whilst the DMA-Remapper is active. This
quirk may be only specific to a few machines or BIOSes, but first lets
apply the big hammer and always disable use of stolen memory when DMAR
is active.

v2 by Jani: Rebase on -fixes, only look at intel_iommu_gfx_mapped.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68535
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c