[Intel-gfx] [PATCH] drm/i915: Try to stop rings before reset

Chris Wilson chris at chris-wilson.co.uk
Wed Apr 30 08:56:00 CEST 2014


On Tue, Apr 29, 2014 at 04:38:21PM +0200, Daniel Vetter wrote:
>  int intel_gpu_reset(struct drm_device *dev)
>  {
> +	struct drm_i915_private *dev_priv = dev->dev_private;
> +	struct intel_ring_buffer *ring;
> +	int i;
> +
> +	for_each_ring(ring, dev_priv, i)
> +		__intel_stop_ring_buffer(ring);

intel_gpu_reset() is called after i915_gem_reset() in the normal reset
sequence (when the GPU is hung) so what was the error in using the
currently exported function?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list