]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Use dma_fence_chain_free in chain fence unused as a sync
authorMatthew Brost <matthew.brost@intel.com>
Sat, 27 Jul 2024 01:22:16 +0000 (18:22 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 8 Aug 2024 17:48:01 +0000 (13:48 -0400)
commit4f854a8b1b85d46abd5ce206936d23f87ac5e0c9
tree6a5d18f5770ff7547750d4c435fd6842513b7d6e
parentae02c7b7fea3e034fbd724c21d88406f71ccc2f8
drm/xe: Use dma_fence_chain_free in chain fence unused as a sync

A chain fence is uninitialized if not installed in a drm sync obj. Thus
if xe_sync_entry_cleanup is called and sync->chain_fence is non-NULL the
proper cleanup is dma_fence_chain_free rather than a dma-fence put.

Reported-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2411
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2261
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240727012216.2118276-1-matthew.brost@intel.com
(cherry picked from commit 7f7a2da3bf8bc0e0f6c239af495b7050056e889c)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_sync.c