summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_sched.h
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2024-01-24 03:59:45 +0100
committerQiang Yu <yuq825@gmail.com>2024-02-12 16:27:28 +0800
commite721d1cc8101a26fba22dc9a62309522e15bd0c7 (patch)
tree620f6aab20057514441fe70b4f878e2f1968ce09 /drivers/gpu/drm/lima/lima_sched.h
parent53cb55b20208eaa79de63c82795c8d51caa9cfcc (diff)
downloadlinux-stable-e721d1cc8101a26fba22dc9a62309522e15bd0c7.tar.gz
linux-stable-e721d1cc8101a26fba22dc9a62309522e15bd0c7.tar.bz2
linux-stable-e721d1cc8101a26fba22dc9a62309522e15bd0c7.zip
drm/lima: remove guilty drm_sched context handling
Marking the context as guilty currently only makes the application which hits a single timeout problem to stop its rendering context entirely. All jobs submitted later are dropped from the guilty context. Lima runs on fairly underpowered hardware for modern standards and it is not entirely unreasonable that a rendering job may time out occasionally due to high system load or too demanding application stack. In this case it would be generally preferred to report the error but try to keep the application going. Other similar embedded GPU drivers don't make use of the guilty context flag. Now that there are reliability improvements to the lima timeout recovery handling, drop the guilty contexts to let the application keep running in this case. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240124025947.2110659-7-nunes.erico@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.h')
-rw-r--r--drivers/gpu/drm/lima/lima_sched.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/lima/lima_sched.h b/drivers/gpu/drm/lima/lima_sched.h
index 6a11764d87b3..6bd4f3b70109 100644
--- a/drivers/gpu/drm/lima/lima_sched.h
+++ b/drivers/gpu/drm/lima/lima_sched.h
@@ -91,8 +91,7 @@ int lima_sched_task_init(struct lima_sched_task *task,
void lima_sched_task_fini(struct lima_sched_task *task);
int lima_sched_context_init(struct lima_sched_pipe *pipe,
- struct lima_sched_context *context,
- atomic_t *guilty);
+ struct lima_sched_context *context);
void lima_sched_context_fini(struct lima_sched_pipe *pipe,
struct lima_sched_context *context);
struct dma_fence *lima_sched_context_queue_task(struct lima_sched_task *task);