[Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited

Andi Shyti andi.shyti at linux.intel.com
Fri Feb 10 11:46:36 UTC 2023


Hi,

> can any of the DRM maintainers please check and eventually ack
> this patch?

I renew my request for an ack from any of the drm maintainers.
This patch has been already reviewd.

If it's OK I can take it into the drm-intel-gt-next branch.

Thanks,
Andi

> 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 at linux.intel.com>
> > Cc: Maxime Ripard <mripard at kernel.org>
> > Cc: Thomas Zimmermann <tzimmermann at suse.de>
> > Cc: David Airlie <airlied at gmail.com>
> > Cc: Daniel Vetter <daniel at ffwll.ch>
> > Reviewed-by: Matthew Auld <matthew.auld at intel.com>
> > Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
> 
> Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>
> 
> Thanks,
> Andi
> 
> > ---
> >  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


More information about the dri-devel mailing list