drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()
authorLuben Tuikov <ltuikov89@gmail.com>
Thu, 9 Nov 2023 23:53:26 +0000 (18:53 -0500)
committerLuben Tuikov <ltuikov89@gmail.com>
Fri, 10 Nov 2023 00:05:35 +0000 (19:05 -0500)
commitf3123c2590005c5ff631653d31428e40cd10c618
tree40ecb90a04f74a757855fa33fe0259b9675c6afa
parentf415a6078f640ab15bae34d3c6a1d8e6071363de
drm/sched: Qualify drm_sched_wakeup() by drm_sched_entity_is_ready()

Don't "wake up" the GPU scheduler unless the entity is ready, as well as we
can queue to the scheduler, i.e. there is no point in waking up the scheduler
for the entity unless the entity is ready.

Signed-off-by: Luben Tuikov <ltuikov89@gmail.com>
Fixes: bc8d6a9df99038 ("drm/sched: Don't disturb the entity when in RR-mode scheduling")
Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231110000123.72565-2-ltuikov89@gmail.com
drivers/gpu/drm/scheduler/sched_entity.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h