[PATCH 1/2] drm/xe: Take job list lock in xe_sched_add_pending_job
Matthew Auld
matthew.auld at intel.com
Thu Oct 3 06:39:43 UTC 2024
On 03/10/2024 01:16, Matthew Brost wrote:
> 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.
>
> Reported-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
> Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/2822
> Fixes: 7ddb9403dd74 ("drm/xe: Sample ctx timestamp to determine if jobs have timed out")
> Signed-off-by: Matthew Brost <matthew.brost at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
More information about the Intel-xe
mailing list