Repository navigation
drm/apple: GNOME HDR on the J616s (PQ reference white, SDR on compositor exit, InfoFrame stop) - #789
Merged
Merged
Conversation
With GNOME in HDR on the J616s panel, the shutdown splash came out far too bright. Connector properties outlive the client that set them, so Plymouth inherited HDR_OUTPUT_METADATA with the PQ EOTF and the BT.2020 colorspace, and its SDR frames were shown as PQ near the panel's peak. When a file that was DRM master closes and no other client has taken master, take every output it left in HDR back to SDR with the same commit an HDR-off from the compositor would make: no HDR metadata and the default colorspace. A compositor that only drops master for a VT switch keeps its state, since it does not send it again when it comes back. On the J616s panel at brightness 300, SDR white after a PQ client exits now draws 4.4 W (SDR white 6.0 W, the PQ client 14.9 W). Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
A desktop 26.x panel shows PQ as EDR: PQ 100 cd/m² lands on the white the backlight sets, and brighter levels use the headroom above it, up to the panel's peak. The backlight stays in effect while it decodes PQ. macOS uses the panel the same way. Compositors can't tell this from the panel EDID or any existing connector property. They take PQ as absolute, with the reference white at 203 cd/m², and mutter also drives the backlight to its maximum in BT.2100 mode because it can't tell whether the backlight still works. On this panel that made the HDR desktop about twice as bright as SDR, or more. Attach an immutable PQ_REFERENCE_LUMINANCE range property, in cd/m², to the panel connector of a desktop 26.x DCP. Its presence says the backlight still applies in PQ, and its value is the PQ level that shows at the white the backlight sets. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
When HDR ends on a live desktop 26.x external link, the driver only set the SDR colour mode and relied on the link to drop the Dynamic Range and Mastering InfoFrame. macOS first stops that InfoFrame with DCPAV selector 0x14 (stopInfoFrame, type 0x87) on dcpav-service-epic, requires the stop to succeed, and only then sets the SDR colour mode. It never sends an empty metadata block. Do the same. Track whether the firmware took a metadata block, so that the link carries the InfoFrame. When a mode set leaves PQ on such a link, send the 0x14 stop first. The stop message is a fixed 0x80 bytes: the DCPAV header, a 32-byte InfoFrame at 0x40 whose type byte (0x87) selects the slot to clear, the link source at 0x60 and the DCP status at 0x70. A failed stop is reported, and the mode set goes ahead. A link set up again (power off, new service) carries no InfoFrame, so nothing is stopped there. The host selftest checks the stop message byte for byte against an independent encoding, and checks its reply status offset. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
…into lane1/md # Conflicts: # drivers/gpu/drm/apple/iomfb.c
This was referenced Nov 1, 2026
Merged
Merged
notmysegv
pushed a commit
to notmysegv/linux
that referenced
this pull request
Nov 4, 2026
…tion/aurora Bring integration/aurora up to aurora-wip b359258, the source of 7.3.0-aurora-fleet14f, promoted on the M1 Pro, M2, Neo and J616s on 2026-11-01 and 11-02. The range also covers the fleet14c, fleet14d and fleet14e sources (f41ac3d, 4759557, 757fc07), each booted on hardware. It adds aurora-silicon#773, aurora-silicon#776, aurora-silicon#777, aurora-silicon#737, aurora-silicon#713, aurora-silicon#785, aurora-silicon#786, aurora-silicon#788, aurora-silicon#789 and aurora-silicon#787. No conflicts. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
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.
Three fixes for HDR on the J616s, tested together with GNOME 51 in HDR mode on the panel and with the MSI MPG 325CQRXF on DCPEXT.
PQ reference white of the panel. The desktop 26.x panel shows PQ relative to its backlight (PQ 100 is the backlight's white). Compositors put SDR white at PQ 203 and, in HDR mode, push the backlight to maximum, so plain white already hit the panel's full-screen limit (26 W of backlight power, the same as a 1000 nit field) and HDR content had no headroom. That is why Chromium's HDR test showed no HDR square. A new immutable connector property, PQ_REFERENCE_LUMINANCE (100 on this panel), tells the compositor where reference white sits. With a mutter that reads it (packaging PRs follow) SDR white in HDR mode draws 12.7 W instead of 26 W, the brightness slider works, and the testufo HDR square shows. Compositors that don't know the property behave as before.
SDR again when the compositor exits. With GNOME in HDR, the shutdown splash came out far too bright: Plymouth inherited HDR_OUTPUT_METADATA and BT.2020. When a former master closes and nobody has taken over, the outputs go back to SDR with the same commit an HDR-off would make. A VT switch is left alone, since mutter does not resend its colour state when it returns. On the panel at brightness 300, SDR white after a PQ client exits draws 4.4 W (SDR white 6.0 W, PQ client 14.9 W).
HDR InfoFrame stop on externals. When a link leaves PQ the driver now stops the HDR InfoFrame with DCPAV selector 0x14 before setting the SDR colour mode, as macOS does, instead of relying on the link to drop it. Logged on the MSI: "HDR InfoFrame stopped" on each HDR to SDR switch.
Hardware: J616s, fleet14d with this drm/apple (test boot 7ce744c0, built from these commits plus the colour and #776 revert branches). Ryan checked HDR on the panel (bright, slider works, Chromium HDR square), HDR on and off on the MSI, and the console after HDR. Kernel -p3 0, WARN 0, DART 0. Host selftests 84/84, W=1 clean.
🤖 Generated with Claude Code