-
- Downloads
"git@ssh.gitlab.freedesktop.org:isinyaaa/linux.git" did not exist on "433956e91200734d09958673a56df02d00a917c2"
drm/sched: Add internal job peek/pop API
Idea is to add helpers for peeking and popping jobs from entities with the goal of decoupling the hidden assumption in the code that queue_node is the first element in struct drm_sched_job. That assumption usually comes in the form of: while ((job = to_drm_sched_job(spsc_queue_pop(&entity->job_queue)))) Which breaks if the queue_node is re-positioned due to_drm_sched_job being implemented with a container_of. This also allows us to remove duplicate definitions of to_drm_sched_job. Signed-off-by:Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Christian König <christian.koenig@amd.com> Cc: Danilo Krummrich <dakr@kernel.org> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Philipp Stanner <phasta@kernel.org> Signed-off-by:
Philipp Stanner <phasta@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250221105038.79665-2-tvrtko.ursulin@igalia.com
Showing
- drivers/gpu/drm/scheduler/sched_entity.c 5 additions, 6 deletionsdrivers/gpu/drm/scheduler/sched_entity.c
- drivers/gpu/drm/scheduler/sched_internal.h 48 additions, 0 deletionsdrivers/gpu/drm/scheduler/sched_internal.h
- drivers/gpu/drm/scheduler/sched_main.c 3 additions, 4 deletionsdrivers/gpu/drm/scheduler/sched_main.c
Loading
Please register or sign in to comment