summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2021-02-10 14:24:39 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2021-02-10 15:26:00 +0100
commite2183fb135a7f62d317aa1c61eb3d1919080edba (patch)
tree5d032ccec9182b8b68ae1f1839e4dfd406498728 /include
parent4b8878eefa0a3b65e2e016db49014ea66fb9fd45 (diff)
Revert "drm/scheduler: Job timeout handler returns status (v3)"
This reverts commit c10983e14e8f5d7c8dab0415e0cb7fe8d10aa9e3. This commit is not meant for drm-misc-next-fixes, and was accidentally cherry picked over. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/gpu_scheduler.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h
index ce6a383ed99f..975e8a67947f 100644
--- a/include/drm/gpu_scheduler.h
+++ b/include/drm/gpu_scheduler.h
@@ -206,12 +206,6 @@ static inline bool drm_sched_invalidate_job(struct drm_sched_job *s_job,
return s_job && atomic_inc_return(&s_job->karma) > threshold;
}
-enum drm_gpu_sched_stat {
- DRM_GPU_SCHED_STAT_NONE, /* Reserve 0 */
- DRM_GPU_SCHED_STAT_NOMINAL,
- DRM_GPU_SCHED_STAT_ENODEV,
-};
-
/**
* struct drm_sched_backend_ops
*
@@ -236,16 +230,10 @@ struct drm_sched_backend_ops {
struct dma_fence *(*run_job)(struct drm_sched_job *sched_job);
/**
- * @timedout_job: Called when a job has taken too long to execute,
- * to trigger GPU recovery.
- *
- * Return DRM_GPU_SCHED_STAT_NOMINAL, when all is normal,
- * and the underlying driver has started or completed recovery.
- *
- * Return DRM_GPU_SCHED_STAT_ENODEV, if the device is no longer
- * available, i.e. has been unplugged.
+ * @timedout_job: Called when a job has taken too long to execute,
+ * to trigger GPU recovery.
*/
- enum drm_gpu_sched_stat (*timedout_job)(struct drm_sched_job *sched_job);
+ void (*timedout_job)(struct drm_sched_job *sched_job);
/**
* @free_job: Called once the job's finished fence has been signaled