Skip to content

Commit 6df7175

Browse files
Jack Changalexdeucher
authored andcommitted
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: Robin Chen <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Signed-off-by: Jack Chang <[email protected]> Signed-off-by: Zaeem Mohamed <[email protected]> Tested-by: Mark Broadworth <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 7e40f64 commit 6df7175

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_irq_handler.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ static void handle_hpd_irq_replay_sink(struct dc_link *link)
229229

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

232+
/* Increment desync error counter if a desync error is detected */
233+
if (replay_configuration.bits.DESYNC_ERROR_STATUS)
234+
link->replay_settings.replay_desync_error_fail_count++;
235+
232236
if (link->replay_settings.config.force_disable_desync_error_check)
233237
return;
234238

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

243-
/* Update desync error counter */
244-
link->replay_settings.replay_desync_error_fail_count++;
245-
246247
/* Acknowledge and clear error bits */
247248
dm_helpers_dp_write_dpcd(
248249
link->ctx,

0 commit comments

Comments
 (0)