[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220912052852.1123868-1-jim.cromie@gmail.com>
Date: Sun, 11 Sep 2022 23:28:43 -0600
From: Jim Cromie <jim.cromie@...il.com>
To: jbaron@...mai.com, gregkh@...uxfoundation.org,
dri-devel@...ts.freedesktop.org, amd-gfx@...ts.freedesktop.org,
intel-gvt-dev@...ts.freedesktop.org,
intel-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Cc: daniel.vetter@...ll.ch, seanpaul@...omium.org, robdclark@...il.com,
linux@...musvillemoes.dk, joe@...ches.com,
Jim Cromie <jim.cromie@...il.com>
Subject: [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(-)
--
2.37.3
Powered by blists - more mailing lists