Skip to content

Commit 0bc96a4

Browse files
committed
drm/i915/psr: HW will not allow PR on eDP when HDCP enabled
Take into account in Panel Replay compute config that HW will not allow PR on eDP when HDCP enabled. v2: add debug message to print out why Panel Replay is not possible Signed-off-by: Jouni Högander <[email protected]> Reviewed-by: Animesh Manna <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 397b51e commit 0bc96a4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,6 +1523,9 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
15231523
const struct drm_connector_state *conn_state)
15241524
{
15251525
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;
15261529

15271530
if (!CAN_PANEL_REPLAY(intel_dp))
15281531
return false;
@@ -1544,6 +1547,17 @@ _panel_replay_compute_config(struct intel_dp *intel_dp,
15441547
return false;
15451548
}
15461549

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+
15471561
return true;
15481562
}
15491563

0 commit comments

Comments
 (0)