Currently, VRR is not implmented for DP branch devices.
So skip sending AS SDP for them.

Signed-off-by: Ankit Nautiyal <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c 
b/drivers/gpu/drm/i915/display/intel_dp.c
index 41908f68ffba..17af68a1a9e5 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -3130,6 +3130,12 @@ static bool intel_dp_can_use_as_sdp(struct intel_dp 
*intel_dp,
        if (!intel_dp->as_sdp_supported)
                return false;
 
+       /*
+        * #TODO Implement AS SDP for DP branch device.
+        */
+       if (drm_dp_is_branch(intel_dp->dpcd))
+               return false;
+
        return crtc_state->vrr.enable;
 }
 
-- 
2.45.2

Reply via email to