Repository navigation
drm: apple: do not log a missing EDID source for internal panels - #209
Merged
Merged
Conversation
dcp_get_modes() used to ask for an EDID only once the DCP had announced its AV service. Since the EDID read pins the service itself, it is asked on every mode probe and returns -ENODEV when there is no service. Internal panels never have one, so every mode probe on a laptop now logs "copy_edid failed: -ENODEV" at info level. Treat -ENODEV on a DCP that drives an internal panel as the expected "no EDID" answer and log it at debug level. External outputs, and any other failure, are reported as before, and the EDID read itself is unchanged. Fixes: 5837706 ("drm/apple: pin DP service owners before recycling retired AFK slots") Assisted-by: LLM Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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.
One commit. It removes an info-level message that every mode probe logs on Apple Silicon laptops since #8 was merged.
What
dcp_get_modes()now treats-ENODEVfrom the EDID read, on a DCP that drives an internal panel, as the expected "no EDID" answer. It logs that at debug level.Nothing else changes:
Why
Before 5837706 (merged with #8),
dcp_get_modes()asked for an EDID only once the DCP had announced its AV service. That commit made the EDID read pin the service itself, which is the right call. But the read is now attempted on every mode probe, and it returns-ENODEVwhen there is no service.Internal panels never have an AV service. So on the M2 MacBook Air and the M1 Pro MacBook Pro, every mode probe now logs
copy_edid failed: -ENODEVat info level. The post-merge qualification on both machines found this."Internal panel" uses the driver's existing
dcp_has_panel(), which is true when the device tree describes a panel with a width. A Mac mini's HDMI output, or an external DCP, has no panel node, so it keeps the info message.Fixes: 5837706b10e3 ("drm/apple: pin DP service owners before recycling retired AFK slots")Testing
Hardware-tested on the M2 MacBook Air (J413) and M1 Pro MacBook Pro (J316s), kernel
7.1.12-aurora-fu1-mac+(same composition), compared with the previous kernel: the internal-panelcopy_edid failed: -ENODEVlines are gone (the previous kernel logged three per machine on the same steps), and with dynamic debug enabled a forced re-probe logs exactly one "no EDID source for the panel" debug line, so the path still runs, just quietly. Modeset and backlight unchanged. On the Neo neither message was ever logged, so nothing changes there. External monitors were not attached.aurora-wip.defconfig+asahi.configwith every Apple Silicon driver as a module (16K pages, Rust), which covers the M1/M2 build;arch/arm64/configs/j700-radio.config.aurora-wip(35c7d87921c0).Assisted-by: LLMtrailer-format warning.aurora-wip, with the other follow-up branches, and with open PR drm/apple: support independent dual dock DP streams on J414s #46.Provenance
Written for this PR from the public driver source.
🤖 Generated with Claude Code