diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-02-15 17:50:21 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-20 16:51:41 -0400 |
commit | 741639079cb49d796be50827e13b592121184ff8 (patch) | |
tree | 221e8c2cbf034b4968bea2202b02d6a222b83dc6 /drivers/gpu/drm/i915/i915_drv.h | |
parent | a70491cc6bb599c5ea8a60cbfae46ec41a7efb2a (diff) |
drm/i915: split out dma mapping from global gtt bind/unbind functions
Note that there's a functional change buried in this patch wrt the ilk
dmar workaround: We now only idle the gpu while tearing down the dmar
mappings, not while clearing the gtt. Keeping the current semantics
would have made for some really ugly code and afaik the issue is only
with the dmar unmapping that needs a fully idle gpu.
Reviewed-and-tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index e7a00b7cd372..3619f76367b2 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -1291,10 +1291,11 @@ void i915_ppgtt_unbind_object(struct i915_hw_ppgtt *ppgtt, | |||
1291 | struct drm_i915_gem_object *obj); | 1291 | struct drm_i915_gem_object *obj); |
1292 | 1292 | ||
1293 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); | 1293 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); |
1294 | int __must_check i915_gem_gtt_bind_object(struct drm_i915_gem_object *obj); | 1294 | int __must_check i915_gem_gtt_prepare_object(struct drm_i915_gem_object *obj); |
1295 | void i915_gem_gtt_rebind_object(struct drm_i915_gem_object *obj, | 1295 | void i915_gem_gtt_bind_object(struct drm_i915_gem_object *obj, |
1296 | enum i915_cache_level cache_level); | 1296 | enum i915_cache_level cache_level); |
1297 | void i915_gem_gtt_unbind_object(struct drm_i915_gem_object *obj); | 1297 | void i915_gem_gtt_unbind_object(struct drm_i915_gem_object *obj); |
1298 | void i915_gem_gtt_finish_object(struct drm_i915_gem_object *obj); | ||
1298 | 1299 | ||
1299 | /* i915_gem_evict.c */ | 1300 | /* i915_gem_evict.c */ |
1300 | int __must_check i915_gem_evict_something(struct drm_device *dev, int min_size, | 1301 | int __must_check i915_gem_evict_something(struct drm_device *dev, int min_size, |