Commit 6df71752 authored by Jack Chang's avatar Jack Chang Committed by Alex Deucher
Browse files

drm/amd/display: Move desync error counter operation up.



[Why & How]
Move desync error counter operation up to prevent
it from being skipped by force disable desync
error.

Reviewed-by: default avatarRobin Chen <robin.chen@amd.com>
Reviewed-by: default avatarAric Cyr <aric.cyr@amd.com>
Signed-off-by: default avatarJack Chang <jack.chang@amd.com>
Signed-off-by: default avatarZaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: default avatarMark Broadworth <mark.broadworth@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7e40f648
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -229,6 +229,10 @@ static void handle_hpd_irq_replay_sink(struct dc_link *link)

		link->replay_settings.config.replay_error_status.raw |= replay_error_status.raw;

		/* Increment desync error counter if a desync error is detected */
		if (replay_configuration.bits.DESYNC_ERROR_STATUS)
			link->replay_settings.replay_desync_error_fail_count++;

		if (link->replay_settings.config.force_disable_desync_error_check)
			return;

@@ -240,9 +244,6 @@ static void handle_hpd_irq_replay_sink(struct dc_link *link)
			&replay_configuration.raw,
			sizeof(replay_configuration.raw));

		/* Update desync error counter */
		link->replay_settings.replay_desync_error_fail_count++;

		/* Acknowledge and clear error bits */
		dm_helpers_dp_write_dpcd(
			link->ctx,