Skip to content

Commit 4c3386f

Browse files
Saurabh Sengarliuw
authored andcommitted
drm/hyperv: Add ratelimit on error message
Due to a full ring buffer, the driver may be unable to send updates to the Hyper-V host. But outputing the error message can make the problem worse because console output is also typically written to the frame buffer. Rate limiting the error message, also output the error code for additional diagnosability. Signed-off-by: Saurabh Sengar <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent d5ebde1 commit 4c3386f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/hyperv/hyperv_drm_proto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ static inline int hyperv_sendpacket(struct hv_device *hdev, struct synthvid_msg
208208
VM_PKT_DATA_INBAND, 0);
209209

210210
if (ret)
211-
drm_err(&hv->dev, "Unable to send packet via vmbus\n");
211+
drm_err_ratelimited(&hv->dev, "Unable to send packet via vmbus; error %d\n", ret);
212212

213213
return ret;
214214
}

0 commit comments

Comments
 (0)