]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hyperv: Add ratelimit on error message
authorSaurabh Sengar <ssengar@linux.microsoft.com>
Fri, 9 Sep 2022 15:09:53 +0000 (08:09 -0700)
committerWei Liu <wei.liu@kernel.org>
Thu, 29 Sep 2022 16:28:28 +0000 (16:28 +0000)
commit39fee595955539decd4265a4ec5a756444fc1608
treeae97dcf6fac58e902c9d5d7859621a0590b5b0e7
parent670ace5630b435d97974cd6debfb616a08a4620b
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 <ssengar@linux.microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/1662736193-31379-1-git-send-email-ssengar@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/gpu/drm/hyperv/hyperv_drm_proto.c