]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: Use completion to wait for sched->thread idle v2.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 4 Nov 2019 21:30:05 +0000 (16:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Nov 2019 23:08:07 +0000 (18:08 -0500)
commit9fbde645a31c24d888bace6c6d1fe9863e904e43
tree400ee2daf8e6436d50c86d0535c5d9a4f2463649
parent652de56a17e603ef0f7d5e6c78846bab2085fbff
drm/sched: Use completion to wait for sched->thread idle v2.

Removes thread park/unpark hack from drm_sched_entity_fini and
by this fixes reactivation of scheduler thread while the thread
is supposed to be stopped.

v2: Per sched entity completion.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
drivers/gpu/drm/scheduler/sched_main.c
include/drm/gpu_scheduler.h