Subset of [1], believe we are in agreement these can go into the DRM scheduler. Will post the Xe in a follow once patches make it from drm-misc-next to drm-xe-next.
Leaving todo.rst as is with respect to resubmit, as I believe we still have long-term plans to change job tracking to scheduler fence tracking. If we go in that direction, the iterator in this series can be converted to a fence-based iterator. If needed, todo.rst can also be updated in a follow-up patch, but for functionality and cleanups on the Xe driver side, it would be good to get this code in. Matt [1] https://patchwork.freedesktop.org/series/155314/ Matthew Brost (2): drm/sched: Add several job helpers to avoid drivers touching scheduler state drm/sched: Add pending job list iterator drivers/gpu/drm/scheduler/sched_main.c | 40 ++++++++++++++++++-- include/drm/gpu_scheduler.h | 52 ++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 3 deletions(-) -- 2.34.1
