Repository navigation
drm/apple: Give a sink with a fast preferred mode a firmware-derived EDID - #1643
DjDeveloperr wants to merge 1 commit into
Conversation
…EDID The firmware-derived EDID's detailed timing is the sink's preferred mode, or its best-scored IsPreferred timing. An EDID detailed timing holds at most 655.35 MHz, so a sink whose preferred mode is faster got no EDID at all: dcp_metadata_timing() refused the mode, and the connector had none. On the M5 Pro that is the Odyssey G81SF, preferred 3840x2160@120 at 1188 MHz, whose DisplayAttributes parse fine (PQ included). Without an EDID, compositors keep it in sRGB and offer no HDR. Pick the detailed timing only among the timings it can hold, the preferred one first and then the best-scored. A sink's own EDID does the same, listing faster modes in extensions. DRM's modes come from the firmware's timing catalog either way. Signed-off-by: Diljit Singh <hey@djdev.me>
|
Blockers: 1.
HW row: none for this PR; the open item is the G81SF (3840x2160@120) on the M5 Pro getting an EDID with HDR static metadata on the merged code. Assisted-by: LLM (Claude:Opus 5.5) |
|
This change is on integration/aurora through #2032 (cf76b17): at 110861f, dcp_metadata_timing_fits() is in dcp-display-metadata.c and dcp_firmware_metadata_timing() already skips timings a detailed timing descriptor cannot hold before choosing the preferred or best-scored one. The branch conflicts with that and its host-tests run failed in apple-dcp. The one piece not on the tip is the KUnit case in parser-test.c (594 MHz fits; 1188 MHz or no sync polarity does not), which could go in as a small test-only PR. This PR can be closed in favour of #2032. |
|
@DjDeveloperr this looks superseded: the change is on main through #2032 (cf76b17, "drm/apple: give an external sink a firmware-derived EDID with what it reports"), which adds dcp_metadata_timing_fits() and already skips timings a detailed timing descriptor can't hold. Details are in #1643 (comment). The branch also conflicts with main now. If nothing here still needs to land, I'll close it after 2026-11-28 03:00 AEDT (24 hours from now). The branch stays, so it can be reopened. If something does still need to land, say so here and I'll leave it open. |
|
Closing as superseded, per #1643 (comment) (no objection in 24 hours). The branch stays, so this can be reopened if something here still needs to land. |
What
Give a sink whose preferred mode is faster than an EDID detailed timing can hold a firmware-derived EDID, instead of none.
The firmware-derived EDID's detailed timing is the sink's preferred mode, or failing that its best-scored IsPreferred timing. An EDID detailed timing holds at most 655.35 MHz. For a faster preferred mode,
dcp_metadata_timing()refused the timing and no EDID was built at all.On the M5 Pro that sink is the Odyssey G81SF, whose preferred mode is 3840x2160@120 at 1188 MHz. Its DisplayAttributes parse fine (
seen 0x1f, PQ supported), but its connector had no EDID. Without one, compositors keep it in sRGB and offer no HDR (Hyprland listed it with an empty description).The fix:
dcp_firmware_metadata_timing()now picks the detailed timing only among timings that slot can hold: the preferred one first, then the best-scored. A sink's own EDID does the same, listing faster modes in extensions. DRM's modes come from the firmware's timing catalog either way.dcp_metadata_timing_fits()is split out ofdcp_metadata_timing()and covers its checks except the image size.Status: draft until tested
appledrm.koon the default kernel's tree (7.3.0-m5-intg4, f1b79c4), applied alone onto intg4's apple directory: no errors, and no warnings from this change. The kunit file is not in that config; host-tests will build and run it.🤖 Generated with Claude Code