Skip to contentSkip to conversation

drm/amdgpu: Avoid excessive dmesg log

PATCH In review Lijo Lazar 2 participants 3 messages Jan 16 – Jan 20

Subsystems (2)
lore
Share & tools
lore

Lijo Lazar

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Avoid excessive dmesg log

KIQ access won't work under reset. Avoid flooding dmesg with HDP flush failure messages.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +2 -1
index 6abe5103a78d..2bc305b9aa26 100644
@@ -1298,7 +1298,8 @@ int amdgpu_kiq_hdp_flush(struct amdgpu_device *adev)
 failed_unlock:
 	spin_unlock_irqrestore(&kiq->ring_lock, flags);
 failed_kiq_hdp_flush:
-	dev_err(adev->dev, "failed to flush HDP via KIQ\n");
+	if (!amdgpu_in_reset(adev))
+		dev_err(adev->dev, "failed to flush HDP via KIQ\n");
 	return r < 0 ? r : -EIO;
 }
 
Signature · 1 line
2.49.0
#1 lore raw

<ping>

Will reword the description as "KIQ access is not guaranteed to work reliably under all reset situations."

Thanks,
Lijo

Quoted 22 lines · Lijo Lazar

KIQ access won't work under reset. Avoid flooding dmesg with HDP flush failure messages.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +2 -1
index 6abe5103a78d..2bc305b9aa26 100644
@@ -1298,7 +1298,8 @@ int amdgpu_kiq_hdp_flush(struct amdgpu_device *adev)
  failed_unlock:
  	spin_unlock_irqrestore(&kiq->ring_lock, flags);
  failed_kiq_hdp_flush:
-	dev_err(adev->dev, "failed to flush HDP via KIQ\n");
+	if (!amdgpu_in_reset(adev))
+		dev_err(adev->dev, "failed to flush HDP via KIQ\n");
  	return r < 0 ? r : -EIO;
  }
 
Acked-by
#2 lore raw
Quoted 5 lines · Lijo

<ping>

Will reword the description as "KIQ access is not guaranteed to work reliably under all reset situations."

Quoted 28 lines

Thanks,
Lijo

Quoted 22 lines · Lijo Lazar

KIQ access won't work under reset. Avoid flooding dmesg with HDP flush failure messages.

---
  drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +2 -1
index 6abe5103a78d..2bc305b9aa26 100644
@@ -1298,7 +1298,8 @@ int amdgpu_kiq_hdp_flush(struct amdgpu_device *adev)
  failed_unlock:
      spin_unlock_irqrestore(&kiq->ring_lock, flags);
  failed_kiq_hdp_flush:
-     dev_err(adev->dev, "failed to flush HDP via KIQ\n");
+     if (!amdgpu_in_reset(adev))
+             dev_err(adev->dev, "failed to flush HDP via KIQ\n");
      return r < 0 ? r : -EIO;
  }