Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/6] drm/sched: Job queue peek/pop helpers and struct job re-order
@ 2025-02-14 10:19 Tvrtko Ursulin
  2025-02-14 10:19 ` [PATCH v5 1/6] drm/sched: Add internal job peek/pop API Tvrtko Ursulin
                   ` (13 more replies)
  0 siblings, 14 replies; 19+ messages in thread
From: Tvrtko Ursulin @ 2025-02-14 10:19 UTC (permalink / raw)
  To: amd-gfx, dri-devel
  Cc: intel-xe, kernel-dev, Tvrtko Ursulin, Christian König,
	Danilo Krummrich, Matthew Brost, Philipp Stanner

Lets add some helpers for peeking and popping from the job queue which allows us
to re-order the fields in struct drm_sched_job and remove one hole.

As in the process we have added a header file for scheduler internal prototypes,
lets also use it more and cleanup the "exported" header a bit.

v2:
 * Add header file for internal scheduler API.
 * Add helper for peeking too. (Danilo)
 * Add (temporary?) drm_sched_cancel_all_jobs() helper to replace amdgpu
   amdgpu_job_stop_all_jobs_on_sched().

v3:
 * Settle for a copy of __drm_sched_entity_queue_pop in amdgpu for now.

v4:
 * Expand the series with some more header file cleanup.

v5:
 * Rebase for drm_sched_init changes.
 * Tweak kerneldoc format.

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>

Tvrtko Ursulin (6):
  drm/sched: Add internal job peek/pop API
  drm/amdgpu: Pop jobs from the queue more robustly
  drm/sched: Remove a hole from struct drm_sched_job
  drm/sched: Move drm_sched_entity_is_ready to internal header
  drm/sched: Move internal prototypes to internal header
  drm/sched: Group exported prototypes by object type

 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c    |  22 +++-
 drivers/gpu/drm/scheduler/sched_entity.c   |  23 +---
 drivers/gpu/drm/scheduler/sched_fence.c    |   2 +
 drivers/gpu/drm/scheduler/sched_internal.h |  89 +++++++++++++++
 drivers/gpu/drm/scheduler/sched_main.c     |   7 +-
 include/drm/gpu_scheduler.h                | 122 +++++++++------------
 6 files changed, 169 insertions(+), 96 deletions(-)
 create mode 100644 drivers/gpu/drm/scheduler/sched_internal.h

-- 
2.48.0


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2025-02-21 15:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 10:19 [PATCH v5 0/6] drm/sched: Job queue peek/pop helpers and struct job re-order Tvrtko Ursulin
2025-02-14 10:19 ` [PATCH v5 1/6] drm/sched: Add internal job peek/pop API Tvrtko Ursulin
2025-02-18 12:26   ` Philipp Stanner
2025-02-18 18:26     ` Tvrtko Ursulin
2025-02-18 22:17       ` Matthew Brost
2025-02-19  7:47         ` Philipp Stanner
2025-02-14 10:19 ` [PATCH v5 2/6] drm/amdgpu: Pop jobs from the queue more robustly Tvrtko Ursulin
2025-02-14 10:19 ` [PATCH v5 3/6] drm/sched: Remove a hole from struct drm_sched_job Tvrtko Ursulin
2025-02-14 10:19 ` [PATCH v5 4/6] drm/sched: Move drm_sched_entity_is_ready to internal header Tvrtko Ursulin
2025-02-14 10:19 ` [PATCH v5 5/6] drm/sched: Move internal prototypes " Tvrtko Ursulin
2025-02-14 10:19 ` [PATCH v5 6/6] drm/sched: Group exported prototypes by object type Tvrtko Ursulin
2025-02-14 10:40 ` ✓ CI.Patch_applied: success for drm/sched: Job queue peek/pop helpers and struct job re-order Patchwork
2025-02-14 10:40 ` ✗ CI.checkpatch: warning " Patchwork
2025-02-14 10:41 ` ✓ CI.KUnit: success " Patchwork
2025-02-14 10:58 ` ✓ CI.Build: " Patchwork
2025-02-14 11:00 ` ✓ CI.Hooks: " Patchwork
2025-02-14 11:02 ` ✓ CI.checksparse: " Patchwork
2025-02-14 11:22 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-15  8:30 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox