Skip to content

drm/apple: dpavservep: admit DCPDP13Service on the classic DPAV endpoint - #3236

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/dpavservep-dcpdp13-0x28
Nov 26, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/dpavservep-dcpdp13-0x28

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What

On firmware 27.x the M3 and M4 Airs' external display processors announce the EDID AV service (dcpav-service-epic, class DCPDP13Service) on the classic DPAV endpoint 0x28 with EPICUnit 0. That endpoint admits only the MCDP29xx converter classes, so the service is refused with -ENODEV. The monitor then has no EDID source: no name (GNOME shows "Unknown"), no colorimetry or HDR metadata, and no ELD for DisplayPort audio.

The generic classes were kept off 0x28 because using them reset the M4 Air when the external processor released its link. That reset was the display DART unmapped while DPMS had its domains off, fixed in #2962. This admits DCPDP13Service there, like the converter classes. AppleDCPDP2HDMI stays refused on 0x28, and endpoint 0x2a keeps requiring unit == interface-id.

Tested

  • J615 (15-inch M3 Air), MSI MPG 325CQRXF on USB-C: stock fleet85 refuses the service (admission failed: -19, EDID 0 bytes). With this change: EDID 384 bytes, name "MPG 325CQRXF", 2560x1440@280. A DPMS off/on cycle and an s2idle passed with no reset, and the EDID read again after each.
  • J713 (M4 Air), same monitor: EDID and name read. Three DPMS off/on cycles, an s2idle and a cable pull and replug passed with no reset (boot id unchanged, netconsole clean). The AV service came back after each reconnect and resume.
  • Host tests: apple-dcp 1/1, with the selftest updated for the new rule. checkpatch is clean.

Risk

Two-way (a plain revert undoes it) · external displays on T8122/T8132 Airs on firmware 27.x. Other classes, endpoints and Macs are unchanged.

Not yet

  • The rows above ran this exact change on older bases (J615 on main f7b890d4, J713 on its display stack). An exact-head row will follow.
  • DisplayPort audio on the J615 also needs its dp-audio DT node, which is a separate PR.
Evidence
  • J615 A/B: fleet85 AFK service DCPDP13Service admission failed: -19 (ep=0x28 interface=1 name=dcpav-service-epic unit=0); with the change DCPAVSERV: AFKV2 EDID service ready on channel 9, then 5, 9, 13 after reconnects.
  • J713: DCPAVSERV: AFKV2 EDID service ready on channel 1, 17 after the cable pull and 21 after s2idle, 384-byte EDID throughout.
  • Monitor serials are not recorded.

On firmware 27.x the M3 and M4 Airs' external display processors
announce the EDID AV service, dcpav-service-epic with class
DCPDP13Service, on the classic DPAV endpoint 0x28 with EPICUnit 0 and a
dynamic interface-id (1 at boot, then 5, 9, 13, 17, 21 after each
reconnect and resume). Endpoint 0x28 admits only the MCDP29xx converter
classes, so the service is refused with -ENODEV and the connector has no
EDID source: an empty EDID blob, no monitor name, no colorimetry or HDR
metadata, and no ELD for DisplayPort audio.

The generic classes were refused there because using them reset the M4
Air when the external processor released its link. That reset was the
display DART being unmapped while DPMS had its domains off, fixed by
"drm/apple: dcp: keep the display DART dark while DPMS has its domains
off" (linux#2962). With it, the service no longer resets the J713 on
link release.

Admit DCPDP13Service on endpoint 0x28 with EPICUnit 0, as the converter
classes are. AppleDCPDP2HDMI stays refused there, endpoint 0x2a keeps
requiring unit == interface-id, and the generation, epoch and owner
fences are unchanged.

The host regression admits DCPDP13Service on 0x28 over interface-ids
1/5/9/13 and still refuses AppleDCPDP2HDMI there, unit == interface-id
on 0x28, unit 0 on 0x2a, other endpoints, compartments and classes.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 26, 2026 11:07

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Verdict: MERGE at 3fd420c565bf once CI is green (non-author review; GitHub records it as a comment because this account opened the PR)

Blockers: none.

