Commit dd24662d authored by Hersen Wu's avatar Hersen Wu Committed by Alex Deucher
Browse files

drm/amd/display: Return error code on DSC atomic check failure



[Why&How]
We were not returning -EINVAL on DSC atomic check fail. Add it.

Fixes: 71be4b16 ("drm/amd/display: dsc validate fail not pass to atomic check")
Reviewed-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarHersen Wu <hersenxs.wu@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e0cce122
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10170,6 +10170,7 @@ static int amdgpu_dm_atomic_check(struct drm_device *dev,
		ret = compute_mst_dsc_configs_for_state(state, dm_state->context, vars);
		if (ret) {
			DRM_DEBUG_DRIVER("compute_mst_dsc_configs_for_state() failed\n");
			ret = -EINVAL;
			goto fail;
		}

+1 −0
Original line number Diff line number Diff line
@@ -1410,6 +1410,7 @@ int pre_validate_dsc(struct drm_atomic_state *state,
	ret = pre_compute_mst_dsc_configs_for_state(state, local_dc_state, vars);
	if (ret != 0) {
		DRM_INFO_ONCE("pre_compute_mst_dsc_configs_for_state() failed\n");
		ret = -EINVAL;
		goto clean_exit;
	}