diff options
author | Christian König <christian.koenig@amd.com> | 2021-09-30 11:59:14 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-05 12:23:42 -0400 |
commit | 127aedf979579c3a638de37cc0288139f879585a (patch) | |
tree | d8cfc8489ed044355da94a5422dd123c4be927c1 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | c8365dbda056578eebe164bf110816b1a39b4b7f (diff) |
drm/amdgpu: print warning and taint kernel if lockup timeout is disabled
Make sure that we notice this in error reports.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 0207b25c2e6e..b5f72724d449 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -3324,6 +3324,8 @@ static int amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev) continue; } else if (timeout < 0) { timeout = MAX_SCHEDULE_TIMEOUT; + dev_warn(adev->dev, "lockup timeout disabled"); + add_taint(TAINT_SOFTLOCKUP, LOCKDEP_STILL_OK); } else { timeout = msecs_to_jiffies(timeout); } |