diff options
author | Ben Widawsky <ben@bwidawsk.net> | 2012-01-25 15:39:34 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-26 11:19:19 +0100 |
commit | b93f9cf14e714c20ce9a544ed1a6070ee7604588 (patch) | |
tree | bbf78a595254e96d88206bb60f400ae907a561f0 /drivers/gpu/drm/i915/i915_dma.c | |
parent | fc74d8e01165b567922921d110b6d16320a61fa6 (diff) | |
download | blackbird-op-linux-b93f9cf14e714c20ce9a544ed1a6070ee7604588.tar.gz blackbird-op-linux-b93f9cf14e714c20ce9a544ed1a6070ee7604588.zip |
drm/i915: argument to control retiring behavior
Sometimes it may be the case when we idle the gpu or wait on something
we don't actually want to process the retiring list. This patch allows
callers to choose the behavior.
Reviewed-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index 8122738db91e..3f27173fb519 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c @@ -2131,7 +2131,7 @@ int i915_driver_unload(struct drm_device *dev) unregister_shrinker(&dev_priv->mm.inactive_shrinker); mutex_lock(&dev->struct_mutex); - ret = i915_gpu_idle(dev); + ret = i915_gpu_idle(dev, true); if (ret) DRM_ERROR("failed to idle hardware: %d\n", ret); mutex_unlock(&dev->struct_mutex); |