Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/5] drm/xe: Allow migrate vm gpu submissions from reclaim context
@ 2024-05-27 13:59 Thomas Hellström
  2024-05-27 13:59 ` [PATCH v4 1/5] drm/xe: Decouple job seqno and lrc seqno Thomas Hellström
                   ` (12 more replies)
  0 siblings, 13 replies; 15+ messages in thread
From: Thomas Hellström @ 2024-05-27 13:59 UTC (permalink / raw)
  To: intel-xe; +Cc: Thomas Hellström, Matthew Brost

On lunar lake, we need to be able to copy CCS compression metadata from
reclaim context when using a shrinker.
ince we do dma_fence allocations under the
struct xe_migrate::job_mutex, we're facing a lockdep violation.
This patchset deals with moving the job + fence allocation out of
the job_mutex by splitting up the fence allocation- and
initialization.

v2:
- Add a patch from Matthew Brost to fix up the use of
  composite fence seqno.
- A couple of bugfixes as detailed in patch 3.
v3:
- Rebase on drm-tip.
v4:
- Add an assert (Matthew Brost)

Matthew Brost (1):
  drm/xe: Decouple job seqno and lrc seqno

Thomas Hellström (4):
  drm/xe: Split lrc seqno fence creation up
  drm/xe: Don't initialize fences at xe_sched_job_create()
  drm/xe: Remove xe_lrc_create_seqno_fence()
  drm/xe: Move job creation out of the struct xe_migrate::job_mutex

 drivers/gpu/drm/xe/xe_exec_queue.c       |   5 -
 drivers/gpu/drm/xe/xe_exec_queue_types.h |  10 --
 drivers/gpu/drm/xe/xe_guc_submit.c       |   5 +-
 drivers/gpu/drm/xe/xe_hw_fence.c         |  59 ++++++--
 drivers/gpu/drm/xe/xe_hw_fence.h         |   7 +-
 drivers/gpu/drm/xe/xe_lrc.c              |  39 +++++-
 drivers/gpu/drm/xe/xe_lrc.h              |   4 +-
 drivers/gpu/drm/xe/xe_migrate.c          |  17 ++-
 drivers/gpu/drm/xe/xe_ring_ops.c         |  22 +--
 drivers/gpu/drm/xe/xe_sched_job.c        | 167 +++++++++++++----------
 drivers/gpu/drm/xe/xe_sched_job.h        |   5 +
 drivers/gpu/drm/xe/xe_sched_job_types.h  |  20 ++-
 drivers/gpu/drm/xe/xe_trace.h            |   9 +-
 13 files changed, 237 insertions(+), 132 deletions(-)

-- 
2.44.0


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

end of thread, other threads:[~2024-05-27 15:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 13:59 [PATCH v4 0/5] drm/xe: Allow migrate vm gpu submissions from reclaim context Thomas Hellström
2024-05-27 13:59 ` [PATCH v4 1/5] drm/xe: Decouple job seqno and lrc seqno Thomas Hellström
2024-05-27 13:59 ` [PATCH v4 2/5] drm/xe: Split lrc seqno fence creation up Thomas Hellström
2024-05-27 13:59 ` [PATCH v4 3/5] drm/xe: Don't initialize fences at xe_sched_job_create() Thomas Hellström
2024-05-27 13:59 ` [PATCH v4 4/5] drm/xe: Remove xe_lrc_create_seqno_fence() Thomas Hellström
2024-05-27 13:59 ` [PATCH v4 5/5] drm/xe: Move job creation out of the struct xe_migrate::job_mutex Thomas Hellström
2024-05-27 14:05 ` ✓ CI.Patch_applied: success for drm/xe: Allow migrate vm gpu submissions from reclaim context Patchwork
2024-05-27 14:06 ` ✓ CI.checkpatch: " Patchwork
2024-05-27 14:07 ` ✓ CI.KUnit: " Patchwork
2024-05-27 14:18 ` ✓ CI.Build: " Patchwork
2024-05-27 14:19 ` ✗ CI.Hooks: failure " Patchwork
2024-05-27 14:20 ` ✓ CI.checksparse: success " Patchwork
2024-05-27 14:43 ` ✓ CI.BAT: " Patchwork
2024-05-27 15:35 ` ✗ CI.FULL: failure " Patchwork
2024-05-27 15:53   ` Thomas Hellström

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