Commit fcee3c73 authored by Dave Airlie's avatar Dave Airlie

Merge tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel into drm-fixes

one fix, one revert
* tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel:
  Revert "drm/i915: Don't skip request retirement if the active list is empty"
  drm/i915: Always reset vma->ggtt_view.pages cache on unbinding
parents 031fea43 245ec9d8
...@@ -2656,6 +2656,9 @@ void i915_gem_reset(struct drm_device *dev) ...@@ -2656,6 +2656,9 @@ void i915_gem_reset(struct drm_device *dev)
void void
i915_gem_retire_requests_ring(struct intel_engine_cs *ring) i915_gem_retire_requests_ring(struct intel_engine_cs *ring)
{ {
if (list_empty(&ring->request_list))
return;
WARN_ON(i915_verify_lists(ring->dev)); WARN_ON(i915_verify_lists(ring->dev));
/* Retire requests first as we use it above for the early return. /* Retire requests first as we use it above for the early return.
...@@ -3000,8 +3003,8 @@ int i915_vma_unbind(struct i915_vma *vma) ...@@ -3000,8 +3003,8 @@ int i915_vma_unbind(struct i915_vma *vma)
} else if (vma->ggtt_view.pages) { } else if (vma->ggtt_view.pages) {
sg_free_table(vma->ggtt_view.pages); sg_free_table(vma->ggtt_view.pages);
kfree(vma->ggtt_view.pages); kfree(vma->ggtt_view.pages);
vma->ggtt_view.pages = NULL;
} }
vma->ggtt_view.pages = NULL;
} }
drm_mm_remove_node(&vma->node); drm_mm_remove_node(&vma->node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment