From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2A62AC63797 for ; Tue, 17 Jan 2023 13:55:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AC5D10E53C; Tue, 17 Jan 2023 13:55:26 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1623810E521; Tue, 17 Jan 2023 13:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673963724; x=1705499724; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tXtdjqRUaI7KuHWDRsoM3dAD+IplLvdjPfeRx1/vb0c=; b=CzHMLaK3+5Mq91vQKav+GEgi9k8eRMxF3fDdaAlwP/Bd2bHwH5yWrwqa HMx2htjeyGRXvg1VftjSg9wDxK/6HQIxoPVBX+9kc3n1oE1l+tkbGyEMU GLc+8kO/IcMc9Pc4WpJoo1JAGbTXOyLw1wQF+6clFTSM+EDPBionZyEMQ cHPuUzPer1UhJam5n4NhYpm6c6uz+Rm6sucQpjKjdbn+i16SRLasyENP7 WSwKMiS8TPpDedtOAsq9M/9NiKpYiq6WRn56WRZWnKoTxX1Ga/Hm5rQQr G8rKB7Q83S4SMV3sxkz6tGW72jTCze3i8frdPOMfW/A2RhpmproXrMrZV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="305073791" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="305073791" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 05:55:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="689806235" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="689806235" Received: from dmitriim-mobl.ger.corp.intel.com (HELO intel.com) ([10.249.45.175]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 05:55:19 -0800 Date: Tue, 17 Jan 2023 14:55:16 +0100 From: Andi Shyti To: Nirmoy Das Message-ID: References: <20230117115350.1071-1-nirmoy.das@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117115350.1071-1-nirmoy.das@intel.com> Subject: Re: [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org, Maxime Ripard , dri-devel@lists.freedesktop.org, Thomas Zimmermann , David Airlie , Matthew Auld Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi, can any of the DRM maintainers please check and eventually ack this patch? On Tue, Jan 17, 2023 at 12:53:49PM +0100, Nirmoy Das wrote: > Add a function for ratelimitted debug print. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Thomas Zimmermann > Cc: David Airlie > Cc: Daniel Vetter > Reviewed-by: Matthew Auld > Signed-off-by: Nirmoy Das Reviewed-by: Andi Shyti 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D577BC678DF for ; Tue, 17 Jan 2023 13:55:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5432610E521; Tue, 17 Jan 2023 13:55:26 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1623810E521; Tue, 17 Jan 2023 13:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673963724; x=1705499724; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tXtdjqRUaI7KuHWDRsoM3dAD+IplLvdjPfeRx1/vb0c=; b=CzHMLaK3+5Mq91vQKav+GEgi9k8eRMxF3fDdaAlwP/Bd2bHwH5yWrwqa HMx2htjeyGRXvg1VftjSg9wDxK/6HQIxoPVBX+9kc3n1oE1l+tkbGyEMU GLc+8kO/IcMc9Pc4WpJoo1JAGbTXOyLw1wQF+6clFTSM+EDPBionZyEMQ cHPuUzPer1UhJam5n4NhYpm6c6uz+Rm6sucQpjKjdbn+i16SRLasyENP7 WSwKMiS8TPpDedtOAsq9M/9NiKpYiq6WRn56WRZWnKoTxX1Ga/Hm5rQQr G8rKB7Q83S4SMV3sxkz6tGW72jTCze3i8frdPOMfW/A2RhpmproXrMrZV w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="305073791" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="305073791" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 05:55:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="689806235" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="689806235" Received: from dmitriim-mobl.ger.corp.intel.com (HELO intel.com) ([10.249.45.175]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 05:55:19 -0800 Date: Tue, 17 Jan 2023 14:55:16 +0100 From: Andi Shyti To: Nirmoy Das Subject: Re: [Intel-gfx] [PATCH 1/2] drm/print: Add drm_dbg_ratelimited Message-ID: References: <20230117115350.1071-1-nirmoy.das@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230117115350.1071-1-nirmoy.das@intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Thomas Zimmermann , Matthew Auld Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, can any of the DRM maintainers please check and eventually ack this patch? On Tue, Jan 17, 2023 at 12:53:49PM +0100, Nirmoy Das wrote: > Add a function for ratelimitted debug print. > > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: Thomas Zimmermann > Cc: David Airlie > Cc: Daniel Vetter > Reviewed-by: Matthew Auld > Signed-off-by: Nirmoy Das Reviewed-by: Andi Shyti 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