Skip to content

drm/apple: accept an EDID longer than its base block announces - #67

Merged
RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
cb2206:dcp-edid-hf-eeodb
Oct 8, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:aurora-wipfrom
cb2206:dcp-edid-hf-eeodb

Conversation

@cb2206

@cb2206 cb2206 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

dcpavserv_copy_edid() rejects an EDID unless its payload is exactly (1 + extension count) blocks. HDMI 2.x sinks that use the HDMI Forum EDID Extension Override Data Block (HF-EEODB) put 1 in the base block's extension count and the real count in the HF-EEODB. The DCP returns all the blocks, the size check fails, and the connector ends up with no EDID: -EIO, a 0-byte edid file, and no make or model in userspace.

This change accepts any whole number of blocks that is at least what the base block announces, and leaves the block count to drm_edid, which handles HF-EEODB. It also bounds used_size by the buffer size, which the exact-size check used to do implicitly.

Testing

J314s (M1 Pro), system firmware 26.3, with a Dell S3225QS on the built-in HDMI port (dcpext0 through the DP-to-HDMI converter). The module was built from the linux-aurora 11.6 tree with the same change.

  • Before: used_size 392, the base block announces 1 extension (256 bytes), the payload is 384 bytes. copy_edid returned -EIO on every hotplug and boot.
  • After, cold boot with the monitor attached: no EDID error.
  • After, hotplug: /sys/class/drm/card2-HDMI-A-1/edid is 384 bytes, and Hyprland shows Dell Inc. DELL S3225QS 159SF94 with the full mode list (3840x2160@60, 2560x1440@120, …). HDMI audio (appledrm.hdmi_audio=1) plays on the monitor's speakers.
  • Builds with W=1 and no new warnings against aurora-wip.

The same strict size check is in AsahiLinux/linux, so this may be worth sending there as well.

Side note, not changed here: aurora-wip passes sizeof(resp) (the size of a pointer) as the response size to afk_service_call() in this function.

🤖 Generated with Claude Code

dcpavserv_copy_edid() rejects an EDID unless the payload is exactly
(1 + extension count) blocks. An HDMI 2.x sink that uses the HDMI Forum
EDID Extension Override Data Block (HF-EEODB) sets the extension count
in the base block to 1 and puts the real count in the HF-EEODB, so the
DCP returns more blocks than the base block says. The EDID is dropped
with -EIO, the connector has no EDID, and userspace sees no make or
model.

Accept any whole number of blocks at least as long as the base block
announces and let drm_edid, which handles HF-EEODB, decide how many
blocks to use. Also bound used_size by the buffer size, which the exact
match used to do implicitly.

Seen on j314s (M1 Pro) with a Dell S3225QS on the HDMI port:
used_size 392, base block announces 1 extension (256 bytes), payload
384 bytes. With this change the connector gets the EDID.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Christian Bartels <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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