Skip to content

Commit

Permalink
drm/i915/gtt: Clear the cachelines upon resume
Browse files Browse the repository at this point in the history
Required for my pineview system to not barf after resuming.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Dec 9, 2010
1 parent d1c3b17 commit a8e9312
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ void i915_gem_restore_gtt_mappings(struct drm_device *dev)
struct drm_i915_gem_object *obj;

list_for_each_entry(obj, &dev_priv->mm.gtt_list, gtt_list) {
i915_gem_clflush_object(obj);

if (dev_priv->mm.gtt->needs_dmar) {
BUG_ON(!obj->sg_list);

Expand All @@ -51,7 +53,6 @@ void i915_gem_restore_gtt_mappings(struct drm_device *dev)
obj->agp_type);
}

/* Be paranoid and flush the chipset cache. */
intel_gtt_chipset_flush();
}

Expand Down

0 comments on commit a8e9312

Please sign in to comment.