Repository navigation
drm/apple: dpavservep: admit DCPDP13Service on the classic DPAV endpoint - #3236
Conversation
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
left a comment
There was a problem hiding this comment.
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.AppleDCPDP2HDMIstays 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
mainsince 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.chas no commits between the J615 row's basef7b890d4and 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.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Row: |
…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>
|
New head |
|
Merging at |
What
On firmware 27.x the M3 and M4 Airs' external display processors announce the EDID AV service (
dcpav-service-epic, classDCPDP13Service) 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
DCPDP13Servicethere, like the converter classes.AppleDCPDP2HDMIstays refused on 0x28, and endpoint 0x2a keeps requiring unit == interface-id.Tested
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.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
f7b890d4, J713 on its display stack). An exact-head row will follow.Evidence
AFK service DCPDP13Service admission failed: -19 (ep=0x28 interface=1 name=dcpav-service-epic unit=0); with the changeDCPAVSERV: AFKV2 EDID service ready on channel 9, then 5, 9, 13 after reconnects.DCPAVSERV: AFKV2 EDID service ready on channel 1, 17 after the cable pull and 21 after s2idle, 384-byte EDID throughout.