Skip to content

Commit 06f78f6

Browse files
vsyrjalalutzbichler
authored andcommitted
drm/i915/vrr: Improve VRR state dump
Dump the calculated vmin/vmax vtotal values in addition to the raw vmin/vmax/flipline values. Makes it much easier to see what kind of scanline values we should be expecting from the hardware. Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Ankit Nautiyal <[email protected]>
1 parent d9b8684 commit 06f78f6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

drivers/gpu/drm/i915/display/intel_crtc_state_dump.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,14 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
288288
pipe_config->hw.adjusted_mode.crtc_vdisplay,
289289
pipe_config->framestart_delay, pipe_config->msa_timing_delay);
290290

291-
drm_printf(&p, "vrr: %s, vmin: %d, vmax: %d, pipeline full: %d, guardband: %d flipline: %d, vmin vblank: %d, vmax vblank: %d\n",
291+
drm_printf(&p, "vrr: %s, vmin: %d, vmax: %d, flipline: %d, pipeline full: %d, guardband: %d\n",
292292
str_yes_no(pipe_config->vrr.enable),
293-
pipe_config->vrr.vmin, pipe_config->vrr.vmax,
294-
pipe_config->vrr.pipeline_full, pipe_config->vrr.guardband,
295-
pipe_config->vrr.flipline,
296-
intel_vrr_vmin_vblank_start(pipe_config),
297-
intel_vrr_vmax_vblank_start(pipe_config));
293+
pipe_config->vrr.vmin, pipe_config->vrr.vmax, pipe_config->vrr.flipline,
294+
pipe_config->vrr.pipeline_full, pipe_config->vrr.guardband);
295+
296+
drm_printf(&p, "vrr: vmin vblank: %d, vmax vblank: %d, vmin vtotal: %d, vmax vtotal: %d\n",
297+
intel_vrr_vmin_vblank_start(pipe_config), intel_vrr_vmax_vblank_start(pipe_config),
298+
intel_vrr_vmin_vtotal(pipe_config), intel_vrr_vmax_vtotal(pipe_config));
298299

299300
drm_printf(&p, "requested mode: " DRM_MODE_FMT "\n",
300301
DRM_MODE_ARG(&pipe_config->hw.mode));

0 commit comments

Comments
 (0)