* [PATCH v2] drm/lima: avoid error task dump attempt when not enabled
@ 2022-02-09 9:37 Erico Nunes
2022-02-12 4:27 ` Qiang Yu
0 siblings, 1 reply; 2+ messages in thread
From: Erico Nunes @ 2022-02-09 9:37 UTC (permalink / raw)
To: Qiang Yu, dri-devel
Cc: David Airlie, Daniel Vetter, lima, linux-kernel, Erico Nunes,
Javier Martinez Canillas
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.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
---
v2:
- collect review tags
- update summary line to "drm/lima:"
---
drivers/gpu/drm/lima/lima_sched.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c
index 5612d73f238f..12437e42cc76 100644
--- a/drivers/gpu/drm/lima/lima_sched.c
+++ b/drivers/gpu/drm/lima/lima_sched.c
@@ -409,7 +409,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *job
drm_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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] drm/lima: avoid error task dump attempt when not enabled
2022-02-09 9:37 [PATCH v2] drm/lima: avoid error task dump attempt when not enabled Erico Nunes
@ 2022-02-12 4:27 ` Qiang Yu
0 siblings, 0 replies; 2+ messages in thread
From: Qiang Yu @ 2022-02-12 4:27 UTC (permalink / raw)
To: Erico Nunes
Cc: dri-devel, David Airlie, Daniel Vetter, lima,
Linux Kernel Mailing List, Javier Martinez Canillas
Applied to drm-misc-next.
On Wed, Feb 9, 2022 at 5:37 PM Erico Nunes <nunes.erico@gmail.com> wrote:
>
> 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.
>
> Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
> Reviewed-by: Qiang Yu <yuq825@gmail.com>
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
> ---
> v2:
> - collect review tags
> - update summary line to "drm/lima:"
> ---
> drivers/gpu/drm/lima/lima_sched.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c
> index 5612d73f238f..12437e42cc76 100644
> --- a/drivers/gpu/drm/lima/lima_sched.c
> +++ b/drivers/gpu/drm/lima/lima_sched.c
> @@ -409,7 +409,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *job
>
> drm_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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-12 4:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 9:37 [PATCH v2] drm/lima: avoid error task dump attempt when not enabled Erico Nunes
2022-02-12 4:27 ` Qiang Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®