drm/i915: Include the vblank delay in the state dump
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Dec 2024 21:09:55 +0000 (23:09 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Jan 2025 17:28:57 +0000 (19:28 +0200)
While one can look at the crtc timings to determine the actual
vblank dealy, it seems nicer to provide a more human readable
dump of it to ease our lives.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241210211007.5976-7-ville.syrjala@linux.intel.com
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c

index 9d930ff862cfb9d6dfb2067be3655f6a85b4bea7..27ce34df848299f2bc2dbd4234a825dcf0cb12a1 100644 (file)
@@ -283,7 +283,9 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
                drm_print_hex_dump(&p, "ELD: ", pipe_config->eld,
                                   drm_eld_size(pipe_config->eld));
 
-       drm_printf(&p, "framestart delay: %d, MSA timing delay: %d\n",
+       drm_printf(&p, "vblank delay: %d, framestart delay: %d, MSA timing delay: %d\n",
+                  pipe_config->hw.adjusted_mode.crtc_vblank_start -
+                  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, pipeline full: %d, guardband: %d flipline: %d, vmin vblank: %d, vmax vblank: %d\n",