]> 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)
commit99f4116f1a7c993fd9f18bb30f5240d23e2517ea
treed7694523f1f7ab25e9d69d3d8c49f519c904cd2a
parenteb16e2a0f5322b602ba8c0776aea2e80eb7cdf63
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