drm/scheduler: Add flag to hint the release of guilty job.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 18 Apr 2019 15:00:23 +0000 (11:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2019 20:50:55 +0000 (15:50 -0500)
commita5343b8a2ca5799ee6370e3cca77369a4c598221
treecca91effac12b23864f57cc409e29d7e27dbdce9
parent290764af7e369f0001175dc8c3cb747aa9903bb8
drm/scheduler: Add flag to hint the release of guilty job.

Problem:
Sched thread's cleanup function races against TO handler
and removes the guilty job from mirror list and we
have no way of differentiating if the job was removed from within the
TO handler or from the sched thread's clean-up function.

Fix:
Add a flag to scheduler to hint the TO handler that the guilty job needs
to be explicitly released.

v2: whitespace fix

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1555599624-12285-5-git-send-email-andrey.grodzovsky@amd.com
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h