Skip to content

Commit b12c3cf

Browse files
Harry Wentlandgregkh
authored andcommitted
drm/amd/display: Program VSC SDP colorimetry for all DP sinks >= 1.4
commit 9e61ef8 upstream. In order for display colorimetry to work correctly on DP displays we need to send the VSC SDP packet. We should only do so for panels with DPCD revision greater or equal to 1.4 as older receivers might have problems with it. Cc: [email protected] Cc: Joshua Ashton <[email protected]> Cc: Xaver Hugl <[email protected]> Cc: Melissa Wen <[email protected]> Cc: Agustin Gutierrez <[email protected]> Reviewed-by: Agustin Gutierrez <[email protected]> Acked-by: Hamza Mahfooz <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bd3105a commit b12c3cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6122,7 +6122,9 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
61226122
if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A)
61236123
mod_build_hf_vsif_infopacket(stream, &stream->vsp_infopacket);
61246124

6125-
if (stream->link->psr_settings.psr_feature_enabled || stream->link->replay_settings.replay_feature_enabled) {
6125+
if (stream->signal == SIGNAL_TYPE_DISPLAY_PORT ||
6126+
stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST ||
6127+
stream->signal == SIGNAL_TYPE_EDP) {
61266128
//
61276129
// should decide stream support vsc sdp colorimetry capability
61286130
// before building vsc info packet
@@ -6132,7 +6134,8 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
61326134
stream->use_vsc_sdp_for_colorimetry =
61336135
aconnector->dc_sink->is_vsc_sdp_colorimetry_supported;
61346136
} else {
6135-
if (stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
6137+
if (stream->link->dpcd_caps.dpcd_rev.raw >= 0x14 &&
6138+
stream->link->dpcd_caps.dprx_feature.bits.VSC_SDP_COLORIMETRY_SUPPORTED)
61366139
stream->use_vsc_sdp_for_colorimetry = true;
61376140
}
61386141
if (stream->out_transfer_func->tf == TRANSFER_FUNCTION_GAMMA22)

0 commit comments

Comments
 (0)