Repository navigation
drm/apple: dcp: J773g 27.2 dcpext: DPTX endpoints from the firmware's advertisement (stacked on #2541, #2526) - #2634
Conversation
|
Reviewed the last commit (6f2f4d8). Setting One scope point: Assisted-by: LLM (Claude:Opus 5.5) |
6f2f4d8 to
1b2dfa6
Compare
|
Rebased cleanly onto updated
Keeping as draft pending the J773g hardware row (and Air USB-C DP alt-mode 27.2 scope note once the row lands). Assisted-by: LLM (Gemini:4 Neon) |
|
Re-checked at 1b2dfa6. Compared with 6f2f4d8, the only change in this PR's own commit is the dropped trailer. The code is identical, so the earlier read still holds ( The one open item from last time is still open: the description should say whether an M4 Air's USB-C DP alt-mode output on 27.2 (J713/J715 reach this same Assisted-by: LLM (Claude:Opus 5.5) |
On the Mac mini (J773g) on macOS 27.2, dcpext0 booted on the firmware-27 backend, but dptxep_init() opened firmware 27's default DPTX_ENDPOINT_V2 (0x2c), where nothing is announced: "DPTX transport ready but port 0 service not announced" (-110), then "dptx service for port 0 not enabled" on every connect, and no modes. Its 27.2 image serves AppleDCPDPTXController (dcpav- and dcpdp-controller-epic, units 0 and 1) on DPTX_CONTROLLER_ENDPOINT (0x24) and AppleDCPDPTXRemotePort (dcpdptx-port-epic, units 0 and 1) on DPTX_ENDPOINT (0x2a), the services macOS 27.2 opens on the mini's dispext0, and the layout dcp_v27_dptx_layout() selects for a firmware-27 dcpext whose firmware advertises both endpoints. That selection, the class-less announce and the late port announce key on dcp->dcpext, which comes from the "apple,dcpext" compatible. The T8132 dcpext nodes have none: on the M4 firmware they are adopted outside the DRM device (dcp_platform_probe_t8132_ext()), and with the generic compatible, a kernel without CONFIG_DRM_APPLE_DCP_T8132 would bind them as a plain dcpext. So where a T8132 dcpext is admitted on firmware 27 and becomes an ordinary pipe, set dcp->dcpext. No endpoint is named in its hardware data. Signed-off-by: Diljit Singh <[email protected]>
1b2dfa6 to
692abd4
Compare
|
Re-read at 692abd4 (rebased on #2541's new head). The PR's own commit now marks a firmware-27 Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
Verdict: REQUEST CHANGES at 692abd44
Blockers:
- Branch is
CONFLICTINGwithmain. This 19-file branch (+1411/-33, stacked on#2541and#2526) conflicts with currentmain. Rebase onto currentmain(dropping any commits already merged), verify full CI green, and post an exact-head J773g (27.2dcpext0) + regression hardware row.
Checked:
- Commit series (
0b2f60be..692abd44),CONFLICTINGagainstmain.
Evidence
- Rebase onto current
mainso only unmerged changes remain and CI/hardware checks apply to the live head.
Resolve dcp_platform_probe_pipe(): keep the T8132 dcpext firmware 27 external flag from this branch and main's internal T8132 firmware 27 table after it. The stacked parents are on main, so the remaining diff is the dcpext flag. Signed-off-by: DjDeveloperr <[email protected]>
RyanTheTide
left a comment
There was a problem hiding this comment.
Reviewed the conflict-pass merge commit d4031db only: dcp.c t8132-dcpext block sets dcp->dcpext=true next to main's code. The resolution keeps what each side had and adds nothing outside the conflict. Approved for the merge-up; merging still waits on CI and the rows at this head.
|
NOT REACHED on our mini (no regression): J773g at
|
|
NOT REACHED on our mini (no regression): J773g at
|
There was a problem hiding this comment.
Verdict: MERGE at d4031dbd72f0
Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.
Checked: Code reviewed in the earlier App review at this head (6122660587).
Follow-ups (not blocking): current CI, J773g external-port row
|
Merging at |
Stacked on #2541 (J773g dcpext0 on the 27.2 v27 backend) and #2526 (firmware-27 dcpext: DPTX endpoints from what the firmware advertises). The last commit is this change; the six before it are #2526's, cherry-picked unchanged except for context.
Problem. On the Mac mini (J773g) on macOS 27.2, dcpext0 boots on the firmware-27 backend, but
dptxep_init()opens firmware 27's defaultDPTX_ENDPOINT_V2(0x2c). Nothing is announced there:DPTX transport ready but port 0 service not announced(-110);dptx service for port 0 not enabledon every connect, and the firmware exports no mode.What the firmware does. The 27.2 image serves
AppleDCPDPTXController(dcpav-/dcpdp-controller-epic, units 0 and 1) onDPTX_CONTROLLER_ENDPOINT(0x24) andAppleDCPDPTXRemotePort(units 0 and 1) onDPTX_ENDPOINT(0x2a). macOS 27.2 opens the same services on the mini's dispext0. That is the layout #2526'sdcp_v27_dptx_layout()selects for a firmware-27 dcpext whose firmware advertises both endpoints.Why #2526 alone doesn't reach the J773g. The selector, the class-less announce and the late port announce all key on
dcp->dcpext, which comes from theapple,dcpextcompatible. The T8132 dcpext nodes have no such fallback, on purpose:dcp_platform_probe_t8132_ext());CONFIG_DRM_APPLE_DCP_T8132would bind them as a plain dcpext.Change. Where a T8132 dcpext is admitted on firmware 27 (
apple_t8132_dcpext_v27_2(): processor and image, no board check since #2541's 2451da0) and becomes an ordinary pipe, setdcp->dcpext. The hardware data names no endpoint: where the DPTX services are comes from the firmware's advertisement. This replaces our interim 3efea66 (hvtrace/m4drv8-dcp2596), which pinned.dptx_endpoint = DPTX_ENDPOINTand.dptx_controllerin the T8132 hardware data.Testing.
run.py --group all: 74 pass. The other 15 fail only on this host's clang 23-Wunused-but-set-global, in fixtures this branch doesn't touch; drm/apple, soc: apple: drive the M4 Mac mini's (J773g) HDMI from dcpext0 on macOS 27.2 (v27 backend) #2541's head has the same 15.readinessandt6041-v27-admissionpass. tools/asahidcp-v27-dptx-layout-tests(with its three mutations),iomfb-startup-tests,dcpext26-*andtiled-split-tests: pass.firmware 27: DPTX controller on 0x24, ports on 0x2a (advertised); no -110, no "not announced".mode_set_gated: 3840x2160@60 Hz DSC=NO VRR=NO link: 1), KDE greeter up, no DART faults.Once #2526 merges, this commit folds into #2541 and this PR closes.
Not yet