lima: avoid error task dump attempt when not enabled
Subsystems (3)
PATCH 1/1 lima: avoid error task dump attempt when not enabled
Currently when users try to run an application with lima and that hits an issue such as a timeout, a message saying "fail to save task state" and "error task list is full" is shown in dmesg.
The error task dump is a debug feature disabled by default, so the error task list is usually not going to be available at all. The message can be misleading and creates confusion in bug reports.
We can avoid that code path and that particular message when the user has not explicitly set the max_error_tasks parameter to enable the feature.
--- drivers/gpu/drm/lima/lima_sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/lima/lima_sched.c +2 -1
@@ -409,7 +409,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *jobdrm_sched_increase_karma (&task->base); -lima_sched_build_error_task_list (task); +if (lima_max_error_tasks) +lima_sched_build_error_task_list (task); pipe->task_error (pipe);
Signature · 1 line
2.34.1
Looks good for me, patch is:
Quoted 35 lines · Erico Nunes
Currently when users try to run an application with lima and that hits an issue such as a timeout, a message saying "fail to save task state" and "error task list is full" is shown in dmesg.
The error task dump is a debug feature disabled by default, so the error task list is usually not going to be available at all. The message can be misleading and creates confusion in bug reports.
We can avoid that code path and that particular message when the user has not explicitly set the
max_error_tasksparameter to enable the feature.Signed-off-by Erico Nunes <[email protected]>--- drivers/gpu/drm/lima/lima_sched.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/lima/lima_sched.c +2
-2@@ -409,7 +409,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *jobdrm_sched_increase_karma (&task->base); -lima_sched_build_error_task_list (task); +if (lima_max_error_tasks) +lima_sched_build_error_task_list (task); pipe->task_error (pipe); --2.34.1
Hello Erico,
Quoted 8 lines · Erico Nunes
Currently when users try to run an application with lima and that hits an issue such as a timeout, a message saying "fail to save task state" and "error task list is full" is shown in dmesg.
The error task dump is a debug feature disabled by default, so the error task list is usually not going to be available at all. The message can be misleading and creates confusion in bug reports.
Quoted 6 lines
We can avoid that code path and that particular message when the user has not explicitly set the
max_error_tasksparameter to enable the feature.Signed-off-by Erico Nunes <[email protected]>---
Looks good to me.
Best regards,
Signature · 3 lines
Javier Martinez Canillas Linux Engineering Red Hat