Commit d85212e1 authored by Aurabindo Pillai's avatar Aurabindo Pillai Committed by Alex Deucher
Browse files

drm/amd/display: downgrade HDMI infoframe error to one time warning



In certain config, a modeprobe test triggers too many instances of the
error related to infoframe. Make it print only once, and also make it a
warning.

Fixes: 6027cbee ("drm/amd/display: Add error check for avi and vendor infoframe setup function")
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: default avatarChengjun Yao <Chengjun.Yao@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7295e00d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6469,13 +6469,13 @@ static void fill_stream_properties_from_drm_display_mode(
							       (struct drm_connector *)connector,
							       mode_in);
		if (err < 0)
			drm_err(connector->dev, "Failed to setup avi infoframe: %zd\n", err);
			drm_warn_once(connector->dev, "Failed to setup avi infoframe on connector %s: %zd \n", connector->name, err);
		timing_out->vic = avi_frame.video_code;
		err = drm_hdmi_vendor_infoframe_from_display_mode(&hv_frame,
								  (struct drm_connector *)connector,
								  mode_in);
		if (err < 0)
			drm_err(connector->dev, "Failed to setup vendor infoframe: %zd\n", err);
			drm_warn_once(connector->dev, "Failed to setup vendor infoframe on connector %s: %zd \n", connector->name, err);
		timing_out->hdmi_vic = hv_frame.vic;
	}