drm/amdgpu: rework TDR in scheduler (v2)
authorMonk Liu <Monk.Liu@amd.com>
Fri, 4 Mar 2016 10:51:02 +0000 (18:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 19:19:57 +0000 (15:19 -0400)
commit0de2479c953ae07fd11e7b1bc8d4fc831e6842bb
treeceb625203d34fe6920545e2e08839c7e3e535d03
parentcccd9bce978a6644bae75304a05db4faa36faec7
drm/amdgpu: rework TDR in scheduler (v2)

Add two callbacks to scheduler to maintain jobs, and invoked for
job timeout calculations. Now TDR measures time gap from
job is processed by hw.

v2:
fix typo

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
drivers/gpu/drm/amd/scheduler/sched_fence.c