Re: [PATCH 3/4] drm/sched: Add internal job peek/pop API

2025-02-06 Thread Philipp Stanner
On Wed, 2025-02-05 at 15:33 +, Tvrtko Ursulin wrote: > Idea is to add helpers for peeking and poppling jobs from entities s/poppling/popping > 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

[PATCH 3/4] drm/sched: Add internal job peek/pop API

2025-02-05 Thread Tvrtko Ursulin
Idea is to add helpers for peeking and poppling 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