Checked:

  • Admission still keys on what the firmware announces: endpoint 0x28, EPICUnit 0, and the exact class string DCPDP13Service. There's no chip or board check. AppleDCPDP2HDMI stays refused on 0x28, and 0x2a keeps unit == interface-id.
  • The selftest covers the boundaries:
    • wrong unit or interface pairs, a wrong name and an unrelated provider are all refused;
    • channels 1-13 are admitted;
    • endpoint 0x2c is refused;
    • the forged near-miss class names were already covered above and are still refused.
  • The reset that kept generic classes off 0x28 was the display DART being unmapped while DPMS had its domains off. #2962 fixed that, and it has been on main since 11-23. The J713 row (3 DPMS cycles, s2idle, cable pull and replug, boot id unchanged) exercises exactly that path.
  • Row validity: drivers/gpu/drm/apple/epic/dpavservep.c has no commits between the J615 row's base f7b890d4 and this PR's base, so the touched file is byte-identical to what J615 ran. That is the no-conflict rebase case in the merge policy. J713 adds a second Mac with the same block.

Non-blocking: the Risk line says other Macs are unchanged. That holds only while no other firmware announces DCPDP13Service on 0x28 with unit 0; any Mac that does now gets the service too, which is the intended no-gating behaviour. Rewording it to "any Mac whose firmware announces …" would be more exact.

@RyanTheTide RyanTheTide added the hw-row-ok Maintainer checked the row is valid for this head label Nov 26, 2026
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at b38daf6c: not ready yet

Check Detail
CI at head running running: KUnit dcp-topology, KUnit asahi, KUnit spi-hid-apple, KUnit avd, KUnit ave, KUnit isp
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok comment at b38daf6c
Conflicts ok none
PR text ok Risk: two-way · (a plain revert undoes it) · external displays on T8122/T8132 Airs on firmware 27.x. Other classes, endpoints and Macs are unchanged.

Areas: area:display

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Row: 3fd420c5 J615 (15-inch M3 Air), default fleet cmdline, one boot (airs89t, main 9a986225 + this PR): boot, internal panel, GPU ([drm] Initialized aurora), s2idle +1 on the same boot, 0 failed units, Enforcing. No external monitor was plugged in during this boot, so the EDID read at this exact head is still to come. The EDID/name/DPMS/s2idle/cable-pull rows in the description ran the identical dpavservep.c change on older bases (J615 on f7b890d4, J713 on its display stack). Restored to the saved default afterwards.

…0x28

The identity KUnit table still expected the generic class to be refused on the classic DPAV endpoint. Admit DCPDP13Service with EPICUnit 0 there, up to interface-id 0xffff, as the previous commit does; AppleDCPDP2HDMI, unit == interface-id, channel 0, channels over u16, other classes and other MCDP parts stay refused.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

New head b38daf6c adds one test-only commit: the dpavservep identity KUnit table now expects DCPDP13Service with unit 0 to be admitted on endpoint 0x28 (CI's kunit job failed on the old expectation). The KUnit file is not built into the fleet kernel, so the J615 row at 3fd420c5 covers the same kernel code.

@github-actions github-actions Bot removed the hw-row-ok Maintainer checked the row is valid for this head label Nov 26, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at b38daf6c. Every check that builds or tests this change passed at this head: Apple DRM KUnit (it includes the dpavservep identity suite this PR updates), host-tests (apple-dcp), apple-build and pr-text. The per-driver KUnit jobs of "Apple build and KUnit" (avd, isp, jpeg, macsmc, prores, scaler, trusted-keys and others; none of them builds dpavservep.c) were cancelled three times by an outside canceller (run 45815161438, attempts 1-3 all cancelled, with no newer push on the branch), so they did not fail. Review: MERGE at this change (non-author). Rows: J615 exact head (boot, panel, GPU, s2idle) plus the EDID rows on both Airs.

@RyanTheTide
RyanTheTide merged commit a851ca0 into main Nov 26, 2026
31 of 63 checks passed
@RyanTheTide
RyanTheTide deleted the fix/dpavservep-dcpdp13-0x28 branch November 27, 2026 13:21
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:m3 Macs affected, from Merge risk (bot) blast:m4 Macs affected, from Merge risk (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