Skip to contentSkip to conversation

drm/amdgpu: print warning and taint kernel if lockup timeout is disabled

PATCH In review Christian König 2 participants 2 messages Sep 30, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: print warning and taint kernel if lockup timeout is disabled

Make sure that we notice this in error reports.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
index 4d34b2da8582..8ee5bbc19f62 100644
@@ -3346,6 +3346,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);
 			}
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw

[AMD Official Use Only]

________________________________
From: Christian König <[email protected]>
Sent: Thursday, September 30, 2021 6:00 AM
To: Deucher, Alexander <[email protected]>; [email protected] <[email protected]>
Subject: [PATCH] drm/amdgpu: print warning and taint kernel if lockup timeout is disabled

Make sure that we notice this in error reports.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
index 4d34b2da8582..8ee5bbc19f62 100644
@@ -3346,6 +3346,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);
                         }

--
2.25.1