drm/amdgpu: Avoid excessive dmesg log
Subsystems (2)
PATCH 1/1 drm/amdgpu: Avoid excessive dmesg log
KIQ access won't work under reset. Avoid flooding dmesg with HDP flush failure messages.
Signed-off-by Lijo Lazar <[email protected]>
--- 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
@@ -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
<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.
Signed-off-by Lijo Lazar <[email protected]>--- 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@@ -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 ; }
Alex Deucher
Acked-byQuoted 5 lines · Lijo
<ping>
Will reword the description as "KIQ access is not guaranteed to work reliably under all reset situations."
Acked-by Alex Deucher <[email protected]>
Quoted 28 lines
Thanks,
LijoQuoted 22 lines · Lijo Lazar
KIQ access won't work under reset. Avoid flooding dmesg with HDP flush failure messages.
Signed-off-by Lijo Lazar <[email protected]>--- 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@@ -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 ; }