drm/scheduler: Add flag to hint the release of guilty job.
[platform/kernel/linux-rpi.git] / include / drm / gpu_scheduler.h
index 9ee0f27..57b4121 100644 (file)
@@ -259,6 +259,7 @@ struct drm_sched_backend_ops {
  *              guilty and it will be considered for scheduling further.
  * @num_jobs: the number of jobs in queue in the scheduler
  * @ready: marks if the underlying HW is ready to work
+ * @free_guilty: A hit to time out handler to free the guilty job.
  *
  * One scheduler is implemented for each hardware ring.
  */
@@ -279,6 +280,7 @@ struct drm_gpu_scheduler {
        int                             hang_limit;
        atomic_t                        num_jobs;
        bool                    ready;
+       bool                            free_guilty;
 };
 
 int drm_sched_init(struct drm_gpu_scheduler *sched,