]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Avoid excessive dmesg log
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 16 Jan 2026 04:47:59 +0000 (10:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Jan 2026 19:25:31 +0000 (14:25 -0500)
KIQ access is not guaranteed to work reliably under all reset
situations. Avoid flooding dmesg with HDP flush failure messages.

Signed-off-by: Lijo Lazar <lijo.lazar@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_gfx.c

index cf7a07855daefb749a8c95e46b57d68ea6e579cb..8b5801d7109c232f59f9c5a21969ff39e9b69232 100644 (file)
@@ -1298,7 +1298,8 @@ failed_undo:
 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;
 }