linux/drivers/gpu/drm/amd/scheduler
Monk Liu cfb83b1d9c drm/amdgpu:fix gpu recover missing skipping(v2)
if app close CTX right after IB submit, gpu recover
will fail to find out the entity behind this guilty
job thus lead to no job skipping for this guilty job.

to fix this corner case just move the increasement of
job->karma out of the entity iteration.

v2:
only do karma increasment if bad->s_priority != KERNEL
because we always consider KERNEL job be correct and always
want to recover an unfinished kernel job (sometimes kernel
job is interrupted by VF FLR or other GPU hang event)

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-By: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-04 16:41:46 -05:00
..
gpu_sched_trace.h drm/amdgpu: Remove job->s_entity to avoid keeping reference to stale pointer. 2017-12-04 16:33:11 -05:00
gpu_scheduler.c drm/amdgpu:fix gpu recover missing skipping(v2) 2017-12-04 16:41:46 -05:00
gpu_scheduler.h drm/amdgpu: Remove job->s_entity to avoid keeping reference to stale pointer. 2017-12-04 16:33:11 -05:00
sched_fence.c drm/virtio: fix busid in a different way, allocate more vbufs. 2016-11-30 14:18:51 +10:00
spsc_queue.h drm/amdgpu: Add SPSC queue to scheduler. 2017-12-04 16:33:10 -05:00