amdgpu_device_resume() sent a device-wide hotplug for every DC resume in addition to the event from dm_resume(). Drop that DC path so a resume reports a hotplug only when dm_resume() sees a sink change.
Signed-off-by: Jyotiranjan Bhuyan <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Christian König <[email protected]> --- Patch 2 of the v2 series. This hunk was part of v1 and is split out here: https://lists.freedesktop.org/archives/amd-gfx/2026-October/155562.html drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index b24ccdd958a7..f070b713ce4f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -4778,10 +4778,13 @@ int amdgpu_device_resume(struct drm_device *dev, bool notify_clients) #ifdef CONFIG_PM dev->dev->power.disable_depth++; #endif + /* + * Display Core detects sink changes and sends any required + * hotplug event from dm_resume(). Avoid sending a duplicate + * event here. + */ if (!adev->dc_enabled) drm_helper_hpd_irq_event(dev); - else - drm_kms_helper_hotplug_event(dev); #ifdef CONFIG_PM dev->dev->power.disable_depth--; #endif -- 2.43.0
