Skip to content

Commit b912ec4

Browse files
vsyrjalalutzbichler
authored andcommitted
drm/i915: Include the scanline offset in the state dump
When looking at raw hardware scanline numbers it's helpful to remember what the offset between the hardware values and our more human readable numbers should be. Include that in the state dump. 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 99a8c53 commit b912ec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "intel_crtc_state_dump.h"
1111
#include "intel_display_types.h"
1212
#include "intel_hdmi.h"
13+
#include "intel_vblank.h"
1314
#include "intel_vdsc.h"
1415
#include "intel_vrr.h"
1516

@@ -283,6 +284,9 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
283284
drm_print_hex_dump(&p, "ELD: ", pipe_config->eld,
284285
drm_eld_size(pipe_config->eld));
285286

287+
drm_printf(&p, "scanline offset: %d\n",
288+
intel_crtc_scanline_offset(pipe_config));
289+
286290
drm_printf(&p, "vblank delay: %d, framestart delay: %d, MSA timing delay: %d\n",
287291
pipe_config->hw.adjusted_mode.crtc_vblank_start -
288292
pipe_config->hw.adjusted_mode.crtc_vdisplay,

0 commit comments

Comments
 (0)