From: "Das, Nirmoy" <nirmoy.das@intel.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
intel-gfx@lists.freedesktop.org,
Matthew Auld <matthew.auld@intel.com>,
dri-devel@lists.freedesktop.org
Subject: Re: [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited
Date: Tue, 17 Jan 2023 16:03:31 +0100 [thread overview]
Message-ID: <e145e3f4-38a7-9ffb-31bf-48f6e003b31a@intel.com> (raw)
In-Reply-To: <Y8a1ciLKt9uLZDh6@ravnborg.org>
Hi Sam,
On 1/17/2023 3:49 PM, Sam Ravnborg wrote:
> Hi Nirmoy
>
> On Tue, Jan 17, 2023 at 12:53:49PM +0100, Nirmoy Das wrote:
>> Add a function for ratelimitted debug print.
>>
>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Cc: Maxime Ripard <mripard@kernel.org>
>> Cc: Thomas Zimmermann <tzimmermann@suse.de>
>> Cc: David Airlie <airlied@gmail.com>
>> Cc: Daniel Vetter <daniel@ffwll.ch>
>> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> Thanks for adding this.
> The patch as-is is:
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
>
> It would have been nice to start adding kernel-doc to the
> non-deprecated logging functions. But as everyone else is missing this,
> it is OK that we miss it here.
>
> A couple of nice follow-up patches would be to introduce a KMS variant
> and replace the only user of DRM_DEBUG_KMS_RATELIMITED with the new
> variant and remove the old one.
>
> And maybe even update the remaining *ERROR_RATELIMITED users to a new
> variant - and drop the deprecated ones.
Thanks for reviewing this. I can definitely work on your suggested
follow-up patches.
Nirmoy
>
> Sam
>
>> ---
>> include/drm/drm_print.h | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
>> index a44fb7ef257f..1d839f507319 100644
>> --- a/include/drm/drm_print.h
>> +++ b/include/drm/drm_print.h
>> @@ -602,6 +602,9 @@ void __drm_err(const char *format, ...);
>> drm_dev_printk(drm_ ? drm_->dev : NULL, KERN_DEBUG, fmt, ## __VA_ARGS__); \
>> })
>>
>> +#define drm_dbg_ratelimited(drm, fmt, ...) \
>> + __DRM_DEFINE_DBG_RATELIMITED(DRIVER, drm, fmt, ## __VA_ARGS__)
>> +
>> #define drm_dbg_kms_ratelimited(drm, fmt, ...) \
>> __DRM_DEFINE_DBG_RATELIMITED(KMS, drm, fmt, ## __VA_ARGS__)
>>
>> --
>> 2.39.0
WARNING: multiple messages have this Message-ID (diff)
From: "Das, Nirmoy" <nirmoy.das@intel.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
intel-gfx@lists.freedesktop.org,
Matthew Auld <matthew.auld@intel.com>,
dri-devel@lists.freedesktop.org,
Andi Shyti <andi.shyti@linux.intel.com>
Subject: Re: [PATCH 1/2] drm/print: Add drm_dbg_ratelimited
Date: Tue, 17 Jan 2023 16:03:31 +0100 [thread overview]
Message-ID: <e145e3f4-38a7-9ffb-31bf-48f6e003b31a@intel.com> (raw)
In-Reply-To: <Y8a1ciLKt9uLZDh6@ravnborg.org>
Hi Sam,
On 1/17/2023 3:49 PM, Sam Ravnborg wrote:
> Hi Nirmoy
>
> On Tue, Jan 17, 2023 at 12:53:49PM +0100, Nirmoy Das wrote:
>> Add a function for ratelimitted debug print.
>>
>> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Cc: Maxime Ripard <mripard@kernel.org>
>> Cc: Thomas Zimmermann <tzimmermann@suse.de>
>> Cc: David Airlie <airlied@gmail.com>
>> Cc: Daniel Vetter <daniel@ffwll.ch>
>> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> Thanks for adding this.
> The patch as-is is:
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
>
> It would have been nice to start adding kernel-doc to the
> non-deprecated logging functions. But as everyone else is missing this,
> it is OK that we miss it here.
>
> A couple of nice follow-up patches would be to introduce a KMS variant
> and replace the only user of DRM_DEBUG_KMS_RATELIMITED with the new
> variant and remove the old one.
>
> And maybe even update the remaining *ERROR_RATELIMITED users to a new
> variant - and drop the deprecated ones.
Thanks for reviewing this. I can definitely work on your suggested
follow-up patches.
Nirmoy
>
> Sam
>
>> ---
>> include/drm/drm_print.h | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
>> index a44fb7ef257f..1d839f507319 100644
>> --- a/include/drm/drm_print.h
>> +++ b/include/drm/drm_print.h
>> @@ -602,6 +602,9 @@ void __drm_err(const char *format, ...);
>> drm_dev_printk(drm_ ? drm_->dev : NULL, KERN_DEBUG, fmt, ## __VA_ARGS__); \
>> })
>>
>> +#define drm_dbg_ratelimited(drm, fmt, ...) \
>> + __DRM_DEFINE_DBG_RATELIMITED(DRIVER, drm, fmt, ## __VA_ARGS__)
>> +
>> #define drm_dbg_kms_ratelimited(drm, fmt, ...) \
>> __DRM_DEFINE_DBG_RATELIMITED(KMS, drm, fmt, ## __VA_ARGS__)
>>
>> --
>> 2.39.0
next prev parent reply other threads:[~2023-01-17 15:04 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-17 11:53 [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited Nirmoy Das
2023-01-17 11:53 ` Nirmoy Das
2023-01-17 11:53 ` [Intel-gfx] [PATCH 2/2] drm/i915: Ratelimit debug log in vm_fault_ttm Nirmoy Das
2023-01-17 11:53 ` Nirmoy Das
2023-01-17 11:59 ` [Intel-gfx] " Andrzej Hajda
2023-01-17 13:56 ` Andi Shyti
2023-01-17 11:58 ` [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited Andrzej Hajda
2023-01-17 11:58 ` Andrzej Hajda
2023-01-17 12:22 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/2] " Patchwork
2023-01-17 13:55 ` [Intel-gfx] [PATCH 1/2] " Andi Shyti
2023-01-17 13:55 ` Andi Shyti
2023-02-10 11:46 ` Andi Shyti
2023-02-10 11:46 ` Andi Shyti
2023-01-17 14:22 ` [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] " Patchwork
2023-01-17 14:49 ` [Intel-gfx] [PATCH 1/2] " Sam Ravnborg
2023-01-17 14:49 ` Sam Ravnborg
2023-01-17 15:03 ` Das, Nirmoy [this message]
2023-01-17 15:03 ` Das, Nirmoy
2023-01-17 21:19 ` [Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] " Patchwork
2023-10-10 21:18 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/2] drm/print: Add drm_dbg_ratelimited (rev2) Patchwork
2023-10-10 21:18 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2023-10-10 21:29 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-10-11 9:08 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2022-10-13 8:40 [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited Nirmoy Das
2022-11-17 11:43 ` Matthew Auld
2022-11-17 11:43 ` Matthew Auld
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=e145e3f4-38a7-9ffb-31bf-48f6e003b31a@intel.com \
--to=nirmoy.das@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=matthew.auld@intel.com \
--cc=sam@ravnborg.org \
--cc=tzimmermann@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.