Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drm/atomic: Better logging for atomic requests #1635

Merged
merged 4 commits into from
Jan 14, 2025
Merged

Conversation

Drakulix
Copy link
Member

Invalid screen configuration issues are rare these days, but decrypting them from logs is very cumbersome whenever they occur. This is mostly due to the property handles not having any meaning, if you don't have the property mapping.

So we do log the mapping now as well.

Additionally in debug mode we construct the whole request differently to give us actually nice output. We need a bunch of collections to do so, so this is inefficient enough to only do in debug builds, long term it might be better to find a solution how to deconstruct drm-rs's AtomicModeReq. But for now this should be a significant improvement.

@Drakulix Drakulix requested a review from cmeissl January 13, 2025 18:43
Copy link
Collaborator

@cmeissl cmeissl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea why we had &dyn Iterator here, but imo this is the perfect opportunity to get rid of it.

src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
src/backend/drm/surface/atomic.rs Outdated Show resolved Hide resolved
Copy link
Member Author

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDIT: wrong text input...

@Drakulix Drakulix requested a review from cmeissl January 13, 2025 22:06
Copy link
Collaborator

@cmeissl cmeissl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Drakulix Drakulix merged commit 1ceba66 into master Jan 14, 2025
13 checks passed
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.

2 participants