mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Oded Gabbay <oded.gabbay@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] habanalabs: add rate-limit to an error message
Date: Thu, 06 Jun 2019 11:54:55 -0700	[thread overview]
Message-ID: <4257c916c5db569c6182880e06ddc1230e80ddf0.camel@perches.com> (raw)
In-Reply-To: <20190606122009.12471-1-oded.gabbay@gmail.com>

On Thu, 2019-06-06 at 15:20 +0300, Oded Gabbay wrote:
> 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.
[]
> diff --git 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;
>  		}

Perhaps this should be dev_dbg



  parent reply	other threads:[~2019-06-06 18:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 12:20 Oded Gabbay
2019-06-06 12:20 ` [PATCH 2/2] docs/habanalabs: update text for some entries in sysfs Oded Gabbay
2019-06-06 18:54 ` Joe Perches [this message]
2019-06-07  8:08   ` [PATCH 1/2] habanalabs: add rate-limit to an error message Oded Gabbay

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4257c916c5db569c6182880e06ddc1230e80ddf0.camel@perches.com \
    --to=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oded.gabbay@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®