Repository navigation
arm64: dts: apple: t6041-j575c: describe dcpext3 - #3295
Conversation
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
7795405 to
3b0d38c
Compare
There was a problem hiding this comment.
Verdict: Changes requested at 3b0d38c1ab83.
For a stage whose dt_routes flag is set, both readiness and application accept an absent or empty typec-routes container. The old stage required its route nodes before enabling the processor. The new code can enable dcpext3 and attach its display DART without a usable route on a stale or incomplete DTB. Require a nonempty route container for that stage, and add a negative control that leaves the entire changeset untouched when the container is missing or empty. Keep the four-route positive control and provide a current-head J575c replug row and J614c/J616c peer.
…e tree The M4 Max dcpext3 chain names its Type-C routes by path: three, for the three USB-C ports of the J614c/J616c. A board with another number of ports needs another list, and the J575c, with four back Type-C ports, would leave its fourth route disabled. Take the routes from the processor's typec-routes node instead. Each child is enabled with the chain, just before the processor, as the listed routes were, and the chain is only ready while the typec-routes container is present, non-empty, and every route is still disabled. Application also refuses a missing or empty typec-routes container so an incomplete DTB leaves the whole changeset untouched. On the J614c/J616c the chain enables the same nodes, in the same order, as before. The KUnit chain check now covers the routes taken from the tree, and new cases cover a fourth route (positive control) as well as missing and empty typec-routes containers (negative controls). Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
The J575c ADT has a fourth external display processor, dcpext3, at the J614c/J616c's address, and iBoot preloads and starts it here too (iop-dcpext3-nub pre-loaded 1, running 1). The tree did not describe it, so Linux left it running as iBoot did, unbound. Describe it as t6041-j616c-usbc-dcpext3.dtsi does, with a route to the fourth back Type-C port added, as the J575c's dcpext1 and dcpext2. The address, interrupts, external index, bandwidth agent slot and crossbar endpoint match this Mac's ADT. Everything is disabled: aura's t6041_exts fills the firmware memory, and the display gate enables the chain. dcpext3 can then drive a USB-C display on any back port, as dcpext1 and dcpext2 do, and Linux owns the processor instead of leaving it running unbound through a suspend. Signed-off-by: Roberto Dantas <7robertodantas@gmail.com>
3b0d38c to
f0ea546
Compare
There was a problem hiding this comment.
Verdict: HOLD at f0ea546fae42
Blockers: Hosted build, DT checks and a J614c or J616c peer. The stock J575c row confirms bind, replug and resume. The direct dcpext3 scanout proof used a diagnostic tree.
Checked: Both readiness and changeset construction now refuse an absent or empty route container. The tests assert that the whole stage remains disabled when the route set is missing and that all four routes are enabled in the positive case. Reviewed the exact source and the author's KUnit and hardware receipts.
Evidence
Reviewed the exact PR source and the posted test results.
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict at f0ea546f: approve. Merge on green.
Checked
- The display gate's dcpext3 chain now takes its routes from the DT's
typec-routescontainer instead of a fixed three-route list. A missing or empty container fails readiness and apply, and KUnit covers 4 routes plus both negative controls. That's a hardware-description-driven change we want. - The J575c ADT facts in the comment (address, interrupts, external-index 4, DISP_EXT3 slot, iBoot preloaded and running) match the J616c's dcpext3 except for the fourth route.
- J575c row at this head: 4 DCPs bound, s2idle 1/1, USB-C replug at 2560x1440, 0 new warnings.
- The review bot approved at this head.
- The one CI failure was an apt 403 from packages.microsoft.com in the DWC3/ATC job (infrastructure); I re-ran it.
Nit (follow-up): t6041-j575c-usbc-dcpext3.dtsi repeats t6041-j616c-usbc-dcpext3.dtsi apart from the route list. The dcpext3 node, reserved memory and aliases are T6041 SoC data. A shared t6041-usbc-dcpext3.dtsi, with each board adding only its typec-routes, would keep the two from drifting.
What: Describe the J575c's fourth external display processor, dcpext3, with a route to each of its four back Type-C ports, as the J614c/J616c do since #1793. The display gate's dcpext3 chain now takes its routes from the device tree instead of a three-route list, requiring a present, non-empty
typec-routescontainer in both readiness and apply. iBoot starts dcpext3 on this Mac too, and until now Linux left it running unbound.Tested: J575c (Mac Studio M4 Max) at
f0ea546fae42(unmodified head DTB, default Arch cmdline, aura 1.0.0b14.1 Stage 2): dcpext3 binds with all four routesokay, all four external DCPs bound and booted, 0 failed units, 0 new kernel warnings/errors, s2idle 1/1 (rtc0), and USB-C display unplug/replug back at 2560x1440 with 0 new warnings/errors. Earlier test-only tree with dcpext1/2 off drove 2560x1440 directly on dcpext3. Display-gate KUnit on arm64 QEMU: 79 tests, 73 passed, 6 skipped (4-route positive control + missing/emptytypec-routesnegative controls).Risk: two-way door · J575c, plus the J614c/J616c dcpext3 chain in the display gate (same nodes in the same order; covered by their KUnit tree, not run on those Macs)
Not yet: a J614c/J616c peer run, three USB-C displays at once (one adapter here), replug directly on dcpext3 (current-head replug was on dcpext1 with dcpext3 bound alongside it), dcpext3 on ports other than typec1.
Details
t6041-j575c-usbc-dcpext3.dtsi):t6041-j616c-usbc-dcpext3.dtsiwith the fourth route added (route@3totypec3,atcphy3,atcphy3_xbar), the same way the J575c's dcpext2 file extends the J616c's. Checked against this Mac's ADT (macOS 27.2.1):/arm-io/dcpext3at the J616c's address (coproc0x306e00000), mailbox IRQs 1434-1437,dart-dcpext3/dart-dispext3at0x306340000/0x306300000with IRQ 1381,external-index4,iop-dcpext3-nubpre-loaded 1running 1, pmgrbwr-agentDISP_EXT3in slot 6 (apple,bw-scratch0x38000),dp-switch-ufp-endpoint3 (crossbar state 6). Everything is disabled, as for dcpext1/2./dcp@306e00000/typec-routes, just before the processor, as the listed routes were. Whendt_routesis set, bothstaged_ready()andt6041_max_enable_routes()require a present, non-emptytypec-routescontainer (andstaged_ready()requires every route still disabled), so an incomplete or stale DTB leaves the entire chain and/display-subsystemiommusuntouched. On the J614c/J616c that enables the same nodes in the same order; the J575c gets its fourth route with no board check. The chains for dcpext0-2 are unchanged.gate_t6041_max_dt_routesadds a fourth route and verifies it comes up with the chain;gate_t6041_max_dt_routes_missingandgate_t6041_max_dt_routes_emptyverify that a missing or emptytypec-routescontainer refuses bothgate_t6041_max_run()and directt6041_max_apply()(-ENODEV) and leaves all chain nodes and/display-subsystemuntouched.t6041_extsfills dcpext3's firmware memory on any T6041 tree that describes/dcp@306e00000since kboot: T6041: hand over dcpext3 firmware memory aura#212 (1.0.0b14 and later). With an older aura the gate leaves the chain off and logs/dcp@306e00000: no firmware memory, nothing enabledonce, as on the J614c/J616c since arm64: dts: apple: t6041-j614c-j616c: dcpext3 for a third USB-C display #1793.Evidence
Exact-head standalone build:
7.3.0-1-130-ARCH=cec0503a5a02+ these two commits (1a0ebea2d713,f0ea546fae42), unmodified headt6041-j575c.dtb, default Arch cmdline. Stage 2: packagedaura 1.0.0b14.1(1.0.0b14-g3ff77894) via one-shotaura-tryunder installed1.0.0b13Stage 1, U-Boot unchanged. HDMI (dcpext0) and one USB-C to DisplayPort display connected throughout.k130)f0ea546fae42/ its DTB/dcp@306e00000 enabled,route@0-route@3okay,306e00000.dcpbound and booted, all four external DCPs bound,HDMI-A-1+DP-2(dcpext1) active at2560x1440, 0 failed units, 0 new kernel warnings/errors,s2idle1/1 (rtcwake -m freeze -s 15,rtc0, sameboot_id, both displays back)f0ea546fae42/ its DTBk130:602e00000.dcpclean unplug (connected:0) and replug (connected:1),DP-2back at2560x1440(visually confirmed),HDMI-A-1unaffected, 0 new kernel warnings/errors, 0 failed units779540574172lineage, dcpext1/2memory-regionomitted + crossbars enabled (test only)38b24c000.mux: dpphy: T602X route 6,allocated Type-C DPTX PHY 1,dcp_hotplug() connected:1 ... nr_modes:22, CRTC active2560x1440@60;s2idle1/1 with CRTC active after wakeChecks run locally on
f0ea546fae42(basecec0503a5a02):gate_t6041_max_dt_routes,gate_t6041_max_dt_routes_missing, andgate_t6041_max_dt_routes_emptyall pass). Control run withdisplay-gate.creverted to3b0d38c1a: 79 tests, 71 passed, 2 failed (gate_t6041_max_dt_routes_missingandgate_t6041_max_dt_routes_empty), 6 skipped.defconfig+asahi.config(LLVM=1):display-gate.oW=10 warnings;t6041-j575c/j614c/j616cDTBs 0 warnings; full kernel build 43 warnings (same as baseline).checkpatch.pl --strict --no-tree: 0/0/0 (1a0ebea2d713), 0/1/0 (f0ea546fae42: new-fileMAINTAINERSnotice only; Apple glob covers the file).3b0d38c1ais empty;apple-dt-check.sh0 new warnings, ADT coverage, DART power domains, and sibling drift unchanged.