mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/3] drm/panthor: Improve job pipelining
@ 2026-12-02 11:34 Boris Brezillon
  2026-12-02 11:34 ` [PATCH v4 1/3] drm/sched: Eliminate NOP dependencies at insertion time Boris Brezillon
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Boris Brezillon @ 2026-12-02 11:34 UTC (permalink / raw)
  To: Steven Price, Liviu Dudau, Akash Goel, Karunika Choo,
	Lukas Zapolskas, Chris Diamand
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter, Sumit Semwal, Christian König,
	Philipp Stanner, dri-devel, linux-kernel, linux-media,
	linaro-mm-sig, Xianzhong Li, Boris Brezillon

Some recent effort to improve job pipelining [1] showed that the
MCU <-> CPU round-trip that lets us signal job fences adds a
non-negligible overhead, and this problem seems to be easier and
more systematically fixed if it's addressed at the KMD side, so
here's a patch doing exactly that.

[1]https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/46172

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
---
Changes in v4:
- Add drm_sched_job_add_dependency_unwrapped() and use it in panthor
- Move drm_sched_entity_can_skip_dependency() to sched_internal.h
- Link to v3: https://lore.kernel.org/r/20261202-panhtor-dep-skip-v3-0-81c141ee0461@collabora.com

Changes in v3:
- Fix UAF and leak
- Add a patch to move the dep-coming-from-same-entity eviction from
  drm_sched_entity_add_dependency_cb() to drm_sched_job_add_dependency()
- Base things on top of the dma_fence_unwrap_for_each() refactor
- Add a patch to evict NOP deps at insertion time
- Link to v2: https://lore.kernel.org/r/20261201-panhtor-dep-skip-v2-1-1b38efda8a0d@collabora.com

Changes in v2:
- Explode container fences with dma_fence_unwrap_for_each() instead of
  and rely on drm_sched_entity_add_dependency_cb() elimination instead
  of open-coding it

---
Boris Brezillon (3):
      drm/sched: Eliminate NOP dependencies at insertion time
      drm/sched: Add a drm_sched_job_add_dependency_unwrapped() helper
      drm/panthor: Explode container fences to optimize pipelining

 drivers/gpu/drm/panthor/panthor_drv.c      |  3 ++-
 drivers/gpu/drm/scheduler/sched_entity.c   |  8 +------
 drivers/gpu/drm/scheduler/sched_internal.h | 20 ++++++++++++++++++
 drivers/gpu/drm/scheduler/sched_main.c     | 34 ++++++++++++++++++++++++++++++
 include/drm/gpu_scheduler.h                |  2 ++
 5 files changed, 59 insertions(+), 8 deletions(-)
---
base-commit: 28f286b0dfa9610d4ee2447415e964e8bc603056
change-id: 20261201-panhtor-dep-skip-9c6a3e2f7cc7
prerequisite-message-id: <20261201165600.9415-1-christian.koenig@amd.com>
prerequisite-patch-id: d44ba41cc1e717a9618004c360c92dfd22f42a4a

Best regards,
-- 
Boris Brezillon <boris.brezillon@collabora.com>


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

end of thread, other threads:[~2026-12-02 13:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 11:34 [PATCH v4 0/3] drm/panthor: Improve job pipelining Boris Brezillon
2026-12-02 11:34 ` [PATCH v4 1/3] drm/sched: Eliminate NOP dependencies at insertion time Boris Brezillon
2026-12-02 11:44   ` Philipp Stanner
2026-12-02 12:20     ` Boris Brezillon
2026-12-02 12:37   ` Philipp Stanner
2026-12-02 13:36     ` Boris Brezillon
2026-12-02 11:34 ` [PATCH v4 2/3] drm/sched: Add a drm_sched_job_add_dependency_unwrapped() helper Boris Brezillon
2026-12-02 12:21   ` Boris Brezillon
2026-12-02 12:53   ` Philipp Stanner
2026-12-02 13:47     ` Boris Brezillon
2026-12-02 11:34 ` [PATCH v4 3/3] drm/panthor: Explode container fences to optimize pipelining Boris Brezillon

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

all inboxes | Powered by JetHome®