drm/xe: Call invalidation_fence_fini for PT inval fences in error state
Invalidation_fence_init takes a PM reference, which is released in its _fini counterpart, so we need to make sure that the latter is called, even if the fence is in an error state. Since we already have a function that calls _fini() and signals the fence in the tlb inval code, we can expose that and call it from the PT code. Fixes: f0027022 ("drm/xe: Hold a PM ref when GT TLB invalidations are inflight") Signed-off-by:Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: <stable@vger.kernel.org> # v6.11+ Cc: Matthew Brost <matthew.brost@intel.com> Cc: Nirmoy Das <nirmoy.das@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by:
Nirmoy Das <nirmoy.das@intel.com> Reviewed-by:
Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241206015022.1567113-1-daniele.ceraolospurio@intel.com (cherry picked from commit 65338639) Signed-off-by:
Thomas Hellström <thomas.hellstrom@linux.intel.com>
Showing
- drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c 8 additions, 0 deletionsdrivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
- drivers/gpu/drm/xe/xe_gt_tlb_invalidation.h 1 addition, 0 deletionsdrivers/gpu/drm/xe/xe_gt_tlb_invalidation.h
- drivers/gpu/drm/xe/xe_pt.c 1 addition, 2 deletionsdrivers/gpu/drm/xe/xe_pt.c
Loading
Please register or sign in to comment