Skip to content

Commit 39ad51c

Browse files
Dennis Chanalexdeucher
authored andcommitted
drm/amd/display: Introduce flag for disabling Replay desync recovery
[why] It's useful to disable the recovery mechanism when debugging replay desync errors. 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 85de32c commit 39ad51c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,8 @@ struct replay_config {
10371037
bool replay_smu_opt_supported; // SMU optimization is supported
10381038
unsigned int replay_enable_option; // Replay enablement option
10391039
uint32_t debug_flags; // Replay debug flags
1040-
bool replay_timing_sync_supported; // Replay desync is supported
1040+
bool replay_timing_sync_supported; // Replay desync is supported
1041+
bool force_disable_desync_error_check; // Replay desync is supported
10411042
union replay_error_status replay_error_status; // Replay error status
10421043
};
10431044

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
@@ -190,6 +190,9 @@ static bool handle_hpd_irq_replay_sink(struct dc_link *link)
190190
/*AMD Replay version reuse DP_PSR_ERROR_STATUS for REPLAY_ERROR status.*/
191191
union psr_error_status replay_error_status;
192192

193+
if (link->replay_settings.config.force_disable_desync_error_check)
194+
return true;
195+
193196
if (!link->replay_settings.replay_feature_enabled)
194197
return false;
195198

0 commit comments

Comments
 (0)