drm/amdgpu: print warning and taint kernel if lockup timeout is disabled
authorChristian König <christian.koenig@amd.com>
Thu, 30 Sep 2021 09:59:14 +0000 (11:59 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Oct 2021 16:23:42 +0000 (12:23 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 0207b25..b5f7272 100644 (file)
@@ -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);
                        }