]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit294f96f4ddb2abbb8dca23f1e69840b15b532cda
treecca91effac12b23864f57cc409e29d7e27dbdce9
parentf0b648135513ef9792799c30d760fa371829ecde
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