diff options
| author | Chen, Junjia <junjia.chen@intel.com> | 2026-10-29 00:13:58 +0800 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2026-11-09 19:18:00 +1000 |
| commit | e2cdad51ec53dd0f48e7f767cc1390dec69d54d4 (patch) | |
| tree | 0f3761f56cdf99939e990767a76871f79d7702ff /rust | |
| parent | e800602296e8668b4cf143fc12d7cee4b31e64aa (diff) | |
drm/xe: Unwrap sync fences before adding them as job dependencies
A timeline syncobj point is a dma_fence_chain node that carries its own
fence context, separate from the contexts of the fences it wraps.
xe_sync_entry_add_deps() passed that container straight to
drm_sched_job_add_dependency().
drm_sched_entity_add_dependency_cb() only drops a dependency when the
fence context is one of the entity's own (fence_context or
fence_context + 1). A chain node never matches, so a wait on a point
whose inner fence is the finished fence of an earlier job on the same
exec queue is treated like a cross-queue dependency: the job is held
until the previous job has completed on the GPU. Every job queued
behind it waits too, and the ring drains before the next batch of jobs
is released.
Unwrap the fence with dma_fence_unwrap_for_each() and add each
unsignaled underlying fence as a dependency, so drm_sched sees the real
fence contexts and ignores same-entity fences. Dependencies on other
exec queues still wait for completion. drm_sched_job_add_dependency()
keeps only the latest fence per context, so the dependency array does
not grow with the length of the chain.
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: stable@vger.kernel.org
Signed-off-by: Chen, Junjia <junjia.chen@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/intel-xe/20261028161358.1917359-1-junjia.chen@intel.com/
(cherry picked from commit 3b8860fe2581a8db796150728687ba1c6b78ddab)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions
