diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-10-17 01:40:54 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-04 16:33:08 -0500 |
commit | 95aa9b1d9738faa80c66df41d59358d5ff4c288a (patch) | |
tree | 645d3243c941228cf093ea9c0c784e42c5b8c2e5 /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | |
parent | 2f9d4084cac96a0281522b548ca0526c1e241b75 (diff) |
drm/amdgpu:add hang_limit for sched(v2)
since gpu_scheduler source domain cannot access amdgpu variable
so need create the hang_limit membewr for sched, and it can
refer it for the upcoming GPU RESET patches
v2:
make hang_limit a parameter of sched_init()
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index 219c15f79a5d..72e8eacc2c03 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | |||
@@ -446,7 +446,7 @@ int amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring, | |||
446 | timeout = MAX_SCHEDULE_TIMEOUT; | 446 | timeout = MAX_SCHEDULE_TIMEOUT; |
447 | } | 447 | } |
448 | r = amd_sched_init(&ring->sched, &amdgpu_sched_ops, | 448 | r = amd_sched_init(&ring->sched, &amdgpu_sched_ops, |
449 | num_hw_submission, | 449 | num_hw_submission, amdgpu_job_hang_limit, |
450 | timeout, ring->name); | 450 | timeout, ring->name); |
451 | if (r) { | 451 | if (r) { |
452 | DRM_ERROR("Failed to create scheduler on ring %s.\n", | 452 | DRM_ERROR("Failed to create scheduler on ring %s.\n", |