Skip to content

Commit b65cf4b

Browse files
Allen Lialexdeucher
authored andcommitted
drm/amd/display: Add fast sync field in ultra sleep more for DMUB
[Why&How] We need to inform DMUB whether fast sync in ultra sleep mode is supported, so that it can disable desync error detection when the it is not enabled. This helps prevent unexpected desync errors when transitioning out of ultra sleep mode. Add fast sync in ultra sleep mode field in replay copy setting command. Reviewed-by: Robin Chen <robin.chen@amd.com> Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> Signed-off-by: Allen Li <wei-guang.li@amd.com> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 9e5d4a5 commit b65cf4b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ static bool dmub_replay_copy_settings(struct dmub_replay *dmub,
169169
copy_settings_data->max_deviation_line = link->dpcd_caps.pr_info.max_deviation_line;
170170
copy_settings_data->smu_optimizations_en = link->replay_settings.replay_smu_opt_enable;
171171
copy_settings_data->replay_timing_sync_supported = link->replay_settings.config.replay_timing_sync_supported;
172+
copy_settings_data->replay_support_fast_resync_in_ultra_sleep_mode = link->replay_settings.config.replay_support_fast_resync_in_ultra_sleep_mode;
172173

173174
copy_settings_data->debug.bitfields.enable_ips_visual_confirm = dc->dc->debug.enable_ips_visual_confirm;
174175

drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4142,10 +4142,14 @@ struct dmub_cmd_replay_copy_settings_data {
41424142
* @hpo_link_enc_inst: HPO link encoder instance
41434143
*/
41444144
uint8_t hpo_link_enc_inst;
4145+
/**
4146+
* Determines if fast sync in ultra sleep mode is enabled/disabled.
4147+
*/
4148+
uint8_t replay_support_fast_resync_in_ultra_sleep_mode;
41454149
/**
41464150
* @pad: Align structure to 4 byte boundary.
41474151
*/
4148-
uint8_t pad[2];
4152+
uint8_t pad[1];
41494153
};
41504154

41514155

0 commit comments

Comments
 (0)