Bug 511158 - KWin/Wayland 6.5.0: DisplayPort monitor freezes on HDMI or Thunderbolt hot-plug, amdgpu "Mode Validation Warning" in logs
Summary: KWin/Wayland 6.5.0: DisplayPort monitor freezes on HDMI or Thunderbolt hot-pl...
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (other bugs)
Version First Reported In: 6.5.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-26 13:56 UTC by Rain Mitchell
Modified: 2025-12-21 03:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
This is the full output of running journalctl (12.19 KB, text/plain)
2025-10-26 13:56 UTC, Rain Mitchell
Details
Plasma Kwin Wayland Boot journalctl output (10.35 KB, text/plain)
2025-11-08 11:24 UTC, Rain Mitchell
Details
DRM debug info (402.40 KB, application/gzip)
2025-11-08 11:25 UTC, Rain Mitchell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rain Mitchell 2025-10-26 13:56:40 UTC
Created attachment 186189 [details]
This is the full output of running journalctl

SUMMARY
KWin/Wayland 6.5.0: DisplayPort monitor freezes on HDMI or Thunderbolt hot-plug, amdgpu "Mode Validation Warning" in logs


STEPS TO REPRODUCE
1. Start a Plasma (Wayland) session on a computer with an AMD Ryzen 5 7430u (Renoir graphics).
2. Use a single monitor connected via DisplayPort (e.g., 3440x1440 @ 120Hz).
3. Once the desktop is active, hot-plug a second monitor into the HDMI port.

OBSERVED RESULT
The primary DisplayPort monitor freezes after a moment. The image is static and does not update. The newly connected HDMI monitor does not receive a signal (remains black).
The system itself does not crash (e.g., the mouse cursor can still move, but its image is not updated on the frozen screen). Unplugging the HMDI or thunderbolt cable returns everything to normal on the DisplayPort connection.
The kernel log (journalctl -k -b -1 | grep -iE "(amdgpu|drm|kwin|error|failed)") shows the following error spammed at the moment of the hot-plug: amdgpu 0000:05:00.0: [drm] Mode Validation Warning: Total vertical active bandwidth failed validation.


EXPECTED RESULT
Both monitors should become active. The Plasma desktop should extend or mirror to the newly connected HDMI or Thunderbolt monitor, and the primary DisplayPort monitor should remain responsive.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux running 6.17.5.arch1-1
KDE Plasma Version: 6.5.0
KDE Frameworks Version: 6.19.0
Qt Version: 6.10.0

ADDITIONAL INFORMATION
1. This is a Wayland-Specific issue: This bug ONLY occurs in the Plasma (Wayland) session. The exact same hot-plug procedure in a Plasma (X11) session works perfectly every time.

2. As far as I can tell, this is not a new kernel issue: This bug was tested and confirmed on two different kernels:

    linux (mainline): 6.17.5-arch1-1

    linux-lts (Long-Term Support)

The behavior is identical on both kernels.

3. Hardware:

    Machine: Blackview MP100 mini pc

    CPU/APU: AMD Ryzen 5 7430u with Radeon Graphics (Renoir)

4. KWin Support Information:

Version
=======
KWin version: 6.5.0
Qt Version: 6.10.0
Qt compile version: 6.10.0
XCB compile version: 1.17.0

Operation Mode: Wayland

Output backend
==============
Name: DRM
Atomic Mode Setting on GPU 0: true

Screens
=======
Number of Screens: 1

Screen 0:
---------
Name: DP-1
Enabled: 1
Geometry: 0,0,3440x1440
Physical size: 797x334mm
Scale: 1
Refresh Rate: 120000
Adaptive Sync: never

Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.64, 6.17.5-arch1-1)
OpenGL version string: 4.6 (Core Profile) Mesa 25.2.5-arch1.2
OpenGL platform interface: EGL
OpenGL shading language version string: 4.60
Driver: Unknown
GPU class: Unknown
OpenGL version: 4.6
GLSL version: 4.60
Mesa version: 25.2.5
X server version: 1.24.1
Linux kernel version: 6.17.5
Direct rendering: Requires strict binding: no
Virtual Machine:  no
OpenGL 2 Shaders are used
Comment 1 Zamundaaa 2025-11-05 13:19:21 UTC
Please verify that it's still an issue in 6.5.2, we found and fixed a regression in regard to bandwidth limits, which might be relevant. If it still happens,
- attach the output of "journalctl --user-unit plasma-kwin_wayland --boot 0" after reproducing the problem
- follow https://invent.kde.org/plasma/kwin/-/wikis/Debugging/Debugging-DRM-issues to get a drm debug log of the issue
Comment 2 Rain Mitchell 2025-11-08 11:24:23 UTC
Created attachment 186609 [details]
Plasma Kwin Wayland Boot journalctl output

This is the output of running journalctl --user-unit plasma-kwin_wayland --boot 0
Comment 3 Rain Mitchell 2025-11-08 11:25:53 UTC
Created attachment 186610 [details]
DRM debug info

This is the output of running the DRM debug commands
Comment 4 Rain Mitchell 2025-11-08 11:29:41 UTC
(In reply to Zamundaaa from comment #1)
> Please verify that it's still an issue in 6.5.2, we found and fixed a
> regression in regard to bandwidth limits, which might be relevant. If it
> still happens,
> - attach the output of "journalctl --user-unit plasma-kwin_wayland --boot 0"
> after reproducing the problem
> - follow
> https://invent.kde.org/plasma/kwin/-/wikis/Debugging/Debugging-DRM-issues to
> get a drm debug log of the issue

Sorry for the delay, I had to wait for the the latest version in Arch.
Unfortunately upgrading to 6.5.2 did not resolve the issue.
I think it may be useful to bring up that it works perfectly fine using the Gnome desktop, so it isn't an AMD driver issue AFAIK.

I've added the requested information.
Please let me know if you need anything else.
Comment 5 Rain Mitchell 2025-11-20 20:02:32 UTC
I'm not sure if I'm supposed to change the status back to reported? I think I am
Comment 6 Zamundaaa 2025-11-21 15:41:42 UTC
Alright, so bandwidth is the problem:
 
[  129.170690] amdgpu 0000:05:00.0: [drm] Mode Validation Warning: Total vertical active bandwidth failed validation.
[  129.170693] amdgpu 0000:05:00.0: [drm:amdgpu_dm_atomic_check [amdgpu]] DC global validation failure: The operation is not supported. (24)
[  129.170881] [drm:sdma_v4_0_process_trap_irq [amdgpu]] IH: SDMA trap
[  129.170915] amdgpu 0000:05:00.0: [drm:amdgpu_dm_atomic_check [amdgpu]] Atomic check failed with err: -22

Afaik "Total vertical active bandwidth" refers to the GPU side and not the cable/display, so the format+modifier changes should've helped.
Does limiting color resolution on either display help? Also, which "color accuracy" setting are you using?


About the DisplayPort screen freezing after this happens, from the log it seems like KWin continues to present new frames just fine, so that bit might actually be a driver bug.
Comment 7 Bug Janitor Service 2025-12-06 03:46:01 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-12-21 03:46:27 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.