Skip to content

Commit 04b6603

Browse files
aknautiyaljnikula
authored andcommitted
drm/i915/display: Configure HDMI2.1 Pcon for FRL only if Src-Ctl mode is available
Add the check if source control mode is supported by the PCON, before starting configuring PCON for FRL training, as per spec VESA DP2.0-HDMI2.1 PCON Draft-1 Sec-7. v2: Added spec details for the change. (Uma) Signed-off-by: Ankit Nautiyal <[email protected]> Reviewed-by: Uma Shankar <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 68a8c64 commit 04b6603

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,8 +2155,13 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
21552155
{
21562156
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
21572157

2158-
/* Always go for FRL training if supported */
2159-
if (!intel_dp_is_hdmi_2_1_sink(intel_dp) ||
2158+
/*
2159+
* Always go for FRL training if:
2160+
* -PCON supports SRC_CTL_MODE (VESA DP2.0-HDMI2.1 PCON Spec Draft-1 Sec-7)
2161+
* -sink is HDMI2.1
2162+
*/
2163+
if (!(intel_dp->dpcd[2] & DP_PCON_SOURCE_CTL_MODE) ||
2164+
!intel_dp_is_hdmi_2_1_sink(intel_dp) ||
21602165
intel_dp->frl.is_trained)
21612166
return;
21622167

0 commit comments

Comments
 (0)