Repository navigation
arm64: dts: apple: t6050-j775d: describe dcpext1-3 for Aura Type-C display routes - #3116
Conversation
A board whose display processors and Type-C ports are wired through a display crossbar may ask Aura to populate each processor's Type-C display routes from the ADT instead of spelling them out by hand: the PHYs, display crossbar controls, crossbar states, DPTX targets and route subnodes are written before Linux starts. Document the empty typec-routes container in apple,dcp-typec-routes.yaml, qualify the connector display port consistently throughout (port@2 on T6050, port@3 on earlier SoCs), and allow an empty container in apple,dcp.yaml while disallowing partial pre-populated route properties alongside it. Signed-off-by: Jeff Queisser <[email protected]>
… Type-C routes A display processor node may carry an empty typec-routes container asking Aura to write its routes from the ADT. Under an older Aura that does not populate them, or when every route child is disabled or skipped because its PHY or crossbar is disabled, the container has no usable routes. Previously dcp_register_typec_routes() failed probe with -EINVAL while dcp_t8132_ext_routes() checked of_get_available_child_count() separately. Share dcp_typec_routes_available() between both paths, route the availability check through dcp_fabric_run_probe() with KUnit coverage, and return 0 cleanly whenever zero usable routes remain (leaving phy_managed_by_typec false so the engine probes with no Type-C route). This also turns an all-disabled typec-routes container (present on 33 DCP nodes across existing DTBs until Aura or the display gate enables them) from -EINVAL into a successful no-route probe, including on the T6030 external path. Signed-off-by: Jeff Queisser <[email protected]>
…crossbars atc2_xbar in t6050-die0.dtsi carries its usb-aon and common power domains, while atc0_dpxbar, atc1_dpxbar and atc3_dpxbar in t6050-peripherals.dtsi had none. J714s and J716c carried board-local copies for atc0_dpxbar and atc1_dpxbar, and atc3_dpxbar had no copy at all. Without those domains, the driver's runtime-PM probe cannot power the crossbar, and Aura's route walk does not enable them. Put each crossbar's power domains on the shared node in t6050-peripherals.dtsi, matching atc2_xbar and the ADT, and drop the duplicate crossbar overrides from t6050-j714s-display.dtsi and t6050-j716c-left-usb4.dtsi. Signed-off-by: Jeff Queisser <[email protected]>
The SoC-fixed properties of dcpext1..3 and their DARTs -- each engine's bandwidth scratch, die-local index and empty apple,clock-ids, each DART's 3 TiB DMA range, and the single register range shared by scanout and PIODMA on dispext1..3_dart -- were repeated across four board device-tree files, while dcpext0 already keeps the same set in t6050-dieX.dtsi. Move these properties onto the shared nodes in t6050-peripherals.dtsi and drop the duplicate board copies. Runtime effects across T6050 boards: - J716c: dcpext1..3 and their DARTs are unchanged in the compiled DTB. - J714s: dcpext1..3 gain apple,bw-scratch, which Aura's panel handoff overwrites from the ADT so the booted DT is identical. - K116s: dcpext1..3 gain apple,dcp-index <2..4> (was 0), apple,bw-scratch (overwritten on panel boots), and single-range dispext1..3_dart reg (apple-dart maps reg[0] only). - J775D: dcpext1..3 and their DARTs gain apple,dma-range, apple,bw-scratch, apple,dcp-index <2..4>, apple,clock-ids, and single-range dispext1..3_dart reg, so published Aura now passes its headless handoff checks and hands dcpext1..3 off to Linux (previously skipped). - Other T6050 boards without display-subsystem or dcp/disp0 aliases: dcpext1..3 stay disabled. Signed-off-by: Jeff Queisser <[email protected]>
…utes Describe the remaining die-0 external display engines (dcpext1..3) on the J775D with connector type "USB-C" and an empty typec-routes container, keeping dcpext0's static route on rear port 3 intact until a route-writing Aura ships. Move hpm3's USB4 router endpoint from port@2 to port@3 so port@2 stays free for DisplayPort (apple,dcp-typec-routes.yaml). Under published Aura (without the route writer), Aura hands dcpext1..3 off, adds dispext1..3_dart to display-subsystem's iommus and leaves typec-routes empty; Linux probes them cleanly with no Type-C routes while dcpext0 continues to drive rear port 3. Under route-writing Aura, Aura populates routes on rear ports 2 and 4 for dcpext1..3 (skipping port 3 while dcpext0's static unnumbered endpoint occupies hpm2 port@2) and enables their PHYs, crossbars and PD controllers. Signed-off-by: Jeff Queisser <[email protected]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
satchlj
left a comment
There was a problem hiding this comment.
Gemini 4 Neon on @satchlj's behalf: Audited 064c3c65cd3e (bindings, T6050 DTS/DTSI consolidation, and apple-dcp Type-C route registration).
Findings (Code Audit Clean)
- No unnecessary board gating: Rather than duplicating static routes or SoC-fixed
dcpext1..3/dispext1..3_dartproperties intot6050-j775d.dts, the series consolidates shared T6050 crossbar power domains (atc{0,1,3}_dpxbar),dcpext1..3(apple,bw-scratch,apple,dcp-index, emptyapple,clock-ids), anddcpext1..3_dart/dispext1..3_dart(apple,dma-range, single-windowreg) intot6050-peripherals.dtsi, removing duplicated per-board definitions acrosst6050-j714s-*,t6050-j716c-*, andt6050-k116s.dts. - Bindings & J775D DTS:
apple,dcp-typec-routes.yamlandapple,dcp.yamlcleanly specify the emptytypec-routescontract (forbidding partial static PHY/mux properties whentypec-routeshas no[email protected]children), andt6050-j775d.dtsmoveshpm3_tbtfromport@2toport@3soport@2stays reserved for DisplayPort while keepingdcpext0's existing static route intact. - Driver & KUnit (
dcp-fabric.c,dcp-fabric.h,dcp-fabric-effects.h,dcp-fabric-test.c,dcp.c): Unifying route-availability checks behinddcp_typec_routes_available()/dcp_fabric_has_available_routes()and returning0withdev_info("no usable Type-C display routes\n")when an empty/all-disabled container has zero usable routes ensures safe forward/backward compatibility with older bootloaders. KUnit covers(false, 0),(true, 0), and(true, 1).
Holding APPROVE strictly until Device tree checks / dt-checks, Apple DRM KUnit / kunit, and Host tests / host-tests finish green on 064c3c65cd3e.
satchlj
left a comment
There was a problem hiding this comment.
Gemini 4 Neon on @satchlj's behalf:
Re-checked exact head 064c3c65cd3e now that all CI checks (including dt-checks) are green:
- Previously audited clean with no remaining code or CI blockers; flipping to
APPROVE.
Assisted-by: LLM (Google:Gemini 4 Neon)
|
PASS on a 14-inch MacBook Pro (J714s, M5 Pro/T6050, G17S B1), kernel Candidate The merged heads were #2906 All 7 DRM connectors had the same state and advertised modes as the baseline before and after deep sleep. The 3 attached displays stayed enabled at the same active modes across both arms. The internal eDP panel ran at 3024×1964 at 120 Hz, DP-2 at 3840×2160 at 120 Hz and DP-5 at 3840×2160 at 239.996 Hz. Both arms logged 0 DCP or DART faults. The command line matched the default. SELinux was disabled. |
What: Allow an empty
typec-routescontainer onapple,dcpnodes for Aura to populate from the ADT, treat atypec-routescontainer with zero usable routes as no Type-C routes instead of failing probe with-EINVAL, consolidate T6050 display crossbar power domains and shareddcpext1..3/dispext1..3_dartproperties int6050-peripherals.dtsi, and describedcpext1..3on the J775D (keepingdcpext0's static port 3 route intact until a route-writing Aura ships).Tested: J775D (Mac Studio, M5 Ultra) at
064c3c65cd3eon baremaine7528180365funder published Aura7bf44a6374af(27.2 stub, default command line, own-base A/B):dcpext0keepscard0-DP-1: connected(rear port 3),dcpext1..3(392e/302e/306e00000.dcp, indices 2..4) probe cleanly withno usable Type-C display routesand bind todisplay-subsystem,card0-HDMI-A-1: connected, 0 new kernel errors (8 vs 8 baseline), 2/2 baseline failed units (ALARM has no SELinux). Extra test paired with the unposted Aura route-writer branch (9b40b3c89e59) populates 2 routes each ondcpext1..3(card0-DP-2..7, rear ports 2 and 4; rear port 1 untouched) with 0 new kernel errors. Automated:dt_binding_checkanddtbs_checkacross all 11 T6050 DTBs pass (0 new / 0 gone diagnostics,dt-validate0 lines),host_tests_vm.sh545/549 pass (0 of 549 differ vs base),checkpatch.pl --strictclean.Risk: two-way door · affects T6050 display DTBs (
J775D,K116s,J714s,J716c) andapple-dcpType-C route registration (dcp-fabric.c,dcp_t8132.c,dcp.c,dcp_t6030.c). OnJ716c,dcpext1..3and their DARTs are unchanged (onlyatc3_dpxbargains power domains); onJ714s,dcpext1..3gainapple,bw-scratchwhich Aura's panel handoff overwrites from the ADT; onK116s,dcpext1..3gainapple,dcp-index <2..4>(was 0),apple,bw-scratch(overwritten on panel boots), and single-rangedispext1..3_dartreg(apple-dartmapsreg[0]only); on other T6050 boards withoutdisplay-subsystem,dcpext1..3stay disabled.Not yet: K116s hardware regression row confirming
dcpext1..3index/DART consolidation leaves external DP unchanged; J714s/J716c smoke row; follow-up J775D commit droppingdcpext0's static port 3 route once the paired Aura route-writer PR lands.Details
Why this shape
dcpext1..3anddispext1..3_dart(apple,bw-scratch,apple,dcp-index, emptyapple,clock-ids, 3 TiBapple,dma-range, single-range DARTreg) were duplicated across four board files whiledcpext0already kept the same set int6050-dieX.dtsi. Similarly,atc0_dpxbarandatc1_dpxbarpower domains were copied in board files whileatc3_dpxbarhad none, anddcp_register_typec_routes()vsdcp_t8132_ext_routes()each checked Type-C route availability differently (failing-EINVALon empty/all-disabled containers).typec-routes, PHYs, crossbars, and SoC-fixed properties intot6050-j775d.dtsfor every engine and port, or adding a J775D-only fallback for empty containers. That would duplicate crossbar topology already present in the ADT and leave four board files holding diverging copies of the same SoC properties.dcp_typec_routes_available()is shared betweendcp_register_typec_routes()anddcp_t8132_ext_routes()(with KUnit coverage viadcp_fabric_run_probe()), returning 0 cleanly whenever zero usable routes remain so an empty or all-disabled container probes without routes under older Aura. All shared T6050 crossbar power domains anddcpext1..3/dispext1..3_dartproperties live once int6050-peripherals.dtsi, andt6050-j775d.dtsdescribesdcpext1..3with emptytypec-routescontainers while freeinghpm3port@2(moving its USB4 router endpoint toport@3).dcpext0continues driving rear port 3 via its static route whiledcpext1..3hand off and probe cleanly with zero errors. Under route-writing Aura, Aura populates rear ports 2 and 4 ondcpext1..3while leavingdcpext0on port 3 and rear port 1 untouched. Once route-writing Aura ships, a small follow-up dropsdcpext0's static route so all four engines share all described rear ports.Change
Five commits on
main(e7528180365f, the latest buildablemaincommit):79d7fe86269a—dt-bindings: display: apple,dcp: allow an empty typec-routes container377408b577af—drm/apple: treat a typec-routes container with no usable routes as no Type-C routesf9138e5af60a—arm64: dts: apple: t6050: add power domains to the remaining display crossbars5b9b128536a5—arm64: dts: apple: t6050: share dcpext1-3 properties across T6050 boards064c3c65cd3e—arm64: dts: apple: t6050-j775d: describe dcpext1-3 for Aura Type-C routesEvidence
Testing
Own-base A/B row on J775D (Mac Studio, M5 Ultra), 27.2 boot stub, read-only root, default command line, published Aura
aura-main-7bf44a63(7bf44a6374af), baremaine7528180365fwith no extra PRs carried:dpall-r2b(windowdprow24@20261124-1800, auraaura-main-7bf44a63) — baremaine7528180365f.dpall-r3a(windowdprow24@20261124-1800, auraaura-main-7bf44a63) — baremaine7528180365f+ this series at064c3c65cd3e(message-only amend from1733d7415903, zero code diff).dpall-r2b)dpall-r3a, published Aura)BOOT-OK)2b2e00000(dcpext0, idx 1),42b2e00000(dcpext4, HDMI)2b2e00000(idx 1),392e00000(idx 2),302e00000(idx 3),306e00000(idx 4),42b2e00000(HDMI)dcpext1..3route probeno usable Type-C display routes(clean probe, 0 errors)card0-DP-1: connected,card0-HDMI-A-1: connectedcard0-DP-1: connected,card0-HDMI-A-1: connectediwd,systemd-networkd-persistent-storage)journalctl -k -b -p err)Extra evidence (not this PR's own row, base
e7528180365f, paired with the unposted Aura route-writer branch at9b40b3c89e59in the same windowdprow24@20261124-1800): booting the same kernel under route-writing Aura populatedroute@0(usb-pd@a/phy@38b000000, rear port 4) androute@1(usb-pd@6/phy@2ab000000, rear port 2) ondcpext1..3, enabled2ab24c000.muxand38b24c000.muxwhile leavingdcpext0on port 3 and rear port 1 untouched, registeredcard0-DP-1(connected) +card0-DP-2..7+card0-HDMI-A-1(connected), and logged 0 new kernel errors (8 vs 8 baseline) and 2/2 baseline failed units.Automated checks
dtschema_vm.sh):dt_binding_checkrc 0,dtbs_checkacross all 11 T6050 DTBs rc 0,dt-validate0 lines (normal and 4 alias nodes), 0 new / 0 gone diagnostics.host_tests_vm.sh): 545/549 pass on both bare basee7528180365fand this series (0 of 549 runs differ), including the newdcp-fabricempty/disabledtypec-routesKUnit cases.e7528180365fandmain237b796c(identical per-board changes).scripts/checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks across all 5 commits.