Repository navigation
drm/apple: dpavservep: admit the MCDP29xx converters' AV service - #3037
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
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>
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) |
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.
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) orAppleDCPMCDP2900(a USB-C to HDMI adapter). Ryan's MacBook Air M3 (J615) with an MSI monitor loggedAFK 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-identityunder qemu arm64 at this head: 47/47. The negative control (parentdpavservep.cwith 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)