https://bugs.kde.org/show_bug.cgi?id=528701
Bug ID: 528701
Summary: Login greeter KWin repeatedly fails modeset with
unsupported RGBA8888 (RA24) scanout format on amdgpu,
leaving greeter laggy until a full modeset
Classification: Plasma
Product: kwin
Version First 6.8.2
Reported In:
Platform: CachyOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: platform-drm
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 198355
--> https://bugs.kde.org/attachment.cgi?id=198355&action=edit
jojournalctl -b 0 --since 15:57:20 --until 16:01:10 | grep -v 'UFW BLOCK'
SUMMARY
Sometimes when the system boots, the Plasma Login Manager greeter starts very
laggy and barely responds. KWin is the greeter's compositor here, started by
`plasma-login-kwin_wayland.service` with `KWIN_USE_OVERLAYS=0`. In the first ~3
seconds, KWin tries ~54 modesets. Every one fails because amdgpu rejects a
framebuffer in DRM_FORMAT_RGBA8888 ("RA24"), with ~2,600 kernel errors. After
that, KWin stops retrying and the greeter stays slow and unresponsive.
Pressing Escape on the greeter causes another modeset, which hits the same RA24
errors. All monitors lose signal for a few seconds. When they come back, the
greeter works normally, and logging in and the user session are fine.
This doesn't happen every boot: 1 of the last 5 boots in my journal, with the
same package versions. I've seen the same symptoms several times before that,
but those boots are no longer in the journal.
STEPS TO REPRODUCE
1. Have three monitors on an RX 9070 XT (setup below).
2. Boot to the Plasma Login Manager greeter.
3. Sometimes the greeter comes up laggy or unresponsive.
OBSERVED RESULT
The greeter is laggy. The kernel log fills with `Unsupported screen format
RA24`, and KWin logs `Modeset failed: Invalid argument` / `Applying output
configuration failed: Invalid argument`. Recovering needs a full modeset, which
blanks every display.
EXPECTED RESULT
KWin picks a scanout format the plane actually supports, such as XRGB8888 or
ARGB8888, or falls back to one after the first failed test commit, so the
greeter is smooth from the start.
SOFTWARE/OS VERSIONS
- Linux: CachyOS, kernel 7.3.3-1-cachyos
- KDE Plasma: 6.8.2 (kwin 6.8.2-2.1, plasma-login-manager 6.8.2-1,
plasma-workspace 6.8.2-1.1)
- KDE Frameworks: 6.31.0
- Qt: 6.12.0
- Mesa: 26.2.6; libdrm 2.4.134; linux-firmware-amdgpu 20261019
- Session: Wayland
ADDITIONAL INFORMATION
Hardware:
- dGPU: AMD Radeon RX 9070/9070 XT (Navi 48, Sapphire), amdgpu, 0000:03:00.0.
All monitors are connected here.
- iGPU: AMD Granite Ridge Radeon 610M, amdgpu, 0000:10:00.0. No monitors
connected.
- Outputs, all on card1 (dGPU):
- DP-1: 2560x1440 @ 144 Hz, VRR automatic, HDR off
- HDMI-A-2: 1920x1080 @ 120 Hz
- DP-2: 1920x1080 @ 100 Hz, rotated 270° (portrait)
- All outputs: 8–16 bpc "automatic", color profile sRGB, "prefer accuracy"
Journal excerpt from the affected boot, greeter KWin PID 1008:
```
15:57:22.249751 kwin_wayland[1008]: KWIN environment variables:
QList("KWIN_USE_OVERLAYS=0")
15:57:22.290676 kwin_wayland[1008]: No backend specified, automatically
choosing drm
15:57:22.796244 kernel: amdgpu 0000:03:00.0: [drm] *ERROR* Unsupported screen
format RA24 little-endian (0x34324152)
15:57:22.796364 kernel: amdgpu 0000:03:00.0: [drm] *ERROR* Unsupported screen
format RA24 little-endian (0x34324152)
15:57:22.798579 kwin_wayland[1008]: Modeset failed: Invalid argument
15:57:22.857850 kwin_wayland[1008]: Applying output configuration failed:
Invalid argument
15:57:22.859586 kwin_wayland[1008]: Modeset failed: Invalid argument
... (repeats every ~40 ms) ...
15:57:24.961629 kwin_wayland[1008]: Applying output configuration failed:
Invalid argument
15:57:24.963972 kwin_wayland[1008]: Modeset failed: Invalid argument
15:57:25.003475 kwin_wayland[1008]: Applying output configuration failed:
Invalid argument
-- greeter now laggy; no further retries --
16:00:45.697169 kernel: amdgpu 0000:03:00.0: [drm] *ERROR* Unsupported screen
format RA24 little-endian (0x34324152)
16:00:52.362024 kwin_wayland[1008]: KWin::LayerShellV1Window doesn't support
setting maximized state <- Escape pressed
16:01:02.351185 kernel: amdgpu 0000:03:00.0: [drm] *ERROR* Unsupported screen
format RA24 little-endian (0x34324152)
... (9 more) ...
-- all monitors blank for a few seconds, then greeter works normally --
```
Totals for this boot: 2,611 `Unsupported screen format RA24` kernel errors
(2,601 of them at 15:57), and 54 `Modeset failed` plus 54 `Applying output
configuration failed` from KWin. The 4 earlier boots in the journal, with
identical package versions, have no RA24 errors.
Possibly relevant: the error comes from amdgpu_dm's framebuffer format check,
so the commit gets as far as the driver with an RGBA8888 buffer. That points to
either KWin choosing a format the primary plane can't scan out, or amdgpu
advertising RGBA8888 in IN_FORMATS without supporting it. Because this is
intermittent, I suspect a startup race, for example in format negotiation or
EGL config selection, possibly made worse by the rotated portrait output or
`KWIN_USE_OVERLAYS=0`.
--
You are receiving this mail because:
You are watching all bug changes.