Skip to content

Commit c2850c1

Browse files
Bhawanpreet Lakhaalexdeucher
authored andcommitted
drm/amd/display: Don't try hdcp1.4 when content_type is set to type1
[Why] When content type property is set to 1. We should enable hdcp2.2 and if we cant then stop. Currently the way it works in DC is that if we fail hdcp2, we will try hdcp1 after. [How] Use link config to force disable hdcp1.4 when type1 is set. Signed-off-by: Bhawanpreet Lakha <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 49e78c8 commit c2850c1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,13 @@ void hdcp_update_display(struct hdcp_workqueue *hdcp_work,
192192
&hdcp_work->srm_version);
193193

194194
display->adjust.disable = 0;
195-
if (content_type == DRM_MODE_HDCP_CONTENT_TYPE0)
195+
if (content_type == DRM_MODE_HDCP_CONTENT_TYPE0) {
196+
hdcp_w->link.adjust.hdcp1.disable = 0;
196197
hdcp_w->link.adjust.hdcp2.force_type = MOD_HDCP_FORCE_TYPE_0;
197-
else if (content_type == DRM_MODE_HDCP_CONTENT_TYPE1)
198+
} else if (content_type == DRM_MODE_HDCP_CONTENT_TYPE1) {
199+
hdcp_w->link.adjust.hdcp1.disable = 1;
198200
hdcp_w->link.adjust.hdcp2.force_type = MOD_HDCP_FORCE_TYPE_1;
201+
}
199202

200203
schedule_delayed_work(&hdcp_w->property_validate_dwork,
201204
msecs_to_jiffies(DRM_HDCP_CHECK_PERIOD_MS));
@@ -415,6 +418,7 @@ static void update_config(void *handle, struct cp_psp_stream_config *config)
415418
link->dp.mst_supported = config->mst_supported;
416419
display->adjust.disable = 1;
417420
link->adjust.auth_delay = 2;
421+
link->adjust.hdcp1.disable = 0;
418422

419423
hdcp_update_display(hdcp_work, link_index, aconnector, DRM_MODE_HDCP_CONTENT_TYPE0, false);
420424
}

0 commit comments

Comments
 (0)