Skip to content

drm/xe: Allow migrate vm gpu submissions from reclaim context

Thomas Hellström intel-xe 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 1 replyIn review
  2. v35 patches 9 repliesSuperseded
  3. v25 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Add an assert (Matthew Brost)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/xe: Decouple job seqno and lrc seqnodrivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_guc_submit.c drivers/gpu/drm/xe/xe_ring_ops.c +4 more+30 -190 replies
2/5drm/xe: Split lrc seqno fence creation updrivers/gpu/drm/xe/xe_hw_fence.c drivers/gpu/drm/xe/xe_hw_fence.h drivers/gpu/drm/xe/xe_lrc.c +1 more+101 -160 replies
3/5drm/xe: Don't initialize fences at xe_sched_job_create()drivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue_types.h drivers/gpu/drm/xe/xe_ring_ops.c +3 more+115 -930 replies
4/5drm/xe: Remove xe_lrc_create_seqno_fence()drivers/gpu/drm/xe/xe_lrc.c drivers/gpu/drm/xe/xe_lrc.h+0 -120 replies
5/5drm/xe: Move job creation out of the struct xe_migrate::job_mutexdrivers/gpu/drm/xe/xe_migrate.c+8 -90 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRodrigo ViviMatthew Brost
1/5R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] drm/xe: Allow migrate vm gpu submissions from reclaim context

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(-)
Signature · 1 line
2.44.0