Commit d0ef62bd authored by Dennis Chan's avatar Dennis Chan Committed by Alex Deucher
Browse files

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: default avatarDennis Chan <dennis.chan@amd.com>
Acked-by: default avatarHersen Wu <hersenxs.wu@amd.com>
Reviewed-by: default avatarRobin Chen <robin.chen@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 77b2c07d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1039,6 +1039,7 @@ struct replay_config {
	uint32_t debug_flags;                           // Replay debug flags
	bool replay_timing_sync_supported; // Replay desync is supported
	bool force_disable_desync_error_check;             // Replay desync is supported
	bool received_desync_error_hpd; //Replay Received Desync Error HPD.
	union replay_error_status replay_error_status; // Replay error status
};

+3 −0
Original line number Diff line number Diff line
@@ -210,6 +210,9 @@ static void handle_hpd_irq_replay_sink(struct dc_link *link)
		&replay_error_status.raw,
		sizeof(replay_error_status.raw));

	if (replay_configuration.bits.DESYNC_ERROR_STATUS)
		link->replay_settings.config.received_desync_error_hpd = 1;

	link->replay_settings.config.replay_error_status.bits.LINK_CRC_ERROR =
		replay_error_status.bits.LINK_CRC_ERROR;
	link->replay_settings.config.replay_error_status.bits.DESYNC_ERROR =