From: Luben Tuikov <ltuikov89@gmail.com>
To: Bert Karwatzki <spasswolf@web.de>
Cc: matthew.brost@intel.com, dakr@redhat.com,
christian.koenig@amd.com, dri-devel@lists.freedesktop.org,
tvrtko.ursulin@intel.com
Subject: Re: [PATCH] drm/sched: Partial revert of "Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()"
Date: Tue, 28 Nov 2023 14:19:40 -0500 [thread overview]
Message-ID: <6d6e6f41-5356-40dd-b4d5-b4fbcb4b801e@gmail.com> (raw)
In-Reply-To: <20231127160955.87879-1-spasswolf@web.de>
[-- Attachment #1.1.1: Type: text/plain, Size: 1522 bytes --]
On 2023-11-27 11:09, Bert Karwatzki wrote:
> Commit f3123c2590005c, in combination with the use of work queues by the GPU
> scheduler, leads to random lock-ups of the GUI.
>
> This is a partial revert of of commit f3123c2590005c since drm_sched_wakeup() still
> needs its entity argument to pass it to drm_sched_can_queue().
>
> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2994
> Link: https://lists.freedesktop.org/archives/dri-devel/2023-November/431606.html
> Fixes: f3123c2590005c ("drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()")
>
> Signed-off-by: Bert Karwatzki <spasswolf@web.de>
> ---
> drivers/gpu/drm/scheduler/sched_main.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c
> index 682aebe96db7..550492a7a031 100644
> --- a/drivers/gpu/drm/scheduler/sched_main.c
> +++ b/drivers/gpu/drm/scheduler/sched_main.c
> @@ -1029,9 +1029,8 @@ EXPORT_SYMBOL(drm_sched_job_cleanup);
> void drm_sched_wakeup(struct drm_gpu_scheduler *sched,
> struct drm_sched_entity *entity)
> {
> - if (drm_sched_entity_is_ready(entity))
> - if (drm_sched_can_queue(sched, entity))
> - drm_sched_run_job_queue(sched);
> + if (drm_sched_can_queue(sched, entity))
> + drm_sched_run_job_queue(sched);
> }
>
> /**
> --
> 2.43.0
>
Reviewed-by: Luben Tuikov <ltuikov89@gmail.com>
Pushed to drm-misc-next.
Thanks!
--
Regards,
Luben
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 677 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
prev parent reply other threads:[~2023-11-28 19:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 9:00 drm scheduler redesign causes deadlocks [extended repost] Bert Karwatzki
2023-11-21 9:22 ` Jani Nikula
2023-11-21 9:45 ` Bert Karwatzki
2023-11-22 23:02 ` Luben Tuikov
2023-11-24 9:38 ` Bert Karwatzki
2023-11-25 20:03 ` Luben Tuikov
2023-11-27 16:09 ` [PATCH] drm/sched: Partial revert of "Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()" Bert Karwatzki
2023-11-28 19:19 ` Luben Tuikov [this message]
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=6d6e6f41-5356-40dd-b4d5-b4fbcb4b801e@gmail.com \
--to=ltuikov89@gmail.com \
--cc=christian.koenig@amd.com \
--cc=dakr@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=spasswolf@web.de \
--cc=tvrtko.ursulin@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox