Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307419
b: refs/heads/master
c: acb87df
h: refs/heads/master
i:
  307417: 3fba989
  307415: ae8e936
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed May 8, 2012
1 parent a0663d9 commit 942e1f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a928d536c09eb071d114aa94bc60d002e7c8f92b
refs/heads/master: acb87dfb4b847de1de1134e3e767e9a773d6454e
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,11 +967,14 @@ i915_gem_execbuffer_move_to_active(struct list_head *objects,
obj->pending_gpu_write = true;
list_move_tail(&obj->gpu_write_list,
&ring->gpu_write_list);
intel_mark_busy(ring->dev, obj);
if (obj->pin_count) /* check for potential scanout */
intel_mark_busy(ring->dev, obj);
}

trace_i915_gem_object_change_domain(obj, old_read, old_write);
}

intel_mark_busy(ring->dev, NULL);
}

static void
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -5558,6 +5558,9 @@ void intel_mark_busy(struct drm_device *dev, struct drm_i915_gem_object *obj)
mod_timer(&dev_priv->idle_timer, jiffies +
msecs_to_jiffies(GPU_IDLE_TIMEOUT));

if (obj == NULL)
return;

list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
if (!crtc->fb)
continue;
Expand Down Expand Up @@ -6007,6 +6010,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
goto cleanup_pending;

intel_disable_fbc(dev);
intel_mark_busy(dev, obj);
mutex_unlock(&dev->struct_mutex);

trace_i915_flip_request(intel_crtc->plane, obj);
Expand Down

0 comments on commit 942e1f6

Please sign in to comment.