Skip to content

drm/apple: dpavservep: admit the MCDP29xx converters' AV service - #3037

Closed
RyanTheTide wants to merge 1 commit into
integration/aurorafrom
userpath/dpav-mcdp29xx
Closed

RyanTheTide wants to merge 1 commit into
integration/aurorafrom
userpath/dpav-mcdp29xx

Conversation

@RyanTheTide

Copy link
Copy Markdown

Problem. On firmware 27, an external monitor reached through a DP-to-HDMI converter has no EDID. The connector reports 0 bytes, so GNOME shows "Unknown" with the firmware's fallback modes and no HDR, VRR or high refresh. The DCP announces the converter's AV service on the classic DPAV endpoint 0x28, EPICUnit 0, with the converter's part as its class: AppleDCPMCDP29XX (the M2 Mac mini's HDMI port) or AppleDCPMCDP2900 (a USB-C to HDMI adapter). Ryan's MacBook Air M3 (J615) with an MSI monitor logged AFK service AppleDCPMCDP2900 admission failed: -19 (ep=0x28 interface=1 name=dcpav-service-epic unit=0) on fleet85.

Change. Admit these two classes on endpoint 0x28 with EPICUnit 0 and a nonzero, bounded interface-id. Endpoint 0x2a keeps its rules. The generic classes stay refused on 0x28, because admitting them there reset the M4 Air on DPMS off (#2857). This is commit e59f024 from #2853, split out unchanged in substance (it takes #2853's post-revert form), so the converter EDID can land without that series' live-session work.

Testing. KUnit apple-dcpavserv-identity under qemu arm64 at this head: 47/47. The negative control (parent dpavservep.c with the new cases) fails exactly the two admit cases, 45/47.

Still to run. J615 with the MSI behind the same USB-C to HDMI adapter: EDID, monitor name and modes, on the default command line. J713 with the same adapter: repeated DPMS off/on with no reset (the #2857 failure mode, now with #2962 merged). J473 HDMI is already covered by #2853's rows.

Details

The KUnit config was the minimal set for DRM_APPLE and DRM_APPLE_DISPLAY_KUNIT_TEST (ARCH_APPLE, APPLE_RTKIT/MAILBOX, BACKLIGHT_CLASS_DEVICE, PM), run with kunit.py run --arch=arm64 'apple-dcpavserv*'. A fleet85 appledrm.ko with this change, signed with the fleet85 key, is staged for the rows.

Assisted-by: LLM (Claude:Opus 5.5)

On firmware 27 the external DCPs announce the AV service of a DP-to-HDMI
converter on the classic DPAV endpoint 0x28, EPICUnit 0, with the
converter's part as its class: AppleDCPMCDP29XX for the M2 Mac mini's
built-in HDMI port and AppleDCPMCDP2900 for a USB-C to HDMI adapter
(seen on the MacBook Air M3, J615). Neither class is admitted, so the
service is refused with -ENODEV, its EDID is never read and the
connector reports a 0-byte EDID: GNOME shows the monitor as "Unknown"
with the firmware's fallback modes.

Admit these two classes on endpoint 0x28 with EPICUnit 0 and a nonzero
bounded interface-id. Endpoint 0x2a keeps its rules (AppleDCPDP2HDMI or
DCPDP13Service, unit equal to the interface-id). The generic classes
stay refused on 0x28: admitting them there reset the M4 Air (J713) when
the external processor released its link (reverted in 311ccad).
New identity cases cover both classes, a nonzero unit and another part.

Split out of linux#2853 (commit e59f024), unchanged in substance, so
the converter's EDID can land without that series' live-session work.

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

Copy link
Copy Markdown
Author

Closing as a duplicate. Per ORCH5, #2853 carries the MCDP29xx converter admission. The J615 (USB-C to HDMI adapter, MCDP2900) and J713 DPMS rows will be run on #2853's exact head. The KUnit result here (47/47, negative control 45/47) applies to the same identity code.

Assisted-by: LLM (Claude:Opus 5.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant