diff options
author | Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> | 2024-12-05 17:50:22 -0800 |
---|---|---|
committer | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2024-12-12 16:57:28 +0100 |
commit | cefade70f346160f47cc24776160329e2ee63653 (patch) | |
tree | 6803f192d5def21d8fa9ef9f28d4386c257cbf92 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | ed69b28b3a5e39871ba5599992f80562d6ee59db (diff) | |
download | linux-cefade70f346160f47cc24776160329e2ee63653.tar.gz linux-cefade70f346160f47cc24776160329e2ee63653.tar.bz2 linux-cefade70f346160f47cc24776160329e2ee63653.zip |
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: f002702290fc ("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 65338639b79ce88aef5263cd518cde570a3c7c8e)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions