summaryrefslogtreecommitdiffstats
path: root/include/drm/intel-gtt.h
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2011-10-18 00:51:55 +0200
committerKeith Packard <keithp@keithp.com>2011-10-21 00:26:39 +0200
commit5c0422878fcdc279ae9a8e8b66972a15b5efb67f (patch)
tree13ed982427828e6a031dd5fd642f25b15c300d63 /include/drm/intel-gtt.h
parentdrm/i915: Remove early exit on i915_gpu_idle (diff)
downloadlinux-5c0422878fcdc279ae9a8e8b66972a15b5efb67f.tar.xz
linux-5c0422878fcdc279ae9a8e8b66972a15b5efb67f.zip
drm/i915: ILK + VT-d workaround
Idle the GPU before doing any unmaps. We know if VT-d is in use through an exported variable from iommu code. This should avoid a known HW issue. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include/drm/intel-gtt.h')
-rw-r--r--include/drm/intel-gtt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h
index 9e343c0998b4..b174620cc9b3 100644
--- a/include/drm/intel-gtt.h
+++ b/include/drm/intel-gtt.h
@@ -13,6 +13,8 @@ const struct intel_gtt {
unsigned int gtt_mappable_entries;
/* Whether i915 needs to use the dmar apis or not. */
unsigned int needs_dmar : 1;
+ /* Whether we idle the gpu before mapping/unmapping */
+ unsigned int do_idle_maps : 1;
} *intel_gtt_get(void);
void intel_gtt_chipset_flush(void);