ENUM DRM_DEBUG_CATEGORY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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=0x1 will enable CORE messages
  • drm.debug=0x2 will enable DRIVER messages
  • drm.debug=0x3 will enable CORE and DRIVER messages
  • (the source lists an empty bullet right here β€” keeping it 100% real, bestie)
  • drm.debug=0x3ff will 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 πŸ”₯


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