KWin reconnect: keep fallback on dmabuf import failure and harden producer error transitions - #78
Closed
superturtlee with Copilot wants to merge 8 commits into
Closed
KWin reconnect: keep fallback on dmabuf import failure and harden producer error transitions#78superturtlee with Copilot wants to merge 8 commits into
superturtlee with Copilot wants to merge 8 commits into
Conversation
Co-authored-by: superturtlee <160681686+superturtlee@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix KWin high-CPU loop after Anland consumer resize/reconnect
KWin reconnect: keep fallback on dmabuf import failure and harden producer error transitions
Sep 7, 2026
superturtlee
force-pushed
the
copilot/fix-kwin-high-cpu-loop
branch
from
September 8, 2026 09:46
b69cdd5 to
79eb980
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KWin could leave fallback and resume rendering after consumer reconnect even when dmabuf import failed, creating a split state (
fallback=false+ zero imported buffers) that can sustain high CPU. This change makes reconnect/import atomic and ensures transport failures consistently re-enter fallback.Reconnect transaction is now commit-on-success
AnlandBackend::onReconnectTimer(), dmabuf import is attempted before publishing connected state.Producer-side generation rejection API
reject_consumer_resources(display_ctx*)todisplay_producerand used it from the backend on import failure.Transport failure handling tightened
trigger_refresh()now handlessendmsg()failure/short-send by entering fallback and returning error.poll_input_event(),poll_input_event_extend_fds(), andpoll_input_event_extend_data()now enter fallback on receive failures / invalid framing paths that previously returned errors without guaranteed fallback transition.