]> www.infradead.org Git - linux.git/commit
drm/xe: Take ref to job's fence in arm
authorMatthew Brost <matthew.brost@intel.com>
Mon, 21 Oct 2024 17:35:12 +0000 (10:35 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 23 Oct 2024 18:06:31 +0000 (11:06 -0700)
commit059c2a79b0b2bfcc8e65e25ab7444eb8062e1621
tree034907d507d79ec26367605d5244e2276a9b3108
parentc8b0acd6d8745fd7e6450f5acc38f0227bd253b3
drm/xe: Take ref to job's fence in arm

Take ref to job's fence in arm rather than run job. This ref is owned by
the drm scheduler so it makes sense to take the ref before handing over
the job to the scheduler. Also removes an atomic from the run job path.

Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241021173512.1584248-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_execlist.c
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_sched_job.c
drivers/gpu/drm/xe/xe_sched_job_types.h