Repository navigation
drm/apple: accept an EDID longer than its base block announces - #67
Merged
Merged
Conversation
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]>
This was referenced Nov 5, 2026
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.
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-byteedidfile, 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 boundsused_sizeby 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.
used_size392, the base block announces 1 extension (256 bytes), the payload is 384 bytes.copy_edidreturned-EIOon every hotplug and boot./sys/class/drm/card2-HDMI-A-1/edidis 384 bytes, and Hyprland showsDell Inc. DELL S3225QS 159SF94with the full mode list (3840x2160@60, 2560x1440@120, …). HDMI audio (appledrm.hdmi_audio=1) plays on the monitor's speakers.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-wippassessizeof(resp)(the size of a pointer) as the response size toafk_service_call()in this function.🤖 Generated with Claude Code