Commit d07a5787 authored by Jouni Högander's avatar Jouni Högander
Browse files

drm/i915/display: Do not print "psr: enabled" for on Panel Replay



After setting has_psr for panel replay as well crtc state dump is
improperly printing "psr: enabled" for Panel Replay as well. Fix this by
checking also has_panel_replay.

Fixes: 5afa6e49 ("drm/i915/psr: Set intel_crtc_state->has_psr on panel replay as well")
Signed-off-by: default avatarJouni Högander <jouni.hogander@intel.com>
Reviewed-by: default avatarAnimesh Manna <animesh.manna@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240510093823.3146455-3-jouni.hogander@intel.com
parent 1e52db8a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -252,7 +252,8 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
			   str_enabled_disabled(pipe_config->sdp_split_enable));

		drm_printf(&p, "psr: %s, selective update: %s, panel replay: %s, selective fetch: %s\n",
			   str_enabled_disabled(pipe_config->has_psr),
			   str_enabled_disabled(pipe_config->has_psr &&
						!pipe_config->has_panel_replay),
			   str_enabled_disabled(pipe_config->has_sel_update),
			   str_enabled_disabled(pipe_config->has_panel_replay),
			   str_enabled_disabled(pipe_config->enable_psr2_sel_fetch));