ENUM DRM_DEBUG_CATEGORY(9)
β¨ enum drm_debug_category(9) β¨
okay so welcome to the Kernel API Manual page for enum drm_debug_category β yes, the title is literally enum drm_debug_category(9). This is the DRM debug categories, and we're gonna get you fluent, bestie. π
π NAME π
enum drm_debug_category β The DRM debug categories. That's the name, that's the vibe. β¨
πΈ SYNOPSIS πΈ
enum drm_debug_category {
DRM_UT_CORE ,
DRM_UT_DRIVER ,
DRM_UT_KMS ,
DRM_UT_PRIME ,
DRM_UT_ATOMIC ,
DRM_UT_VBL ,
DRM_UT_STATE ,
DRM_UT_LEASE ,
DRM_UT_DP ,
DRM_UT_DRMRES
};
π Constants π
DRM_UT_COREβ Used in the generic drm code:drm_ioctl.c,drm_mm.c,drm_memory.c, ... πDRM_UT_DRIVERβ Used in the vendor specific part of the driver:i915,radeon, ... macro.DRM_UT_KMSβ Used in the modesetting code.DRM_UT_PRIMEβ Used in the prime code.DRM_UT_ATOMICβ Used in the atomic code.DRM_UT_VBLβ Used for verbose debug message in the vblank code.DRM_UT_STATEβ Used for verbose atomic state debugging.DRM_UT_LEASEβ Used in the lease code.DRM_UT_DPβ Used in the DP code.DRM_UT_DRMRESβ Used in the drm managed resources code.
π Description π
Each of the DRM debug logging macros use a specific category, and the logging is filtered by the drm.debug module parameter. This enum specifies the values for the interface. No cap. π«Ά
Each DRM_DEBUG_<CATEGORY> macro logs to DRM_UT_<CATEGORY> category, except DRM_DEBUG logs to DRM_UT_CORE.
Enabling verbose debug messages is done through the drm.debug parameter, each category being enabled by a bit:
drm.debug=0x1will enable CORE messagesdrm.debug=0x2will enable DRIVER messagesdrm.debug=0x3will enable CORE and DRIVER messages- (the source lists an empty bullet right here β keeping it 100% real, bestie)
drm.debug=0x3ffwill enable all messages π₯
An interesting feature is that it's possible to enable verbose logging at run-time by echoing the debug value in its sysfs node:
# echo 0xf > /sys/module/drm/parameters/debug
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_print.hprint(9) struct drm_printer(9)drm_vprintf(9)drm_printf_indent(9)struct drm_print_iterator(9)drm_coredump_printer(9)drm_coredump_printer_is_full(9)drm_seq_file_printer(9)drm_info_printer(9)drm_dbg_printer(9)drm_err_printer(9)drm_line_printer(9)DRM_DEV_ERROR(9)DRM_DEV_ERROR_RATELIMITED(9)DRM_DEV_DEBUG(9)DRM_DEV_DEBUG_DRIVER(9)DRM_DEV_DEBUG_KMS(9)
okay bye bestie π«Ά β source/version: ./include/drm; date: October 2026; page: enum drm_debug_category(9). That's the footer, but make it cute. π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms