https://bugs.kde.org/show_bug.cgi?id=529181
Bug ID: 529181
Summary: After sleep resume one output freezes with "Pageflip
timed out" and never recovers (Intel Arc B580, xe)
Classification: Plasma
Product: kwin
Version First 6.8.2
Reported In:
Platform: Manjaro
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: platform-drm
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 198706
--> https://bugs.kde.org/attachment.cgi?id=198706&action=edit
journal when the problem occurred
DESCRIPTION
Since upgrading from Plasma 6.7.5 to Plasma 6.8.2, an output can freeze within
minutes to hours
after resuming from system sleep (S3 or S4). KWin logs "Pageflip timed out!
This is a bug in the
xe kernel driver" for every frame, the kernel logs "flip_done timed out", and
with tiled/CCS
scanout buffers a large number of display plane faults appear. The affected
monitor stays frozen
until the DRM session is recreated (reboot, or restarting plasma-kwin_wayland).
STEPS TO REPRODUCE
1. Use Plasma Wayland + KWin 6.8.x on the hardware above.
2. Suspend to RAM (systemctl suspend) or hibernate (systemctl hibernate), then
resume.
3. Use the desktop normally.
4. Usually some time after resume, one output freezes. The screen keeps the
last frame (or shows
content with the wrong scale/rotation), KWin starts logging "Pageflip timed
out!" every frame,
the kernel then logs "flip_done timed out" for that CRTC, followed (with
tiled buffers) by
"[PLANE:..] fault (CTL=..., SURF=..., SURFLIVE=...)" lines.
No other specific condition has been found so far; it has occurred during
normal use and at the
login screen.
OBSERVED RESULT
- Exactly one CRTC/plane is affected per episode (pipe A, B and C have all been
seen); the other
outputs keep working.
- The frozen output shows stale or geometrically wrong content (e.g. "another
screen's content,
but with the wrong rotation").
- KWin logs "Pageflip timed out! This is a bug in the xe kernel driver" about
once per second.
- The kernel logs "[CRTC:xxx:pipe X] flip_done timed out" about 5 s after the
first KWin message,
then "handle_plane_fault: N callbacks suppressed" 10 times per 5 s for as
long as the output
stays broken (hundreds of thousands of suppressed callbacks per interval).
- With KWIN_DRM_USE_MODIFIERS=0 (linear scanout buffers) the plane faults
disappear completely,
but the flip still never completes ("flip_done timed out" remains).
- Restarting plasma-kwin_wayland restores the display; the first KWin after
recovery logs several
"Failed to allocate a graphics buffer for a swapchain" lines before it
settles.
- Screenshots taken during the failure are correct;
/sys/kernel/debug/dri/0/state also shows a
correct plane configuration.
- The failure reproduces on kernel 7.2.4, 7.2.14 and 7.3.4.
EXPECTED RESULT
No screen freeze
SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31
Qt Version: 6.12.0
KWin: 6.8.2-2
Mesa: 26.2.7 (also reproduced with 26.2.6)
Kernel: 7.3.4-3-MANJARO (also reproduced with 7.2.4-1 and 7.2.14-1)
Session: Plasma Wayland
Package before now
------------------------------------------------------
kwin 6.7.5-1 6.8.2-2
kscreen 6.7.5-1 6.8.2-1
plasma-workspace 6.7.5-1 6.8.2-1
qt6-base 6.11.2-3 6.12.0-5
mesa 26.2.2-1 26.2.7-1
vulkan-intel 26.2.2-1 26.2.7-1
intel-media-driver 26.2.4-1 26.3.5-1
kernel 7.2.4-1 7.3.4-3
HARDWARE
GPU: Intel Arc B580 (Battlemage G21), PCI 0000:03:00.0, driver "xe" (single
display device)
Outputs (all DisplayPort, all 10 bpc):
DP-1 5120x2880@60, scale 2, rotation normal
DP-2 2560x1440@60, scale 1, rotation 270 deg
DP-3 2560x1440@60, scale 1, rotation 90 deg
Default scanout buffer modifier: I915_FORMAT_MOD_4_TILED_BMG_CCS
(0x100000000000011)
RELATED REPORTS
- #528914 "Since 6.8: ~2.1 s freeze of all outputs with 'Pageflip timed out' at
every session
start / DPMS on (amdgpu...)": same KWin 6.8 page-flip regression area, but
there the flips
complete after ~2.1 s and there are no plane faults. In our case the flip
never completes and
the DRM session has to be recreated.
- #524883 / #525586: KWin crashes in DrmGpu::pageFlipHandler() after resume
(fixed/duplicate) -
same code area, different failure mode (crash vs. hang).
- #503870 "When night color is toggled or adjusted, freezes one monitor and
says ... nvidia-drm
kernel driver" (kwin/core, RESOLVED UPSTREAM, NVIDIA RTX 5070 Ti, three
outputs): same failure
mode - one of three outputs freezes, "Pageflip timed out" repeats once per
second, and only
logging out and back in recovers. Different trigger (night color / colour
management) and
different driver (nvidia-drm). It is not a duplicate, but the end result is
identical: on flip
timeout KWin leaves the output dead until the DRM session is recreated. The
common part may be
the flip-timeout handling in KWin rather than any single GPU driver.
ADDITIONAL INFORMATION
SPECULATION
- With KWIN_DRM_USE_MODIFIERS=0 the plane faults disappear completely while the
flip still never
completes, so the plane-fault storm is an amplifier, not the root cause.
- Screenshots are correct and the plane configuration is correct, so the
composited image is fine;
only the page flip never completes.
LOG EXTRACT (2026-11-20, persistent case, kernel 7.3.4, Mesa 26.2.7)
19:05:28 ACPI: PM: Waking up from system sleep state S4
21:22:14 xe 0000:03:00.0: [drm] *ERROR* [CRTC:152:pipe A] flip_done timed out
21:22:14 xe ... [PLANE:35:plane 1A] fault (CTL=0x82009400, SURF=0xe00000,
SURFLIVE=0xe00000)
21:22:19 handle_plane_fault: 260727 callbacks suppressed
... (every 5 s until 21:23:34)
21:23:17 plasma-kwin_wayland restarted; "Could not delete render time query
because no context
is current"
21:23:27 xe ... flip_done timed out / [CRTC:152:pipe A] commit wait timed out
21:23:37 xe ... flip_done timed out / [PLANE:35:plane 1A] commit wait timed
out
display recovers after KWin has re-created the DRM master.
LOG EXTRACT (2026-11-18, kernel 7.2.4, tiled buffers, persistent case)
19:01:45 ACPI: PM: Waking up from system sleep state S4
21:12:22 kwin_wayland: Pageflip timed out! This is a bug in the xe kernel
driver
21:12:31 xe ... [CRTC:151:pipe A] flip_done timed out
21:12:31 xe ... [PLANE:35:plane 1A] fault (CTL=0x82109400, SURF=0x1800000,
SURFLIVE=0x1800000)
... about 350 fault lines over ~3 minutes ...
21:15:01 logout; 21:15:11 session gone; faults continue at 21:15:16 / 21:15:21
21:15:32 new KWin, new DRM master; faults stop
21:15:42 kwin: "Failed to allocate a graphics buffer for a swapchain" (x23
until 21:15:58)
I can provide full journal excerpts and /sys/kernel/debug/dri/0/state dumps
taken during the
failure, and run debug builds or environment switches on request.
--
You are receiving this mail because:
You are watching all bug changes.