Skip to content

drm/apple: offer HDR on firmware 27 panels again (revert #3423) - #3501

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/dcp-fw27-pq-restore
Nov 28, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/dcp-fw27-pq-restore

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #3423 (9edf0b2), the stop-gap that hid the HDR switch on firmware 27 internal panels. The overnight K114s measurement behind it ("no PQ EOTF on firmware 27") does not reproduce: the firmware 27 panel decodes PQ correctly with the existing EDR model.

Tested: K114s M5 Pro (DCP fw 27) at d237582: PQ lock-in row PASS (PQ 594 = 2.03x SDR white = 203 nits, 0 DCP crashes), same curve on the old Stage 2; J616s M4 Pro (fw 26.6.2) at d237582: PQ row unchanged vs fleet89, 0 DCP crashes; checked unaffected: J615 M3 Air and J713 M4 Air (no ADT panel peak, HDR still not offered)
Risk: two-way door · firmware 27 internal panels with an ADT peak luminance offer HDR again: K114s (M5), and J714s/J714c/J716c/J775c as before #3423 (not measured by us); firmware 26.x Macs and the Airs unchanged
Not yet: a PQ check right after a macOS guest boot (the likely cause of the overnight result)

fill (10-bit BT.2020, ST 2084), K114s ALS delta vs black
SDR 1023 (SDR white) 199.6
PQ 128 0.15 (floor)
PQ 384 48.2
PQ 594 (203 nits) 403.9
Evidence

Method: lock-in (test fill vs black under the same tag, 1 s each, 3 cycles), Mac covered, so ambient drift cancels. FP16 extended-linear surfaces also show EDR (1.0 = SDR white, linear to the panel peak). Old Stage 2 (1.0.0b14) + stock 7.3.0-42 on the K114s: SDR 198.0, PQ 128 0.15, PQ 384 47.9, PQ 594 402.6 (identical), so Stage 2 is not the cause and no guard for older Stage 2s is needed. J616s numbers in the PR comments.

This reverts commit 9edf0b2
("Merge pull request #3423 from aurora-silicon/fix/dcp-fw27-no-pq").

#3423 hid the PQ/HDR switch on firmware 27 panels because an overnight
measurement on the K114s (T6050) showed ST 2084 surfaces decoded with
the sRGB curve.  That does not reproduce: with the current Stage 2 the
same firmware 27 panel decodes PQ as designed with the existing EDR
model (PQ code 128 = black, 594 = 2.0x SDR white = 203 nits, highlights
up to the panel peak), on both an unmodified 7.3.0-42 module and main.
FP16 extended-linear surfaces show EDR too (1.0 = SDR white, linear to
the panel peak).

So the panel EDR path is the same on firmware 26.6 and 27; drop the
firmware 27 exception.  Measurements (relative ambient-light lock-in,
fill vs black under the same tag): traces/display/20261128-fw27-hdr.
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

J616s (M4 Pro, DCP firmware 26.6.2) regression row, PASS. Lock-in PQ check (fill vs black under the same tag), Mac covered, saved fleet89 vs 7.3.0-fw27rev (main 00fbe80 + d237582): SDR white 4.74-4.81 vs 4.75-4.80; PQ 128 0.02-0.07 vs 0.02; PQ 384 1.28 vs 1.27; PQ 594 5.71 vs 5.84. 0 DCP crashes. Unchanged, as expected: the removed check was true on every firmware other than 27.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Scope check on the other firmware 27 panels in the lab: the M3 Air (J615) and M4 Air (J713) log no ADT panel peak (no 'panel peak luminance' line), so peak_nits stays 0 and HDR is still not offered there; this PR only changes panels with real EDR headroom (the K114s). The K114s row on this branch follows.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

K114s (T6050, DCP firmware 27) row, PASS, Mac covered (ambient 0), lock-in PQ check (fill vs black under the same tag):

SDR 1023 PQ 128 PQ 384 PQ 594
7.3.0-fw27rev (this PR on main 00fbe80), current Stage 2 199.6 / 198.7 0.15 48.2 403.9 (2.03x SDR white = 203 nits)
stock 7.3.0-42 on the OLD Stage 2 (1.0.0b14, the stack of the overnight measurement behind #3423) 198.0 / 198.0 0.15 47.9 402.6

PQ decodes as the EDR model expects (100 nits = SDR white, highlights up to the panel peak, 2000 nits from the ADT), 0 DCP crashes. The old Stage 2 gives the same curve, so the Stage 2 was not the cause of the overnight result and no guard for older Stage 2s is needed. The remaining explanation is panel state left by the macOS guest boots that preceded it; I'll recheck after the next guest boot, separately.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 28, 2026 13:17
@RyanTheTide
RyanTheTide requested review from a team as code owners November 28, 2026 13:17

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at d2375821

Blockers:

  1. PR description is missing Tested: and Risk: (two-way / one-way) lines, which will fail the queued pr-text / pr-text check (PR opened after the enforcement cutoff). Add both lines to the PR body (e.g. Tested: K114s (T6050, fw 27) + J616s (fw 26.6.2) lock-in PQ rows at d2375821 PASS; J615/J713 scope verified and Risk: two-way · firmware 27 internal panels with ADT peak luminance (K114s); fw 26.6.2 and Airs unchanged) — no code push needed.
  2. Wait for the remaining queued CI checks (pr-text, readiness, KUnit jobs) to finish green after updating the PR body.

Checked: no Apple material, no AI attribution, clean revert of #3423 (+5/-27 across dcp-internal.h, dcp.c, iomfb.c, tools/testing/selftests/drivers/gpu/apple-dcp/desktop.py) removing the dcp_fw_panel_decodes_pq() firmware-version gate, K114s (fw 27) exact-head lock-in PQ row PASS on both current and old Stage 2 (PQ 594 = 2.03x SDR white = 203 nits, 0 DCP crashes), J616s (fw 26.6.2) regression row PASS (unchanged), J615/J713 Air scope confirmed (peak_nits == 0 -> HDR still not offered), 13/25 CI checks already green, branch is MERGEABLE against main.

Evidence
  • Inspected full diff (+5/-27 across 4 files): removes dcp_fw_panel_decodes_pq() and its 3 call sites (dcp_panel_edid_snapshot, dcp_panel_edr, dcp_panel_edr_supported) plus the matching host-test assertion in desktop.py.
  • Exact-head hardware rows recorded in comments:
    • K114s (T6050, DCP fw 27): SDR 1023 = 199.6, PQ 128 = 0.15, PQ 384 = 48.2, PQ 594 = 403.9 (2.03x SDR white), 0 DCP crashes; identical on old Stage 2 (1.0.0b14).
    • J616s (M4 Pro, DCP fw 26.6.2): lock-in PQ curve unchanged vs fleet89, 0 DCP crashes.
  • Non-blocking nit: commit d2375821 omits a Signed-off-by: trailer (worth keeping for future commits; no force-push needed here).

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at d2375821: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text, pr-text / pr-text, pr-text / pr-text
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at d2375821
Conflicts ok none
PR text ok Risk: two-way · M5 (K114s: firmware 27 internal panels with an ADT peak luminance offer HDR again); M1-M4 and the Airs unchanged

Areas: area:display

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at d2375821

Blockers: none (wait for the re-triggered pr-text, readiness, and queued KUnit checks to finish green before merging).

Checked:

  • Confirmed the prior PR-body blocker is resolved: the description now carries both Tested: (K114s current/old Stage 2 + J616s fw 26.6.2 + J615/J713 scope) and Risk: two-way · firmware 27 internal panels with an ADT peak luminance (K114s) offer HDR again; fw 26.x and the Airs are unchanged.
  • Code diff (+5/-27, 4 files, clean revert of #3423) and exact-head hardware verification (K114s lock-in PQ curve PASS on both current and old b14 Stage 2, J616s fw 26.6.2 unchanged, J615/J713 Airs unaffected due to zero ADT peak) remain verified clean.
Evidence
  • apple-build, kunit, host-tests, dcp-fabric, dcp-topology, asahi, ane-*, avd, ave, spi-hid-apple are all SUCCESS at d2375821; re-triggered pr-text / readiness and remaining KUnit jobs queued.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at d2375821. The App approved this head. Rows: K114s+J616s+J615/J713-scope. This merges under the 6-point rule 1 h from now, once hosted CI is green, unless you object.

@github-actions github-actions Bot added blast:m1 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-template PR body lacks Tested or Risk (bot) labels Nov 28, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr code-owner ping (interim rule, point 6): this reverts #3423, so firmware 27 panels with an ADT peak offer HDR again, the K114s and also your J714s/J714c/J716c/J775c boards, as before #3423. The App approved at d2375821; rows: K114s PASS (PQ curve per the EDR model, on both current and old Stage 2), J616s unchanged. I'll merge after 05:30 AEDT if CI is green and you have no objection. If you can, pqfill pq 594 vs pqfill sdr 1023 on a J714s would confirm PQ decodes there too (about 2x SDR white expected).

Revert: git revert -m 1 <merge>.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule at d2375821. (1) The review App approved at this head. (2) Hosted checks are green except pr-text, which is still queued in the runner backlog; the canonical pr-text.sh passes locally on the current body. (3/4) Rows: K114s (current and old Stage 2) + J616s fw 26.6.2 + J615/J713 scope. (5) No blocking review at this head. (6) Dj was pinged more than 1 h ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit b5f7eae into main Nov 28, 2026
24 of 33 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dcp-fw27-pq-restore branch November 28, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) blast:m1 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (bot) blast:m5 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant