linux_dsm_epyc7002/drivers/gpu/drm/scheduler
Andrey Grodzovsky 741f01e636 drm/scheduler: Avoid using wait_event_killable for dying process (V4)
Dying process might be blocked from receiving any more signals
so avoid using it.

Also retire enity->fini_status and just check the SW queue,
if it's not empty do the fallback cleanup.

Also handle entity->last_scheduled == NULL use case which
happens when HW ring is already hangged whem a  new entity
tried to enqeue jobs.

v2:
Return the remaining timeout and use that as parameter for the next call.
This way when we need to cleanup multiple queues we don't wait for the
entire TO period for each queue but rather in total.
Styling comments.
Rebase.

v3:
Update types from unsigned to long.
Work with jiffies instead of ms.
Return 0 when TO expires.
Rebase.

v4:
Remove unnecessary timeout calculation.

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>
2018-06-15 12:20:33 -05:00
..
gpu_scheduler_trace.h drm/scheduler: move the tracepoints file from the include directory 2018-04-11 13:08:00 -05:00
gpu_scheduler.c drm/scheduler: Avoid using wait_event_killable for dying process (V4) 2018-06-15 12:20:33 -05:00
Makefile drm/scheduler: add license to the Makefile 2017-12-07 11:52:29 -05:00
sched_fence.c drm/sched: add rcu_barrier after entity fini 2018-05-24 10:07:55 -05:00