]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Ignore Cable ID Feature
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Thu, 20 Oct 2022 15:46:41 +0000 (11:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:27:20 +0000 (09:27 +0100)
[ Upstream commit 14aed119942f6c2f1286022323139f7404db5d2b ]

Ignore cable ID for DP2 receivers that does not support the feature.

Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 3be70848b2020eb0970b5b27c626171fdb36af48..54c76ed1ad751e95afa666ecb376def995e47ccf 100644 (file)
@@ -1549,6 +1549,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
        adev->dm.dc->debug.visual_confirm = amdgpu_dc_visual_confirm;
 
+       /* TODO: Remove after DP2 receiver gets proper support of Cable ID feature */
+       adev->dm.dc->debug.ignore_cable_id = true;
+
        r = dm_dmub_hw_init(adev);
        if (r) {
                DRM_ERROR("DMUB interface failed to initialize: status=%d\n", r);