Skip to content

Commit 78aca9e

Browse files
Harry Wentlandalexdeucher
authored andcommitted
Revert "drm/amd/display: Fix sending VSC (+ colorimetry) packets for DP/eDP displays without PSR"
This causes flicker on a bunch of eDP panels. The info_packet code also caused regressions on other OSes that we haven't' seen on Linux yet, but that is likely due to the fact that we haven't had a chance to test those environments on Linux. We'll need to revisit this. This reverts commit 202260f. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3207 Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3151 Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 1210e2f commit 78aca9e

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6305,9 +6305,8 @@ create_stream_for_sink(struct drm_connector *connector,
63056305

63066306
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
63076307
mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket);
6308-
else if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||
6309-
stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||
6310-
stream->signal == SIGNAL_TYPE_EDP) {
6308+
6309+
if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) {
63116310
//
63126311
// should decide stream support vsc sdp colorimetry capability
63136312
// before building vsc info packet
@@ -6323,9 +6322,8 @@ create_stream_for_sink(struct drm_connector *connector,
63236322
if (stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22)
63246323
tf = TRANSFER_FUNC_GAMMA_22;
63256324
mod_build_vsc_infopacket(stream, &stream->vsc_infopacket, stream->output_color_space, tf);
6325+
aconnector->psr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;
63266326

6327-
if (stream->link->psr_settings.psr_feature_enabled)
6328-
aconnector->psr_skip_count = AMDGPU_DM_PSR_ENTRY_DELAY;
63296327
}
63306328
finish:
63316329
dc_sink_release(sink);

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,12 @@ void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
147147
}
148148

149149
/* VSC packet set to 4 for PSR-SU, or 2 for PSR1 */
150-
if (stream->link->psr_settings.psr_feature_enabled) {
151-
if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
152-
vsc_packet_revision = vsc_packet_rev4;
153-
else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
154-
vsc_packet_revision = vsc_packet_rev2;
155-
}
156-
157-
if (stream->link->replay_settings.config.replay_supported)
150+
if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_SU_1)
151+
vsc_packet_revision = vsc_packet_rev4;
152+
else if (stream->link->replay_settings.config.replay_supported)
158153
vsc_packet_revision = vsc_packet_rev4;
154+
else if (stream->link->psr_settings.psr_version == DC_PSR_VERSION_1)
155+
vsc_packet_revision = vsc_packet_rev2;
159156

160157
/* Update to revision 5 for extended colorimetry support */
161158
if (stream->use_vsc_sdp_for_colorimetry)

0 commit comments

Comments
 (0)