All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] DRM scheduler assorted cleanups
@ 2026-10-20 15:41 Tvrtko Ursulin
  2026-10-20 15:41 ` [PATCH v2 1/8] drm/sched: Fix out of bounds entity priority check Tvrtko Ursulin
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Tvrtko Ursulin @ 2026-10-20 15:41 UTC (permalink / raw)
  To: dri-devel
  Cc: amd-gfx, kernel-dev, Tvrtko Ursulin, Christian König,
	Danilo Krummrich, Matthew Brost, Philipp Stanner

A little bit of a dump of my patch queue leading towards the SPSC queue removal
(which is still WIP). Primarily because Philipp asked me to rebase and re-post
"drm/sched: Replace completion with a flush".

Then I realised we agreed to split out one part of that in a separate patch.
Specifically "drm/sched: Ignore stopped entity attempt to change its run-queue".
And I also realized that one is easier to argue for if we also try to tighten
the rules around entity initialization. Which is "drm/sched: Disallow
initializing entities with un-initialized schedulers".

Then there are some trivial cleanups in the same area which should be easy
reviews.

The first patch of the series feel free to ignore. I have sent it separately
already but need to include it so the series actually applies, both for CI, and
should someone want to apply the series.

Last patch in the series is something I would like to get accepted as well since
I think the current list ownership rules are quite bad. As the patch touches the
same functions as the SPSC removal it would be good to get it in first.

Immediate questions are whether patches 2 & 3 are the simplifications which can
indeed be made without any drivers crying foul.

And of course what our AI overlord will have to say on it all.

v2:
 * One patch less in the series - we merged it.
 * "drm/sched: Untangle the scheduler list mess" rewritten a bit because it had
   gotten a bit stale since I first wrote it. It required some tweaks for:
      1) I've changed amdgpu since to use xarray for context management.
      2) Sashiko found I added bugs when added the internal storage for the
         single scheduler list common case.

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 (8):
  drm/sched: Fix out of bounds entity priority check
  drm/sched: Disallow initializing entities with un-initialized
    schedulers
  drm/sched: Reject double scheduler initialization
  drm/sched: Remove log message of questionable use
  drm/sched: Remove useless log message on memory exhaustion
  drm/sched: Ignore stopped entity attempt to change its run-queue
  drm/sched: Replace completion with a flush
  drm/sched: Untangle the scheduler list mess

 drivers/accel/rocket/rocket_drv.h          |   2 +-
 drivers/accel/rocket/rocket_job.c          |  20 ++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c    |   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h    |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c    |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h    |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c     |  15 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h     |   4 +-
 drivers/gpu/drm/scheduler/sched_entity.c   | 113 ++++++++++++---------
 drivers/gpu/drm/scheduler/sched_internal.h |  14 ++-
 drivers/gpu/drm/scheduler/sched_main.c     |  24 ++---
 drivers/gpu/drm/scheduler/sched_rq.c       |  19 ++--
 include/drm/gpu_scheduler.h                | 100 +++++++++++++-----
 13 files changed, 201 insertions(+), 124 deletions(-)

-- 
2.56.0


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

end of thread, other threads:[~2026-10-20 16:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 15:41 [PATCH v2 0/8] DRM scheduler assorted cleanups Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 1/8] drm/sched: Fix out of bounds entity priority check Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 2/8] drm/sched: Disallow initializing entities with un-initialized schedulers Tvrtko Ursulin
2026-10-20 16:02   ` sashiko-bot
2026-10-20 15:41 ` [PATCH v2 3/8] drm/sched: Reject double scheduler initialization Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 4/8] drm/sched: Remove log message of questionable use Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 5/8] drm/sched: Remove useless log message on memory exhaustion Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 6/8] drm/sched: Ignore stopped entity attempt to change its run-queue Tvrtko Ursulin
2026-10-20 15:41 ` [PATCH v2 7/8] drm/sched: Replace completion with a flush Tvrtko Ursulin
2026-10-20 16:07   ` sashiko-bot
2026-10-20 15:41 ` [PATCH v2 8/8] drm/sched: Untangle the scheduler list mess Tvrtko Ursulin
2026-10-20 16:18   ` sashiko-bot
2026-10-20 16:04 ` [PATCH v2 0/8] DRM scheduler assorted cleanups Philipp Stanner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.