Skip to content

Prepare atomic modesetting#179

Merged
kdj0c merged 13 commits intokmscon:mainfrom
kdj0c:prepare_atomic
Jan 5, 2026
Merged

Prepare atomic modesetting#179
kdj0c merged 13 commits intokmscon:mainfrom
kdj0c:prepare_atomic

Conversation

@kdj0c
Copy link
Contributor

@kdj0c kdj0c commented Dec 16, 2025

Refactor the display subsystem, to make implementing Atomic modesetting easier.

@kdj0c kdj0c force-pushed the prepare_atomic branch 2 times, most recently from f67d643 to 05e805e Compare December 17, 2025 14:25
Jocelyn Falempe added 13 commits December 18, 2025 10:09
And remove the parameter from use_display()

Signed-off-by: Jocelyn Falempe <[email protected]>
Depending on the immediate parameter, this function can either do a
page flip, or do a complete modeset.
Split it in two functions for more clarity.

Signed-off-by: Jocelyn Falempe <[email protected]>
Signed-off-by: Jocelyn Falempe <[email protected]>
For drm2d and drm3d, the video device is needed before the drm
display is bound. This can cause issue in some error path.
As a display is always allocated for a video device, set it in the
display_new(), instead of display_bind().

Signed-off-by: Jocelyn Falempe <[email protected]>
No code change, just move the function a bit later.

Signed-off-by: Jocelyn Falempe <[email protected]>
 * Remove display_activate and display_deactivate
 * Add preparefb callback to uterm_drm_shared
 * Clearly separate page flip from modeset

This prepare work to have atomic modesetting

Signed-off-by: Jocelyn Falempe <[email protected]>
Remove the list of modes, and simplify mode handling.

Signed-off-by: Jocelyn Falempe <[email protected]>
This makes init and destroy a bit easier.

Signed-off-by: Jocelyn Falempe <[email protected]>
Move the display mode initialization to its own function, to improve
readability.

Signed-off-by: Jocelyn Falempe <[email protected]>
Otherwise kmscon won't display on it.

Signed-off-by: Jocelyn Falempe <[email protected]>
So it's easier in the logs to see which display is which output.

Signed-off-by: Jocelyn Falempe <[email protected]>
@kdj0c kdj0c merged commit 41b255c into kmscon:main Jan 5, 2026
2 checks passed
@kdj0c kdj0c deleted the prepare_atomic branch January 5, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant