Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217884
b: refs/heads/master
c: bc0c7f1
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Vetter authored and Chris Wilson committed Sep 8, 2010
1 parent 1380e4b commit b56671b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 24d05927c37adf62fe8833eceba50585cb78f906
refs/heads/master: bc0c7f14432f7f94b16f972f2d23b8c1248249b4
8 changes: 5 additions & 3 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -2256,9 +2256,6 @@ int i915_driver_unload(struct drm_device *dev)
i915_mch_dev = NULL;
spin_unlock(&mchdev_lock);

destroy_workqueue(dev_priv->wq);
del_timer_sync(&dev_priv->hangcheck_timer);

io_mapping_free(dev_priv->mm.gtt_mapping);
if (dev_priv->mm.gtt_mtrr >= 0) {
mtrr_del(dev_priv->mm.gtt_mtrr, dev->agp->base,
Expand All @@ -2283,6 +2280,9 @@ int i915_driver_unload(struct drm_device *dev)
vga_client_register(dev->pdev, NULL, NULL, NULL);
}

del_timer_sync(&dev_priv->hangcheck_timer);
cancel_work_sync(&dev_priv->error_work);

if (dev->pdev->msi_enabled)
pci_disable_msi(dev->pdev);

Expand All @@ -2307,6 +2307,8 @@ int i915_driver_unload(struct drm_device *dev)

intel_teardown_mchbar(dev);

destroy_workqueue(dev_priv->wq);

pci_dev_put(dev_priv->bridge_dev);
kfree(dev->dev_private);

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -4408,7 +4408,7 @@ i915_gem_idle(struct drm_device *dev)
* And not confound mm.suspended!
*/
dev_priv->mm.suspended = 1;
del_timer(&dev_priv->hangcheck_timer);
del_timer_sync(&dev_priv->hangcheck_timer);

i915_kernel_lost_context(dev);
i915_gem_cleanup_ringbuffer(dev);
Expand Down

0 comments on commit b56671b

Please sign in to comment.