File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1523,6 +1523,9 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
1523
1523
const struct drm_connector_state * conn_state )
1524
1524
{
1525
1525
struct drm_i915_private * i915 = dp_to_i915 (intel_dp );
1526
+ struct intel_connector * connector =
1527
+ to_intel_connector (conn_state -> connector );
1528
+ struct intel_hdcp * hdcp = & connector -> hdcp ;
1526
1529
1527
1530
if (!CAN_PANEL_REPLAY (intel_dp ))
1528
1531
return false;
@@ -1544,6 +1547,17 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
1544
1547
return false;
1545
1548
}
1546
1549
1550
+ /* HW will not allow Panel Replay on eDP when HDCP enabled */
1551
+ if (conn_state -> content_protection ==
1552
+ DRM_MODE_CONTENT_PROTECTION_DESIRED ||
1553
+ (conn_state -> content_protection ==
1554
+ DRM_MODE_CONTENT_PROTECTION_ENABLED && hdcp -> value ==
1555
+ DRM_MODE_CONTENT_PROTECTION_UNDESIRED )) {
1556
+ drm_dbg_kms (& i915 -> drm ,
1557
+ "Panel Replay is not supported with HDCP\n" );
1558
+ return false;
1559
+ }
1560
+
1547
1561
return true;
1548
1562
}
1549
1563
You can’t perform that action at this time.
0 commit comments