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)
commit83a7772ba223333755d8afd90ab8b2ea3f57d4e6
tree400ee2daf8e6436d50c86d0535c5d9a4f2463649
parentcb5932f866f50ea4a95459f0b6ebe93882d0aac6
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