drm/amdgpu: fix scheduler timeout calc
authorFlora Cui <flora.cui@amd.com>
Mon, 24 Jun 2019 08:48:33 +0000 (16:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Jul 2019 18:55:20 +0000 (13:55 -0500)
commit71cc9ef3f694ccd70ae929ad827da8b630b269c9
tree8cb04f9b37a88199171dd734ddbf135598eb2f31
parente5eaa7cc0c0359cfe17b0027a6ac5eda7a9635db
drm/amdgpu: fix scheduler timeout calc

scheduler timeout is in jiffies
v2: move timeout check to amdgpu_device_get_job_timeout_settings after
parsing the value
v3: add lockup_timeout param check. 0: keep default value. negative:
infinity timeout.
v4: refactor codes.

Signed-off-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c