OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e5380
)
habanalabs: add rate-limit to an error message
author
Oded Gabbay
<oded.gabbay@gmail.com>
Thu, 6 Jun 2019 06:28:45 +0000
(09:28 +0300)
committer
Oded Gabbay
<oded.gabbay@gmail.com>
Thu, 6 Jun 2019 06:28:45 +0000
(09:28 +0300)
This patch changes the print of an error message about mis-configuration
of the debug infrastructure to be rate-limited, to prevent flooding of
kernel log, as these configuration requests can come at a high rate.
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/habanalabs_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/habanalabs_ioctl.c
b/drivers/misc/habanalabs/habanalabs_ioctl.c
index
6783751
..
c641c7e
100644
(file)
--- a/
drivers/misc/habanalabs/habanalabs_ioctl.c
+++ b/
drivers/misc/habanalabs/habanalabs_ioctl.c
@@
-255,7
+255,7
@@
static int hl_debug_ioctl(struct hl_fpriv *hpriv, void *data)
case HL_DEBUG_OP_SPMU:
case HL_DEBUG_OP_TIMESTAMP:
if (!hdev->in_debug) {
- dev_err(hdev->dev,
+ dev_err
_ratelimited
(hdev->dev,
"Rejecting debug configuration request because device not in debug mode\n");
return -EFAULT;
}