Skip to content

dyndbg: drm.debug adaptation

Jim Cromie amd-gfx dri-devel intel-gfx lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest9 patches 18 repliesIn review

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm_print: condense enum drm_debug_categoryinclude/drm/drm_print.h+11 -112 replies
2/9drm: POC drm on dyndbg - use in core, 2 helpers, 3 drivers.drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c drivers/gpu/drm/display/drm_dp_helper.c drivers/gpu/drm/drm_crtc_helper.c +4 more+92 -32 replies
3/9drm_print: interpose drm_*dbg with forwarding macrosdrivers/gpu/drm/drm_print.c include/drm/drm_print.h+12 -70 replies
4/9drm_print: wrap drm_*_dbg in dyndbg descriptor factory macrodrivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile include/drm/drm_print.h+26 -00 replies
5/9drm-print.h: include dyndbg headerinclude/drm/drm_print.h+1 -00 replies
6/9drm-print: add drm_dbg_driver to improve namespace symmetryinclude/drm/drm_print.h+2 -10 replies
7/9drm_print: optimize drm_debug_enabled for jump-labeldrivers/gpu/drm/drm_print.c include/drm/drm_print.h+22 -30 replies
8/9drm_print: prefer bare printk KERN_DEBUG on generic fndrivers/gpu/drm/drm_print.c+2 -30 replies
9/9drm_print: add _ddebug descriptor to drm_*dbg prototypesdrivers/gpu/drm/drm_print.c include/drm/drm_print.h+17 -140 replies

Reviews trailers per patch

None of the 9 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-Hartman
SeriesA-b
1/9
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/9] dyndbg: drm.debug adaptation

hi Greg, Dan, Jason, DRM-folk,

heres follow-up to V6:
rebased on driver-core/driver-core-next for -v6 applied bits (thanks) rework drm_debug_enabled{_raw,_instrumented,} per Dan.

It excludes:
nouveau parts (immature)
tracefs parts (I missed --to=Steve on v6)
split _ddebug_site and de-duplicate experiment (way unready)

IOW, its the remaining commits of V6 on which Dan gave his Reviewed-by.

If these are good to apply, I'll rebase and repost the rest separately.

These are also available at:
https://github.com/jimc/linux/releases/tag/dyndbg%2Fdd-drm-class-911

RFC:

DECLARE_DYNDBG_CLASSMAP's interface can be improved: class-names are currently strings, like "DRM_UT_CORE", which must have corresponding ENUM symbols defined. It would be better to just pass DRM_UT_CORE, etc, and stringify the va-args inside the macro while initializing classnames member. But how ?

Jim Cromie (9):
drm_print: condense enum drm_debug_category
drm: POC drm on dyndbg - use in core, 2 helpers, 3 drivers.
drm_print: interpose drm_*dbg with forwarding macros
drm_print: wrap drm_*_dbg in dyndbg descriptor factory macro drm-print.h: include dyndbg header
drm-print: add drm_dbg_driver to improve namespace symmetry
drm_print: optimize drm_debug_enabled for jump-label
drm_print: prefer bare printk KERN_DEBUG on generic fn
drm_print: add _ddebug descriptor to drm_*dbg prototypes

 drivers/gpu/drm/Kconfig                 | 12 ++++
 drivers/gpu/drm/Makefile                |  2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 14 +++++
 drivers/gpu/drm/display/drm_dp_helper.c | 13 +++++
 drivers/gpu/drm/drm_crtc_helper.c       | 13 +++++
 drivers/gpu/drm/drm_print.c             | 48 +++++++++++----
 drivers/gpu/drm/i915/i915_params.c      | 12 ++++
 drivers/gpu/drm/nouveau/nouveau_drm.c   | 13 +++++
 include/drm/drm_print.h                 | 78 +++++++++++++++++++------
 9 files changed, 174 insertions(+), 31 deletions(-)
Signature · 1 line
2.37.3