From: jsg Date: Mon, 1 Aug 2022 16:13:29 +0000 (+0000) Subject: drm/amd/display: Don't lock connection_mutex for DMUB HPD X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4d5e5310a7e38ce027aea14aa9829506eb224574;p=openbsd drm/amd/display: Don't lock connection_mutex for DMUB HPD From Nicholas Kazlauskas 760fe32034931a8c97c773edef2f1b7c7346f43a in linux 5.15.y/5.15.58 d82b3266ef88dc10fe0e7031b2bd8ba7eedb7e59 in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 3f732465c08..42648e682b5 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -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); }