drm/amd/display: Fix allocate_mst_payload assert on resume
authorjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 09:53:32 +0000 (09:53 +0000)
committerjsg <jsg@openbsd.org>
Thu, 21 Apr 2022 09:53:32 +0000 (09:53 +0000)
From Roman Li
6a03581ccffa571bfa1a9f3a097e1a4d7164fd2d in linux 5.15.y/5.15.35
f4346fb3edf7720db3f7f5e1cab1f667cd024280 in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 6d36599..01b189e 100644 (file)
@@ -2298,7 +2298,8 @@ static int dm_resume(void *handle)
                 * this is the case when traversing through already created
                 * MST connectors, should be skipped
                 */
-               if (aconnector->mst_port)
+               if (aconnector->dc_link &&
+                   aconnector->dc_link->type == dc_connection_mst_branch)
                        continue;
 
                mutex_lock(&aconnector->hpd_lock);