Re: [PATCH] drm/i915: Cancel all ready but queued requests when wedging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Chris Wilson (2017-09-15 17:49:16)
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
> index abf171c3cb9c..04fc50c993bf 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.h
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
> @@ -306,6 +306,14 @@ struct intel_engine_cs {
>         void            (*schedule)(struct drm_i915_gem_request *request,
>                                     int priority);
>  
> +       /*
> +        * Cancel all requests on the hardware, or queued for execution.
> +        *
> +        * This is called under the engine->timeline->lock when marking
> +        * the device as wedged.
> +        */
> +       void            (*cancel_all_requests)(struct intel_engine_cs *engine);

cancel_all_requests is a bit too broad, could just shorten it to
cancel_requests with the doc explaining that we only cancel the requests
that have been submitted to the engine (not the not-yet-ready requests
still floating in the aether).
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux