On Fri, Dec 11, 2015 at 02:36:36PM +0000, Nick Hoath wrote:
> diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
> index 84e2b20..a2857b0 100644
> --- a/drivers/gpu/drm/i915/i915_dma.c
> +++ b/drivers/gpu/drm/i915/i915_dma.c
> @@ -449,7 +449,7 @@ static int i915_load_modeset_init(struct drm_device *dev)
>  
>  cleanup_gem:
>       mutex_lock(&dev->struct_mutex);
> -     i915_gem_cleanup_ringbuffer(dev);
> +     i915_gem_cleanup_engines(dev);
>       i915_gem_context_fini(dev);
>       mutex_unlock(&dev->struct_mutex);
>  cleanup_irq:
> @@ -1188,8 +1188,8 @@ int i915_driver_unload(struct drm_device *dev)
>  
>       intel_guc_ucode_fini(dev);
>       mutex_lock(&dev->struct_mutex);
> -     i915_gem_cleanup_ringbuffer(dev);
>       i915_gem_context_fini(dev);
> +     i915_gem_cleanup_engines(dev);
>       mutex_unlock(&dev->struct_mutex);
>       intel_fbc_cleanup_cfb(dev_priv);
>       i915_gem_cleanup_stolen(dev);

Choose!

Anyway contexts should be shutdown before the engines, so with the above
fixed
Reviewed-by: Chris Wilson <ch...@chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to