From: Tvrtko Ursulin Date: Wed, 16 Oct 2024 12:20:10 +0000 (+0100) Subject: drm/sched: Stop setting current entity in FIFO mode X-Git-Tag: microblaze-v6.16~14^2~23^2~233 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=6a313579eac899b34dc40b0c342f5bd91e44a081;p=linux-2.6-microblaze.git drm/sched: Stop setting current entity in FIFO mode It does not seem there is a need to set the current entity in FIFO mode since ot only serves as being a "cursor" in round-robin mode. Even if scheduling mode is changed at runtime the change in behaviour is simply to restart from the first entity, instead of continuing in RR mode from where FIFO left it, and that sounds completely fine. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Alex Deucher Cc: Luben Tuikov Cc: Matthew Brost Cc: Philipp Stanner Acked-by: Christian König Reviewed-by: Philipp Stanner Signed-off-by: Philipp Stanner Link: https://patchwork.freedesktop.org/patch/msgid/20241016122013.7857-3-tursulin@igalia.com --- diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c index f2d47b382bdb..28083b0b05a9 100644 --- a/drivers/gpu/drm/scheduler/sched_main.c +++ b/drivers/gpu/drm/scheduler/sched_main.c @@ -349,7 +349,6 @@ drm_sched_rq_select_entity_fifo(struct drm_gpu_scheduler *sched, return ERR_PTR(-ENOSPC); } - rq->current_entity = entity; reinit_completion(&entity->entity_idle); break; }