[PATCH 2/2] drm/i915/display/debug: Expose Dither status via debugfs
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Thu Jun 17 16:00:48 UTC 2021
It's useful to know the status of dither after cc1 block for IGT.
As status of "dither at end of pipe" and "pipe bpp" is already
exposed via "i915_display_info", we can utilize the same node for
this newly added dither.
Example usage: cat /sys/kernel/debug/dri/0/i915_display_info
Cc: Uma Shankar <uma.shankar at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
drivers/gpu/drm/i915/display/intel_display_debugfs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_display_debugfs.c b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
index 88bb05d5c483..1acfcf8b6fe4 100644
--- a/drivers/gpu/drm/i915/display/intel_display_debugfs.c
+++ b/drivers/gpu/drm/i915/display/intel_display_debugfs.c
@@ -1019,8 +1019,9 @@ static void intel_crtc_info(struct seq_file *m, struct intel_crtc *crtc)
yesno(crtc_state->hw.active),
DRM_MODE_ARG(&crtc_state->hw.adjusted_mode));
- seq_printf(m, "\tpipe src size=%dx%d, dither=%s, bpp=%d\n",
+ seq_printf(m, "\tpipe src size=%dx%d, dither_cc1=%s, dither=%s, bpp=%d\n",
crtc_state->pipe_src_w, crtc_state->pipe_src_h,
+ yesno(crtc_state->gamma_mode & POST_CC1_DITHER_ENABLE),
yesno(crtc_state->dither), crtc_state->pipe_bpp);
intel_scaler_info(m, crtc);
--
2.20.1
More information about the Intel-gfx-trybot
mailing list