summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/i915_drv.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2010-09-21 21:47:19 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2010-09-21 21:47:19 +0000
commit862efe8fe09ab7a162ed50d683801247b5d77637 (patch)
tree5e8e4ce2e099c6c6c4464d82e73fe8ea632513e3 /sys/dev/pci/drm/i915_drv.c
parent02584da7f35f6b4772754e1c670d351530d3b354 (diff)
When we reset the chip, no need to clear the active list, the
retire_requests() called just prior will do that for us.
Diffstat (limited to 'sys/dev/pci/drm/i915_drv.c')
-rw-r--r--sys/dev/pci/drm/i915_drv.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c
index 639545cb51d..41092d1a83e 100644
--- a/sys/dev/pci/drm/i915_drv.c
+++ b/sys/dev/pci/drm/i915_drv.c
@@ -4346,20 +4346,6 @@ inteldrm_hung(void *arg, void *reset_type)
* they're now irrelavent.
*/
mtx_enter(&dev_priv->list_lock);
- while ((obj_priv = TAILQ_FIRST(&dev_priv->mm.active_list)) != NULL) {
- drm_lock_obj(&obj_priv->obj);
- if (obj_priv->obj.write_domain & I915_GEM_GPU_DOMAINS) {
- TAILQ_REMOVE(&dev_priv->mm.gpu_write_list,
- obj_priv, write_list);
- atomic_clearbits_int(&obj_priv->obj.do_flags,
- I915_GPU_WRITE);
- obj_priv->obj.write_domain &= ~I915_GEM_GPU_DOMAINS;
- }
- /* unlocks object and list */
- i915_gem_object_move_to_inactive_locked(&obj_priv->obj);;
- mtx_enter(&dev_priv->list_lock);
- }
-
while ((obj_priv = TAILQ_FIRST(&dev_priv->mm.flushing_list)) != NULL) {
drm_lock_obj(&obj_priv->obj);
if (obj_priv->obj.write_domain & I915_GEM_GPU_DOMAINS) {