aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2021-09-30 11:59:14 +0200
committerAlex Deucher <alexander.deucher@amd.com>2021-10-05 12:23:42 -0400
commit127aedf979579c3a638de37cc0288139f879585a (patch)
treed8cfc8489ed044355da94a5422dd123c4be927c1 /drivers/gpu/drm/amd
parentdrm/amdgpu: revert "Add autodump debugfs node for gpu reset v8" (diff)
downloadlinux-dev-127aedf979579c3a638de37cc0288139f879585a.tar.xz
linux-dev-127aedf979579c3a638de37cc0288139f879585a.zip
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')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c2
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);
}