From: Daniel Vetter <daniel@ffwll.ch>
To: Damien Lespiau <damien.lespiau@intel.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 00/11] A few patches around DRM logging
Date: Mon, 24 Mar 2014 21:41:50 +0100 [thread overview]
Message-ID: <20140324204150.GM26878@phenom.ffwll.local> (raw)
In-Reply-To: <1395676398-7058-1-git-send-email-damien.lespiau@intel.com>
On Mon, Mar 24, 2014 at 03:53:07PM +0000, Damien Lespiau wrote:
> As patch 8/11 explains, I noticed that we where evaluating the arguments to
> drm_ut_debug_printk() even when drm.debug was 0, doing some work for no good
> reason. By pulling the test on drm_debug before calling drm_ut_debug_printk(),
> we skip those instructions that only need to be executed when logging is on.
>
> The remaining patches are bonus clean-ups, with the main goal of removing
> DRM_LOG* macros that are not really used throughout the code base. After that,
> it's possible to simplify a bit drm_ut_debug_printk(). All pretty
> straightforward cleanups, but still worthwhile IMHO.
>
> For driver-specific patches (why some of you are Cced in that series), I'd love
> if you could take the time to throw a Acked-by/Reviewed-by tag. Also, do you
> have any objection if the driver specific patch go through the DRM tree?
> should people judge that series worthwhile, of course.
Except for the gma500 patch this series is
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
For the gma500 I've replied with my opinion but will defer to Patrik.
-Daniel
>
> --
> Damien
>
> Damien Lespiau (11):
> drm: Refresh the explanation of debug categories
> drm: Remove the unused (and unusable) DRM_LOG_MODE()
> drm/exynos: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()
> drm/gma500: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()
> drm/i915: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()
> staging: imx-drm: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS()
> drm: Remove the now unused DRM_LOG* macros
> drm: Pull the test on drm_debug in the logging macros
> drm: drm_ut_debug_printk() isn't called with NULL anywmore
> drm: Remove the prefix argument of drm_ut_debug_printk()
> drm: Remove the ',' after the function name in debug logs
>
> drivers/gpu/drm/drm_stub.c | 24 +++----
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 2 +-
> drivers/gpu/drm/exynos/exynos_drm_plane.c | 2 +-
> drivers/gpu/drm/gma500/psb_intel_sdvo.c | 20 +++---
> drivers/gpu/drm/i915/dvo_ch7xxx.c | 4 +-
> drivers/gpu/drm/i915/dvo_ivch.c | 30 ++++-----
> drivers/gpu/drm/i915/dvo_ns2501.c | 10 +--
> drivers/gpu/drm/i915/dvo_sil164.c | 10 +--
> drivers/gpu/drm/i915/dvo_tfp410.c | 24 +++----
> drivers/staging/imx-drm/ipuv3-plane.c | 2 +-
> include/drm/drmP.h | 106 +++++++++++-------------------
> 11 files changed, 98 insertions(+), 136 deletions(-)
>
> --
> 1.8.3.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
next prev parent reply other threads:[~2014-03-24 20:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-24 15:53 [PATCH 00/11] A few patches around DRM logging Damien Lespiau
2014-03-24 15:53 ` [PATCH 01/11] drm: Refresh the explanation of debug categories Damien Lespiau
2014-03-24 15:53 ` [PATCH 02/11] drm: Remove the unused (and unusable) DRM_LOG_MODE() Damien Lespiau
2014-03-24 15:53 ` [PATCH 03/11] drm/exynos: Replace DRM_LOG_KMS() by DRM_DEBUG_KMS() Damien Lespiau
2014-03-24 15:53 ` [PATCH 04/11] drm/gma500: " Damien Lespiau
2014-03-24 20:39 ` Daniel Vetter
2014-03-24 21:12 ` Patrik Jakobsson
2014-03-24 15:53 ` [PATCH 05/11] drm/i915: " Damien Lespiau
2014-03-24 15:53 ` [PATCH 06/11] staging: imx-drm: " Damien Lespiau
2014-03-25 9:24 ` Philipp Zabel
2014-03-24 15:53 ` [PATCH 07/11] drm: Remove the now unused DRM_LOG* macros Damien Lespiau
2014-03-24 15:53 ` [PATCH 08/11] drm: Pull the test on drm_debug in the logging macros Damien Lespiau
2014-03-25 9:56 ` Jani Nikula
2014-03-25 10:44 ` Daniel Vetter
2014-03-24 15:53 ` [PATCH 09/11] drm: drm_ut_debug_printk() isn't called with NULL anywmore Damien Lespiau
2014-03-24 15:53 ` [PATCH 10/11] drm: Remove the prefix argument of drm_ut_debug_printk() Damien Lespiau
2014-03-24 15:53 ` [PATCH 11/11] drm: Remove the ', ' after the function name in debug logs Damien Lespiau
2014-03-24 20:41 ` Daniel Vetter [this message]
2014-03-25 1:00 ` [PATCH 00/11] A few patches around DRM logging Patrik Jakobsson
2014-03-25 6:35 ` Inki Dae
2014-03-28 3:09 ` Dave Airlie
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=20140324204150.GM26878@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=damien.lespiau@intel.com \
--cc=dri-devel@lists.freedesktop.org \
/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