Skip to content

drm/xe: Hold a fence reference while waiting for migration

Bommu Krishnaiah intel-xe 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe: Hold a fence reference while waiting for migrationdrivers/gpu/drm/xe/xe_migrate.c+10 -20 replies
2/2drm/xe: Centralize migration fence updatesdrivers/gpu/drm/xe/xe_migrate.c+20 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm/xe: Hold a fence reference while waiting for migration

This series addresses a potential race between xe_migrate_wait() and migration submissions replacing m->fence.

Patch 1 takes a fence reference under job_mutex, then waits outside the lock. Patch 2 centralizes fence replacement in a helper, documents the access rules, and uses scoped_guard when taking the waiter's reference.

Bommu Krishnaiah (2):
drm/xe: Hold a fence reference while waiting for migration drm/xe: Centralize migration fence updates

 drivers/gpu/drm/xe/xe_migrate.c | 42 +++++++++++++++++++++------------
 1 file changed, 27 insertions(+), 15 deletions(-)
Signature · 1 line
2.43.0