Skip to contentSkip to conversation

drm/amdgpu/userq: change the vital queue unmap log to dbg log

PATCH In review Sunil Khatri 2 participants 2 messages May 25

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

PATCH 1/1 drm/amdgpu/userq: change the vital queue unmap log to dbg log

we see this message once during boot and that's possibly due to one of the bo unmap called while the queue is going through tear down and we see this warning.

Change this to debug only logging.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +1 -1
index f0c7b686f68d..0f2c00a37287 100644
@@ -1352,7 +1352,7 @@ void amdgpu_userq_gem_va_unmap_validate(struct amdgpu_device *adev,
 	if (!ip_mask)
 		return;
 
-	dev_warn_once(adev->dev, "now unmapping a vital queue va:%llx\n", saddr);
+	dev_dbg(adev->dev, "now unmapping a vital queue va:%llx\n", saddr);
 	/**
 	 * The userq VA mapping reservation should include the eviction fence,
 	 * if the eviction fence can't signal successfully during unmapping,
Signature · 1 line
2.34.1
#1 lore raw

Please Ignore this. Sending new patch with removing the log altogether.

Quoted 24 lines · Sunil Khatri

we see this message once during boot and that's possibly due to one of the bo unmap called while the queue is going through tear down and we see this warning.

Change this to debug only logging.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +1 -1
index f0c7b686f68d..0f2c00a37287 100644
@@ -1352,7 +1352,7 @@ void amdgpu_userq_gem_va_unmap_validate(struct amdgpu_device *adev,
  	if (!ip_mask)
  		return;
 
-	dev_warn_once(adev->dev, "now unmapping a vital queue va:%llx\n", saddr);
+	dev_dbg(adev->dev, "now unmapping a vital queue va:%llx\n", saddr);
  	/**
  	 * The userq VA mapping reservation should include the eviction fence,
  	 * if the eviction fence can't signal successfully during unmapping,