Skip to content

Commit a34fc1b

Browse files
committed
drm/radeon: reintroduce radeon_dp_work_func content
Put back the radeon_dp_work_func logic. It seems that handling DP RX interrupts is necessary to make some panels work. This was removed with the MST support, but it regresses some systems so add it back. While we are here, add the proper mutex locking. Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2567 Fixes: 01ad1d9 ("drm/radeon: Drop legacy MST support") Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Lyude Paul <lyude@redhat.com> Cc: stable@vger.kernel.org
1 parent 7fc602d commit a34fc1b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/gpu/drm/radeon/radeon_irq_kms.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ static void radeon_hotplug_work_func(struct work_struct *work)
9999

100100
static void radeon_dp_work_func(struct work_struct *work)
101101
{
102+
struct radeon_device *rdev = container_of(work, struct radeon_device,
103+
dp_work);
104+
struct drm_device *dev = rdev->ddev;
105+
struct drm_mode_config *mode_config = &dev->mode_config;
106+
struct drm_connector *connector;
107+
108+
mutex_lock(&mode_config->mutex);
109+
list_for_each_entry(connector, &mode_config->connector_list, head)
110+
radeon_connector_hotplug(connector);
111+
mutex_unlock(&mode_config->mutex);
102112
}
103113

104114
/**

0 commit comments

Comments
 (0)