linux_dsm_epyc7002/drivers/gpu/drm/scheduler
Andrey Grodzovsky 167bf96014 drm/sched: Set error to s_fence if HW job submission failed.
Problem:
When run_job fails and HW fence returned is NULL we still signal
the s_fence to avoid hangs but the user has no way of knowing if
the actual HW job was ran and finished.

Fix:
Allow .run_job implementations to return ERR_PTR in the fence pointer
returned and then set this error for s_fence->finished fence so whoever
wait on this fence can inspect the signaled fence for an error.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-10-30 11:56:15 -04:00
..
gpu_scheduler_trace.h drm/scheduler: drop use of drmP.h 2019-07-15 18:11:31 +02:00
Makefile drm/scheduler: rename gpu_scheduler.c to sched_main.c 2018-08-27 11:10:44 -05:00
sched_entity.c drm/scheduler: use job count instead of peek 2019-08-15 10:52:10 -05:00
sched_fence.c drm/scheduler: drop use of drmP.h 2019-07-15 18:11:31 +02:00
sched_main.c drm/sched: Set error to s_fence if HW job submission failed. 2019-10-30 11:56:15 -04:00