]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/gt: Extract emit_job_sync()
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 10 Jul 2025 20:33:48 +0000 (13:33 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 14 Jul 2025 20:20:03 +0000 (13:20 -0700)
commitfab2cc0c09fd4e6ebfa645af0914fd5917478e7f
tree4c5143e940f79bfab937e5c217c0a9a7a94e6e09
parente4cb5823ba3e2668ef5c164898e2aa2c0ad73742
drm/xe/gt: Extract emit_job_sync()

Both the nop and wa jobs are going through the same boiler plate calls
to emit the job with a timeout and handling error for both bb and job.
Extract emit_job_sync() so those functions create the bb, handling
possible errors and delegate the part about really emitting the job
and waiting for its completion.

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://lore.kernel.org/r/20250710-lrc-refactors-v2-3-a5e2ca03f6bd@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt.c