All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] use DYNAMIC_DEBUG in drm/print
@ 2021-05-30 19:21 Jim Cromie
  2021-05-30 19:21 ` [RFC PATCH 1/4] drm: fixup comment spelling Jim Cromie
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jim Cromie @ 2021-05-30 19:21 UTC (permalink / raw)
  To: dri-devel; +Cc: Jim Cromie, jbaron, robert.foss

hi everyone,

this patchset reworks the drm.debug controlled debug categories,
and remaps them to use dynamic_debug_exec_queries().

To do this "smoothly", DRM_UT_* is converted from an enum to a
class-prefix string, which is prepended## to the real format string.
This lets us use:

 $> echo module drm\* format ^drm:kms: +p > /proc/dynamic_debug/control

3rd patch fixes a conflict while rebasing to rc3. I kept the fixup
separate for more visibility.

commit c5261e93758a6b36f4292403027af383ec9da129
Author: Lyude Paul <lyude@redhat.com>
Date:   Fri Mar 26 16:37:54 2021 -0400

    drm/print: Fixup DRM_DEBUG_KMS_RATELIMITED()
    
    Since we're about to move drm_dp_helper.c over to drm_dbg_*(), we'll want
    to make sure that we can also add ratelimited versions of these macros in
    order to retain some of the previous debugging output behavior we had.

I can see I havent been paying attention.
Are plans laid out where I can catch up quickly ?

Separately, but related, I have an RFC patchset on LKML to reduce
DYNAMIC_DEBUG's memory overhead.  Patch 34 hints that rate-limiting
can be done dynamically, on demand, for any prdbg known to
dynamic_debug.

https://lore.kernel.org/lkml/20210529200029.205306-1-jim.cromie@gmail.com/T/#ma5052696fe9171649b93b3e1f482de90314a9b61

Jim Cromie (4):
  drm: fixup comment spelling
  drm: RFC add choice to use dynamic debug in drm-debug
  drm: fixup DRM_DEBUG_KMS_RATELIMITED merge punt
  i915: map gvt pr_debug categories to bits in parameters/debug_gvt

 drivers/gpu/drm/Kconfig            |  13 ++++
 drivers/gpu/drm/drm_print.c        |  75 ++++++++++++++++++-
 drivers/gpu/drm/i915/gvt/Makefile  |   4 +
 drivers/gpu/drm/i915/i915_params.c |  76 +++++++++++++++++++
 include/drm/drm_print.h            | 116 ++++++++++++++++++++---------
 5 files changed, 243 insertions(+), 41 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-31  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 19:21 [RFC PATCH 0/4] use DYNAMIC_DEBUG in drm/print Jim Cromie
2021-05-30 19:21 ` [RFC PATCH 1/4] drm: fixup comment spelling Jim Cromie
2021-05-30 19:21 ` [RFC PATCH 2/4] drm: RFC add choice to use dynamic debug in drm-debug Jim Cromie
2021-05-30 19:21 ` [RFC PATCH 3/4] drm: fixup DRM_DEBUG_KMS_RATELIMITED merge punt Jim Cromie
2021-05-30 19:21 ` [RFC PATCH 4/4] i915: map gvt pr_debug categories to bits in parameters/debug_gvt Jim Cromie

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.