]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Split lrc seqno fence creation up
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 27 May 2024 13:59:09 +0000 (15:59 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 27 May 2024 19:26:02 +0000 (21:26 +0200)
commite183910ae4015214475b3248ce0b4c70f104f254
tree75fdbf8f71bffdff0facf1d1aae905293a2ef902
parent08f7200899ca72dec550af092ae424b7db099abd
drm/xe: Split lrc seqno fence creation up

Since sometimes a lock is required to initialize a seqno fence,
and it might be desirable not to hold that lock while performing
memory allocations, split the lrc seqno fence creation up into an
allocation phase and an initialization phase.

Since lrc seqno fences under the hood are hw_fences, do the same
for these and remove the xe_hw_fence_create() function since it
is not used anymore.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240527135912.152156-3-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_hw_fence.c
drivers/gpu/drm/xe/xe_hw_fence.h
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_lrc.h