* [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()"
@ 2023-11-27 12:21 Bert Karwatzki
0 siblings, 0 replies; 3+ messages in thread
From: Bert Karwatzki @ 2023-11-27 12:21 UTC (permalink / raw)
To: Luben Tuikov
Cc: robdclark, sarah.walker, ltuikov, ketil.johnsen, lina, mcanal,
Liviu.Dudau, dri-devel, christian.koenig, boris.brezillon, dakr,
Bert Karwatzki, intel-xe, faith.ekstrand, donald.robson
Commit f3123c25 (in combination with the use of work queues by the gpu
scheduler) leads to random lock ups of the GUI [1,2].
This is not a complete revert of commit f3123c25 as drm_sched_wakeup
still needs its entity argument to pass it to drm_sched_can_queue.
[1] https://gitlab.freedesktop.org/drm/amd/-/issues/2994
[2] https://lists.freedesktop.org/archives/dri-devel/2023-November/431606.html
This reverts commit f3123c2590005c5ff631653d31428e40cd10c618.
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()"
2023-11-09 23:49 [PATCH] drm/sched: Don't disturb the entity when in RR-mode scheduling Luben Tuikov
@ 2023-11-27 13:30 ` Bert Karwatzki
2023-11-27 15:14 ` Luben Tuikov
0 siblings, 1 reply; 3+ messages in thread
From: Bert Karwatzki @ 2023-11-27 13:30 UTC (permalink / raw)
To: ltuikov89
Cc: matthew.brost, robdclark, sarah.walker, tvrtko.ursulin,
ketil.johnsen, lina, mcanal, Liviu.Dudau, dri-devel, intel-xe,
boris.brezillon, dakr, donald.robson, christian.koenig,
faith.ekstrand, Bert Karwatzki
Commit f3123c25 (in combination with the use of work queues by the gpu
scheduler) leads to random lock ups of the GUI [1,2].
This is not a complete revert of commit f3123c25 as drm_sched_wakeup
still needs its entity argument to pass it to drm_sched_can_queue.
[1] https://gitlab.freedesktop.org/drm/amd/-/issues/2994
[2] https://lists.freedesktop.org/archives/dri-devel/2023-November/431606.html
This reverts commit f3123c2590005c5ff631653d31428e40cd10c618.
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()"
2023-11-27 13:30 ` [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()" Bert Karwatzki
@ 2023-11-27 15:14 ` Luben Tuikov
0 siblings, 0 replies; 3+ messages in thread
From: Luben Tuikov @ 2023-11-27 15:14 UTC (permalink / raw)
To: Bert Karwatzki
Cc: matthew.brost, robdclark, sarah.walker, tvrtko.ursulin,
ketil.johnsen, lina, mcanal, Liviu.Dudau, dri-devel, intel-xe,
boris.brezillon, dakr, donald.robson, christian.koenig,
faith.ekstrand
[-- Attachment #1.1.1: Type: text/plain, Size: 1945 bytes --]
Hi Bert,
# The title of the patch should be:
drm/sched: Partial revert of "Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()"
On 2023-11-27 08:30, Bert Karwatzki wrote:
> Commit f3123c25 (in combination with the use of work queues by the gpu
Commit f3123c2590005c, in combination with the use of work queues by the GPU
scheduler, leads to random lock-ups of the GUI.
> scheduler) leads to random lock ups of the GUI [1,2].
>
> This is not a complete revert of commit f3123c25 as drm_sched_wakeup
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.
... drm_sched_can_queue().
# Don't forget a SoB line!
Signed-off-by: Bert ...
>> [1] https://gitlab.freedesktop.org/drm/amd/-/issues/2994
# Use a Link: tag instead, like this:
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2994
> [2] https://lists.freedesktop.org/archives/dri-devel/2023-November/431606.html
# Use a Link: tag instead, like this:
Link: https://lists.freedesktop.org/archives/dri-devel/2023-November/431606.html
>
> This reverts commit f3123c2590005c5ff631653d31428e40cd10c618.
# The line above is *not* necessary, since this is a partial commit. Instead we need
# a Fixes: line, like this:
Fixes: f3123c2590005c ("drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()")
#######---
Then after you do "git format-patch", post it like this:
git send-email \
--in-reply-to=c5292d06-2e37-4715-96dc-699f369111fa@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/PATCH
This follows your thread where all the information is stored.
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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-27 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-27 12:21 [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()" Bert Karwatzki
-- strict thread matches above, loose matches on Subject: below --
2023-11-09 23:49 [PATCH] drm/sched: Don't disturb the entity when in RR-mode scheduling Luben Tuikov
2023-11-27 13:30 ` [PATCH] Revert "drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()" Bert Karwatzki
2023-11-27 15:14 ` Luben Tuikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox