Skip to content

Commit 81a7be7

Browse files
Bhawanpreet Lakhaalexdeucher
authored andcommitted
drm/amd/display: Update adaptive sync infopackets for replay
Update infopackets for replay Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 7fc4ccf commit 81a7be7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6045,7 +6045,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
60456045
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
60466046
mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket);
60476047

6048-
if (stream->link->psr_settings.psr_feature_enabled) {
6048+
if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) {
60496049
//
60506050
// should decide stream support vsc sdp colorimetry capability
60516051
// before building vsc info packet
@@ -7785,7 +7785,7 @@ static void update_freesync_state_on_stream(
77857785

77867786
aconn = (struct amdgpu_dm_connector *)new_stream->dm_stream_context;
77877787

7788-
if (aconn && aconn->as_type == FREESYNC_TYPE_PCON_IN_WHITELIST) {
7788+
if (aconn && (aconn->as_type == FREESYNC_TYPE_PCON_IN_WHITELIST || aconn->vsdb_info.replay_mode)) {
77897789
pack_sdp_v1_3 = aconn->pack_sdp_v1_3;
77907790

77917791
if (aconn->vsdb_info.amd_vsdb_version == 1)

drivers/gpu/drm/amd/display/modules/info_packet/info_packet.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
149149
/* VSC packet set to 4 for PSR-SU, or 2 for PSR1 */
150150
if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
151151
vsc_packet_revision = vsc_packet_rev4;
152+
else if (stream->link->replay_settings.config.replay_supported)
153+
vsc_packet_revision = vsc_packet_rev4;
152154
else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
153155
vsc_packet_revision = vsc_packet_rev2;
154156

@@ -536,6 +538,9 @@ void mod_build_adaptive_sync_infopacket(const struct dc_stream_state *stream,
536538
case FREESYNC_TYPE_PCON_IN_WHITELIST:
537539
mod_build_adaptive_sync_infopacket_v1(info_packet);
538540
break;
541+
case ADAPTIVE_SYNC_TYPE_EDP:
542+
mod_build_adaptive_sync_infopacket_v1(info_packet);
543+
break;
539544
case ADAPTIVE_SYNC_TYPE_NONE:
540545
case FREESYNC_TYPE_PCON_NOT_IN_WHITELIST:
541546
default:

0 commit comments

Comments
 (0)