]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/display/debug: Expose crtc current bpc via debugfs
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>
Thu, 19 May 2022 09:51:48 +0000 (15:21 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 May 2022 08:27:41 +0000 (11:27 +0300)
commit572ab8615920b27f5da1637aeef5cd9f1531396a
treed7694523f1f7ab25e9d69d3d8c49f519c904cd2a
parent24012b58bd046371bbf4096d2ba7b11a2c726ae0
drm/i915/display/debug: Expose crtc current bpc via debugfs

This new debugfs will expose the currently using bpc by crtc.
It is very useful for verifying whether we enter the correct
output color depth from IGT.

This patch will also add the connector's max supported bpc to
"i915_display_info" debugfs.

Example:
cat /sys/kernel/debug/dri/0/crtc-0/i915_current_bpc
Current: 8

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Acked-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220519095149.3560034-3-bhanuprakash.modem@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c