Skip to content

Commit 9d03d40

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Avoid excessive dmesg log
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>
1 parent e3a6eff commit 9d03d40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,8 @@ int amdgpu_kiq_hdp_flush(struct amdgpu_device *adev)
12981298
failed_unlock:
12991299
spin_unlock_irqrestore(&kiq->ring_lock, flags);
13001300
failed_kiq_hdp_flush:
1301-
dev_err(adev->dev, "failed to flush HDP via KIQ\n");
1301+
if (!amdgpu_in_reset(adev))
1302+
dev_err(adev->dev, "failed to flush HDP via KIQ\n");
13021303
return r < 0 ? r : -EIO;
13031304
}
13041305

0 commit comments

Comments
 (0)