https://bugs.kde.org/show_bug.cgi?id=529232

            Bug ID: 529232
           Summary: Outputs freeze after monitor wake on amdgpu: driver
                    rejects RA24 (RGBA8888) buffer and KWin never falls
                    back to another format
    Classification: Plasma
           Product: kwin
      Version First 6.8.2
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: platform-drm
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

Created attachment 198739
  --> https://bugs.kde.org/attachment.cgi?id=198739&action=edit
KWin + kernel journal of a failed wake, and one rejected atomic check
(drm.debug=0x16)

SUMMARY
With two monitors on an AMD iGPU, some KWin sessions choose an RGBA8888
("RA24") buffer for an output. amdgpu advertises RA24 on its planes but rejects
it in the atomic check (kernel side:
https://gitlab.freedesktop.org/drm/amd/-/work_items/5339). KWin keeps retrying
with RA24 buffers and never tries another format. The rejected commits include
both outputs, so after a DPMS wake the DP monitor has no signal and the HDMI
monitor stays frozen.

STEPS TO REPRODUCE
1. Connect two monitors to an amdgpu device whose planes advertise RGBA8888.
Here: Raphael iGPU (Radeon 610M), BenQ 1920x1080@60 on HDMI, ASUS 3840x2160@144
on DP (DSC).
2. Log in to Plasma (Wayland). Affected sessions already show a few
"Unsupported screen format RA24" kernel errors at login: journalctl -k -b |
grep -c RA24
3. Let the monitors go to sleep and wake them, or power the DP monitor off and
on again.

OBSERVED RESULT
- After wake: KWin logs "Modeset failed: Invalid argument" and "Applying output
configuration failed: Invalid argument" 30-100 times within 1-2 seconds, then
stops retrying. The DP monitor shows no signal and the HDMI monitor stays
frozen on its last frame. Powering off the DP monitor unfreezes the HDMI one.
- After power-cycling the DP monitor in an affected session: one "Applying
output configuration failed: Invalid argument", then the output is dropped and
no longer listed by kscreen-doctor -o.
- With drm.debug=0x16 during that attempt: 24 atomic test commits, all rejected
by amdgpu with "Unsupported screen format RA24" / "dm_update_plane_state()
failed" (-22). KWin used 9 different framebuffers and several CRTCs, but every
framebuffer was RA24. The stream itself (10 bpc, DSC) validated fine.
- Logging out and back in usually fixes it. Some sessions never hit it.

EXPECTED RESULT
- When the kernel rejects a buffer format in a test commit, KWin falls back to
another format (e.g. XRGB8888, which amdgpu handles).
- A modeset failure on one output doesn't leave the other outputs on the same
GPU frozen.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 44
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Kernel Version: 7.2.15-200.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 32 GB of RAM (30.2 GB usable)
Graphics Processor 1: AMD Ryzen 7 7800X3D 8-Core Processor
Graphics Processor 2: NVIDIA GeForce RTX 3080
Both monitors are on the AMD iGPU (Graphics Processor 1). The RTX 3080 drives
no displays. Mesa 26.2.6.

ADDITIONAL INFORMATION
- Frequency: 5 of the 11 boots since the monitors moved to the iGPU
(2026-11-16). Unaffected sessions log 0-6 RA24 errors in total; affected
sessions log 400-1600.
- The plasma-login greeter KWin (started with KWIN_USE_OVERLAYS=0) hit the same
failure flood right after boot and after a logout, so this isn't limited to
overlay planes.
- The same pattern on Polaris11 with KWin 6.8.2:
https://gitlab.freedesktop.org/drm/amd/-/work_items/6094
- Possibly related: bug 528723.
- KWin 6.8.3 is in Fedora updates but not tested yet. I can attach KWin debug
logs if that would help.
- Attached: KWin and kernel journal from a failed wake (2026-11-21), and an
excerpt of one rejected atomic check with drm.debug=0x16.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to