Skip to content

drm: apple: do not log a missing EDID source for internal panels - #209

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
fix/dcp-panel-edid-quiet
Oct 8, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
fix/dcp-panel-edid-quiet

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

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 -ENODEV from 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:

  • external outputs, and every other failure, are still logged at info level;
  • the EDID read itself is unchanged.

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 -ENODEV when 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: -ENODEV at 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-panel copy_edid failed: -ENODEV lines 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.

  • KUnit, the Apple DCP suites under QEMU: 29/29 on this branch, the same as aurora-wip.
  • Builds, W=1 on the touched directories, then a full Image + modules + dtbs, on two configurations:
    • arm64 defconfig + asahi.config with every Apple Silicon driver as a module (16K pages, Rust), which covers the M1/M2 build;
    • the J700 configuration with arch/arm64/configs/j700-radio.config.
  • J700: on the J700, H17P firmware skips this EDID path entirely, so the J700 build is unaffected.
  • Warnings: both builds pass with no new warnings compared with aurora-wip (35c7d87921c0).
  • checkpatch --strict: clean, apart from the project's Assisted-by: LLM trailer-format warning.
  • Merge check: merges cleanly with 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

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>
@RyanTheTide
RyanTheTide merged commit 14b82cc into aurora-wip Oct 8, 2026
@DjDeveloperr
DjDeveloperr deleted the fix/dcp-panel-edid-quiet branch October 12, 2026 19:14
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