drm/amd/display: Disable virtual links
authorStylon Wang <stylon.wang@amd.com>
Thu, 5 Oct 2023 12:25:10 +0000 (20:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 21:01:15 +0000 (17:01 -0400)
[Why]
This could work around the issue with DP tunneling producing
a NULL pointer dereference.

[How]
Disable the virtual links.

Reviewed-by: Tom Chung <chiahsuan.chung@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index c12dfe7acb3e235618ef79c21ae29e66ae263c36..c9a272d960a12698d94111fd3192f0ced6d7e68b 100644 (file)
@@ -1713,7 +1713,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
 
        /* Enable DWB for tested platforms only */
        if (adev->ip_versions[DCE_HWIP][0] >= IP_VERSION(3, 0, 0))
-               init_data.num_virtual_links = 1;
+               init_data.num_virtual_links = 0;
 
        INIT_LIST_HEAD(&adev->dm.da_list);