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)
commitfa373eb2190115ef2c3597f89c12350d0a250eb0
treed7694523f1f7ab25e9d69d3d8c49f519c904cd2a
parent67d935b4713988d0a41097439c0c2d74f240b204
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