Skip to content

RFC use DYNAMIC_DEBUG in drm/print

Jim Cromie dri-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm: fixup comment spellinginclude/drm/drm_print.h+1 -10 replies
2/4drm: RFC add choice to use dynamic debug in drm-debugdrivers/gpu/drm/Kconfig drivers/gpu/drm/drm_print.c include/drm/drm_print.h+155 -280 replies
3/4drm: fixup DRM_DEBUG_KMS_RATELIMITED merge puntinclude/drm/drm_print.h+7 -120 replies
4/4i915: map gvt pr_debug categories to bits in parameters/debug_gvtdrivers/gpu/drm/i915/gvt/Makefile drivers/gpu/drm/i915/i915_params.c+80 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] use DYNAMIC_DEBUG in drm/print

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 <[email protected]>
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/[email protected]/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(-)
Signature · 1 line
2.31.1