]> www.infradead.org Git - linux.git/commit
drm/xe: Take job list lock in xe_sched_add_pending_job
authorMatthew Brost <matthew.brost@intel.com>
Thu, 3 Oct 2024 00:16:56 +0000 (17:16 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 11 Oct 2024 22:48:29 +0000 (15:48 -0700)
commit90521df5fc43980e4575bd8c5b1cb62afe1a9f5f
treea2d2d2ffc1c5f5953f02124f4087d894607c8f4f
parentbbc4a30de095f0349d3c278500345a1b620d495e
drm/xe: Take job list lock in xe_sched_add_pending_job

A fragile micro optimization in xe_sched_add_pending_job relied on both
the GPU scheduler being stopped and fence signaling stopped to safely
add a job to the pending list without the job list lock in
xe_sched_add_pending_job. Remove this optimization and just take the job
list lock.

Fixes: 7ddb9403dd74 ("drm/xe: Sample ctx timestamp to determine if jobs have timed out")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241003001657.3517883-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_gpu_scheduler.h