Repository navigation
drm/apple: offer HDR on firmware 27 panels again (revert #3423) - #3501
Conversation
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.
|
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. |
|
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 |
|
K114s (T6050, DCP firmware 27) row, PASS, Mac covered (ambient 0), lock-in PQ check (fill vs black under the same tag):
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. |
There was a problem hiding this comment.
Verdict: FINISH, then merge at d2375821
Blockers:
- PR description is missing
Tested:andRisk:(two-way/one-way) lines, which will fail the queuedpr-text / pr-textcheck (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 verifiedandRisk: two-way · firmware 27 internal panels with ADT peak luminance (K114s); fw 26.6.2 and Airs unchanged) — no code push needed. - 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/-27across 4 files): removesdcp_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 indesktop.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.03xSDR 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.
- K114s (T6050, DCP fw 27):
- Non-blocking nit: commit
d2375821omits aSigned-off-by:trailer (worth keeping for future commits; no force-push needed here).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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) andRisk: 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-appleare allSUCCESSatd2375821; re-triggeredpr-text/readinessand remaining KUnit jobs queued.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
@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 Revert: |
|
Merging under the 6-point rule at |
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)
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.