Skip to content

drm/apple: send the external HDR brightness hints macOS sends (H17P) - #796

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
display/external-hdr-hints
Nov 1, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
display/external-hdr-hints

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

After every mode set on an external display, macOS sets IOMFB parameter 3 to 1.0 and parameter 6 to 1.0 for an SDR colour mode or 2.0 for a PQ one (16.16 fixed point). I traced it on the Neo (macOS 26.6.2) and on the J616s (macOS 27). Linux sent neither.

This sends the same two parameters after each successful mode set on the H17P external path and logs any the firmware doesn't take.

Tested on the Neo (fleet14f plus this commit as a one-shot boot, dfa10460) with an MSI MPG 325CQRXF: four PQ and SDR mode sets from a VT, the firmware took parameter 3 = 1.0 and 6 = 2.0 (PQ) or 1.0 (SDR) with status 0 every time; kernel -p3 0, WARN 0, DART 0. Host selftests 84/84, W=1 clean.

Not included yet:

  • The desktop 26.x external processors (J616s). The calls are the same, but no HDR display was attached there tonight to check them.
  • The ramp macOS does while HDR content is on screen (parameter 6 from 2.0 to about 4.2 over ~260 ms on this monitor). That needs the headroom source worked out first.

🤖 Generated with Claude Code

After every mode set on an external display, macOS sets IOMFB parameter
3 to 1.0 and parameter 6 to 1.0 for an SDR colour mode or 2.0 for a PQ
one (16.16 fixed point), on the Neo (macOS 26.6.2) and on the J616s
(macOS 27). Linux sent neither, so the external processor ran HDR with
different brightness hints than under macOS.

Send the same two parameters after each successful mode set on the H17P
external path, and log a parameter the firmware does not take. On the
Neo with an MSI MPG 325CQRXF, the firmware takes both with status 0 on
each of four PQ and SDR mode sets.

macOS also ramps parameter 6 towards the content's headroom (about 4.2
on that monitor) while HDR content is shown; that part is not done here.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide merged commit c869c99 into aurora-wip Nov 1, 2026
mchalunderscore pushed a commit to mchalunderscore/linux that referenced this pull request Nov 4, 2026
…tion/aurora

Bring integration/aurora up to aurora-wip 52f0a6b, the source of
7.3.0-aurora-fleet14h, promoted on all four machines on 2026-11-02.
The range also covers the fleet14g source b35adc7. It adds aurora-silicon#792,
aurora-silicon#750, aurora-silicon#783, aurora-silicon#784, aurora-silicon#793, aurora-silicon#774, aurora-silicon#794, aurora-silicon#796, aurora-silicon#798, aurora-silicon#800, aurora-silicon#802 and aurora-silicon#801.
No conflicts.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
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