drm/scheduler: add drm_sched_entity_error and use rcu for last_scheduled
authorChristian König <christian.koenig@amd.com>
Mon, 17 Apr 2023 15:32:11 +0000 (17:32 +0200)
committerChristian König <christian.koenig@amd.com>
Mon, 24 Apr 2023 09:00:31 +0000 (11:00 +0200)
commit70102d77ff22dd88a0111b1c3bac5099ac5d0425
tree634f7552467feabbcb91f355a67d8442d736b9e0
parent539f9ee4b52a8bec95ff064e22dd2fb1e258e818
drm/scheduler: add drm_sched_entity_error and use rcu for last_scheduled

Switch to using RCU handling for the last scheduled job and add a
function to return the error code of it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230420115752.31470-2-christian.koenig@amd.com
drivers/gpu/drm/scheduler/sched_entity.c
include/drm/gpu_scheduler.h