drm/xe: Take a reference in xe_exec_queue_last_fence_get()
authorMatthew Brost <matthew.brost@intel.com>
Thu, 1 Feb 2024 00:48:48 +0000 (16:48 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 2 Feb 2024 14:45:57 +0000 (06:45 -0800)
commita856b67a84169e065ebbeee50258936b1eacc9eb
tree7fca946332e8ca3d1b7869e7b3a1e2aff0bac4bd
parent5fcbf83e39ecde8e54c0b3da3a755a306a0ac348
drm/xe: Take a reference in xe_exec_queue_last_fence_get()

Take a reference in xe_exec_queue_last_fence_get(). Also fix a reference
counting underflow bug VM bind and unbind.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240201004849.2219558-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_migrate.c
drivers/gpu/drm/xe/xe_sched_job.c
drivers/gpu/drm/xe/xe_sync.c
drivers/gpu/drm/xe/xe_vm.c