drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages
Subsystems (2)
RFC PATCH 1/1 drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages
KMS has a lot of code sequences where the driver has to select a certain HW configuration among the available ones. For e.g., link rate, clock, voltage swing, training pattern etc. Printing such low-level messages is valuable for debugging display problems. But, will bloat dmesg if printed with DRM_DEBUG_KMS.
DRM_DEBUG_DISPLAY will specifically address such cases where the developer wants communicate why a display related configuration choice was made.
--- include/drm/drmP.h | 9 +++++++++ 1 file changed, 9 insertions(+)
include/drm/drmP.h +9 -0
@@ -114,6 +114,9 @@ struct dma_buf_attachment;* VBL: used for verbose debug message in the vblank code * This is the category used by the DRM_DEBUG_VBL() macro. * +* DISPLAY: used for low-level display configuration messages. +* This is the category used by the DRM_DEBUG_DISPLAY() macro. +* * Enabling verbose debug messages is done through the drm.debug parameter, * each category being enabled by a bit. *
@@ -133,6 +136,7 @@ struct dma_buf_attachment;#define DRM_UT_PRIME 0x08#define DRM_UT_ATOMIC 0x10#define DRM_UT_VBL 0x20 +#define DRM_UT_DISPLAY 0x40 extern __printf(2, 3) void drm_ut_debug_printk(const char *function_name,
@@ -230,6 +234,11 @@ void drm_err(const char *format, ...);if (unlikely (drm_debug &DRM_UT_VBL )) \ drm_ut_debug_printk(__func__, fmt, ##args); \ }while (0 ) +#define DRM_DEBUG_DISPLAY(fmt, args...) \ +do { \ +if (unlikely (drm_debug &DRM_UT_DISPLAY )) \ + drm_ut_debug_printk(__func__, fmt, ##args); \ + }while (0 )/*@}*/
Signature · 6 lines
2.5.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages
== Series Details ==
== Series Details ==
Series: drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages
URL : https://patchwork.freedesktop.org/series/11345/
State : failure
== Summary ==
Applying: drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages Using index info to reconstruct a base tree...
M include/drm/drmP.h
Falling back to patching base and 3-way merge...
Auto-merging include/drm/drmP.h
CONFLICT (content): Merge conflict in include/drm/drmP.h
error: Failed to merge in the changes.
Patch failed at 0001 drm: Add DRM_DEBUG_DISPLAY macro for display configuration debug messages The copy of the patch that failed is found in: .git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx