diff options
author | 2024-12-16 15:02:08 +0800 | |
---|---|---|
committer | 2025-01-10 11:59:37 -0500 | |
commit | 7d8a4bffe5d1b9bb4fcba3fce0d2ccfb22c2cfca (patch) | |
tree | 44b1569ca5da5fa40ad1cdf072d0347ff40bc8ff /drivers/gpu/drm/amd/display/modules/power/power_helpers.c | |
parent | drm/amd/display: Log Hard Min Clocks and Phantom Pipe Status (diff) | |
download | wireguard-linux-7d8a4bffe5d1b9bb4fcba3fce0d2ccfb22c2cfca.tar.xz wireguard-linux-7d8a4bffe5d1b9bb4fcba3fce0d2ccfb22c2cfca.zip |
drm/amd/display: Add replay desync error count tracking and reset functionality
[Why & How]
Build-up get/reset desync error count interface and implement the functions.
Reviewed-by: ChunTao Tso <chuntao.tso@amd.com>
Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: Jack Chang <jack.chang@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/power/power_helpers.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c index 95838c7ab054..f4b86a63f25d 100644 --- a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c +++ b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c @@ -1039,3 +1039,8 @@ bool fill_custom_backlight_caps(unsigned int config_no, struct dm_acpi_atif_back memcpy(caps->data_points, custom_backlight_profiles[config_no].data_points, data_points_size); return true; } + +void reset_replay_dsync_error_count(struct dc_link *link) +{ + link->replay_settings.replay_desync_error_fail_count = 0; +} |