@@ -172,6 +172,20 @@ vlv_dump_csc(struct drm_printer *p, const char *name,
csc->coeff[3 * i + 2]);
}
+static const char * const vrrtg_mode_str[] = {
+ [INTEL_VRRTG_MODE_NONE] = "none",
+ [INTEL_VRRTG_MODE_VRR] = "vrr",
+ [INTEL_VRRTG_MODE_CMRR] = "cmrr",
+};
+
+static const char *intel_vrrtg_mode_name(enum intel_vrrtg_mode mode)
+{
+ if (mode >= ARRAY_SIZE(vrrtg_mode_str))
+ return "invalid";
+
+ return vrrtg_mode_str[mode];
+}
+
void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
struct intel_atomic_state *state,
const char *context)
@@ -292,8 +306,9 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
pipe_config->hw.adjusted_mode.crtc_vdisplay,
pipe_config->framestart_delay, pipe_config->msa_timing_delay);
- drm_printf(&p, "vrr: %s, vmin: %d, vmax: %d, flipline: %d, pipeline full: %d, guardband: %d vsync start: %d, vsync end: %d\n",
+ drm_printf(&p, "vrr: %s, mode: %s, vmin: %d, vmax: %d, flipline: %d, pipeline full: %d, guardband: %d vsync start: %d, vsync end: %d\n",
str_yes_no(intel_vrr_is_enabled(pipe_config)),
+ intel_vrrtg_mode_name(pipe_config->vrr.mode),
pipe_config->vrr.vmin, pipe_config->vrr.vmax, pipe_config->vrr.flipline,
pipe_config->vrr.pipeline_full, pipe_config->vrr.guardband,
pipe_config->vrr.vsync_start, pipe_config->vrr.vsync_end);
Print Vrr mode along with other vrr members in crtc_state dump. Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> --- .../drm/i915/display/intel_crtc_state_dump.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-)