diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2011-10-18 02:51:55 +0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-10-21 02:26:39 +0400 |
commit | 5c0422878fcdc279ae9a8e8b66972a15b5efb67f (patch) | |
tree | 13ed982427828e6a031dd5fd642f25b15c300d63 /include/drm/intel-gtt.h | |
parent | f372b85463dac2fc696443d4c5063db2af5dcead (diff) | |
download | linux-5c0422878fcdc279ae9a8e8b66972a15b5efb67f.tar.xz |
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.h | 2 |
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); |