Commit 3451021a authored by Ivan Lipski's avatar Ivan Lipski Committed by Alex Deucher
Browse files

drm/amd/display: Enable DTM v3 on dGPUs with DCN 3.1+



[Why&How]
Right now, only selected APUs have enabled DTM v3, which allows to use
newer firmware for content protection.

We want to enable it on the dGPUs starting with DCN 3.2

Reviewed-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: default avatarIvan Lipski <ivan.lipski@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent f082daf0
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -771,11 +771,15 @@ struct hdcp_workqueue *hdcp_create_workqueue(struct amdgpu_device *adev,
		if (dc->ctx->dce_version == DCN_VERSION_3_1  ||
		    dc->ctx->dce_version == DCN_VERSION_3_14 ||
		    dc->ctx->dce_version == DCN_VERSION_3_15 ||
		    dc->ctx->dce_version == DCN_VERSION_3_16 ||
		    dc->ctx->dce_version == DCN_VERSION_3_2  ||
		    dc->ctx->dce_version == DCN_VERSION_3_21 ||
		    dc->ctx->dce_version == DCN_VERSION_3_5  ||
		    dc->ctx->dce_version == DCN_VERSION_3_51 ||
		    dc->ctx->dce_version == DCN_VERSION_3_6  ||
		    dc->ctx->dce_version == DCN_VERSION_3_16)
		    dc->ctx->dce_version == DCN_VERSION_4_01)
			config->psp.caps.dtm_v3_supported = 1;

		config->ddc.handle = dc_get_link_at_index(dc, i);

		ddc_funcs->write_i2c = lp_write_i2c;