drm/amd/display: Don't lock connection_mutex for DMUB HPD
authorjsg <jsg@openbsd.org>
Mon, 1 Aug 2022 16:13:29 +0000 (16:13 +0000)
committerjsg <jsg@openbsd.org>
Mon, 1 Aug 2022 16:13:29 +0000 (16:13 +0000)
From Nicholas Kazlauskas
760fe32034931a8c97c773edef2f1b7c7346f43a in linux 5.15.y/5.15.58
d82b3266ef88dc10fe0e7031b2bd8ba7eedb7e59 in mainline linux

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

index 3f73246..42648e6 100644 (file)
@@ -668,10 +668,7 @@ void dmub_hpd_callback(struct amdgpu_device *adev, struct dmub_notification *not
                return;
        }
 
-       drm_modeset_lock(&dev->mode_config.connection_mutex, NULL);
-
        link_index = notify->link_index;
-
        link = adev->dm.dc->links[link_index];
 
        drm_connector_list_iter_begin(dev, &iter);
@@ -684,7 +681,6 @@ void dmub_hpd_callback(struct amdgpu_device *adev, struct dmub_notification *not
                }
        }
        drm_connector_list_iter_end(&iter);
-       drm_modeset_unlock(&dev->mode_config.connection_mutex);
 
 }