Skip to content

Commit d0ef62b

Browse files
Dennis Chanalexdeucher
authored andcommitted
drm/amd/display: Revise Replay Desync Error IRQ handle
[Why] Current Desync IRQ handler will have some potential do not hit the desync error case. We change to check both desync error HPD and DPCD. Signed-off-by: Dennis Chan <dennis.chan@amd.com> Acked-by: Hersen Wu <hersenxs.wu@amd.com> Reviewed-by: Robin Chen <robin.chen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 77b2c07 commit d0ef62b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dc_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,7 @@ struct replay_config {
10391039
uint32_t debug_flags; // Replay debug flags
10401040
bool replay_timing_sync_supported; // Replay desync is supported
10411041
bool force_disable_desync_error_check; // Replay desync is supported
1042+
bool received_desync_error_hpd; //Replay Received Desync Error HPD.
10421043
union replay_error_status replay_error_status; // Replay error status
10431044
};
10441045

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ static void handle_hpd_irq_replay_sink(struct dc_link *link)
210210
&replay_error_status.raw,
211211
sizeof(replay_error_status.raw));
212212

213+
if (replay_configuration.bits.DESYNC_ERROR_STATUS)
214+
link->replay_settings.config.received_desync_error_hpd = 1;
215+
213216
link->replay_settings.config.replay_error_status.bits.LINK_CRC_ERROR =
214217
replay_error_status.bits.LINK_CRC_ERROR;
215218
link->replay_settings.config.replay_error_status.bits.DESYNC_ERROR =

0 commit comments

Comments
 (0)