From: Liviu Dudau <liviu.dudau@arm.com>
To: Boris Brezillon <boris.brezillon@collabora.com>
Cc: "Steven Price" <steven.price@arm.com>,
"Adrián Larumbe" <adrian.larumbe@collabora.com>,
dri-devel@lists.freedesktop.org,
"Akash Goel" <akash.goel@arm.com>,
kernel@collabora.com
Subject: Re: [PATCH v1 1/3] drm/panthor: Drop a WARN_ON() in group_free_queue()
Date: Tue, 2 Dec 2025 14:20:14 +0000 [thread overview]
Message-ID: <aS71noYF2jWZcoIh@e142607> (raw)
In-Reply-To: <20251202133538.83078-2-boris.brezillon@collabora.com>
On Tue, Dec 02, 2025 at 02:35:36PM +0100, Boris Brezillon wrote:
> It appears the timeout can still be enabled when we reach that point,
> because of the asynchronous progress check done on queues that resets
> the timer when jobs are still in-flight, but progress was made.
> We could add more checks to make sure the timer is not re-enabled when
> a group can't run anymore, but we don't have a group to pass to
> queue_check_job_completion() in some context.
>
> It's just as safe (we just want to be sure the timer is stopped before
> we destroy the queue) and simpler to drop the WARN_ON() in
> group_free_queue().
>
> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Best regards,
Liviu
> ---
> drivers/gpu/drm/panthor/panthor_sched.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c
> index 389d508b3848..203f6a0a6b9a 100644
> --- a/drivers/gpu/drm/panthor/panthor_sched.c
> +++ b/drivers/gpu/drm/panthor/panthor_sched.c
> @@ -893,9 +893,8 @@ static void group_free_queue(struct panthor_group *group, struct panthor_queue *
> if (IS_ERR_OR_NULL(queue))
> return;
>
> - /* This should have been disabled before that point. */
> - drm_WARN_ON(&group->ptdev->base,
> - disable_delayed_work_sync(&queue->timeout.work));
> + /* Disable the timeout before tearing down drm_sched components. */
> + disable_delayed_work_sync(&queue->timeout.work);
>
> if (queue->entity.fence_context)
> drm_sched_entity_destroy(&queue->entity);
> --
> 2.51.1
>
next prev parent reply other threads:[~2025-12-02 14:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 13:35 [PATCH v1 0/3] drm/panthor: Fix regressions introduced recently Boris Brezillon
2025-12-02 13:35 ` [PATCH v1 1/3] drm/panthor: Drop a WARN_ON() in group_free_queue() Boris Brezillon
2025-12-02 14:20 ` Liviu Dudau [this message]
2025-12-02 13:35 ` [PATCH v1 2/3] drm/panthor: Make sure caches are flushed/invalidated when an AS is recycled Boris Brezillon
2025-12-02 14:21 ` Liviu Dudau
2025-12-02 13:35 ` [PATCH v1 3/3] drm/panthor: Unlock the locked region before disabling an AS Boris Brezillon
2025-12-02 14:28 ` Liviu Dudau
2025-12-02 15:09 ` Akash Goel
2025-12-02 16:21 ` Boris Brezillon
2025-12-02 23:30 ` [PATCH v1 0/3] drm/panthor: Fix regressions introduced recently Chia-I Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aS71noYF2jWZcoIh@e142607 \
--to=liviu.dudau@arm.com \
--cc=adrian.larumbe@collabora.com \
--cc=akash.goel@arm.com \
--cc=boris.brezillon@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel@collabora.com \
--cc=steven.price@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.