diff options
author | Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> | 2020-11-17 15:25:48 -0500 |
---|---|---|
committer | Tianci.Yin <tianci.yin@amd.com> | 2020-12-07 14:16:22 +0800 |
commit | a3950d94b046fb206e58fd3ec717f071c0203ba3 (patch) | |
tree | c1f99b1ce20c06198a9d12831d682c2d5b920867 | |
parent | 0b3b40d0d501449cd28ee6a57a58ed0807e9d22f (diff) |
drm/amd/display: Avoid HDCP initialization in devices without outputamd-20.45
The HDCP feature requires at least one connector attached to the device;
however, some GPUs do not have a physical output, making the HDCP
initialization irrelevant. This patch disables HDCP initialization when
the graphic card does not have output.
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 1fff30669c4b..1f803f069706 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -1004,7 +1004,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) amdgpu_dm_init_color_mod(); #ifdef CONFIG_DRM_AMD_DC_HDCP - if (adev->asic_type >= CHIP_RAVEN) { + if (adev->dm.dc->caps.max_links > 0 && adev->asic_type >= CHIP_RAVEN) { adev->dm.hdcp_workqueue = hdcp_create_workqueue(adev, &init_params.cp_psp, adev->dm.dc); if (!adev->dm.hdcp_workqueue) |