Repository navigation
arm64: apple: t8152-j873g: rear USB-C ports USB2/USB3/USB4/TBT/DP-altmode boot & hotplug - #3617
Conversation
Describe usb-drd0 (back-middle, 0x402430000, AIC IRQ 1621) and usb-drd3 (back-right, 0x412430000, AIC IRQ 1834) alongside usb-drd1 (back-left) and usb-drd2 (front internal hub), together with their DART instances (0x403020000/0x403040000, IRQ 1608 and 0x413020000/0x413040000, IRQ 1821) and PMGR power states (ps_atc0_usb at 0x120, ps_atc3_usb at 0x1e0). Drop the now-redundant two-window &dwc3_0_dart and &dwc3_3_dart overrides in t8152-j873g.dts, matching dwc3_1_dart and dwc3_2_dart. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
dwc3_get_extcon() walks phys[0]'s OF graph and calls extcon_find_edev_by_node() on the remote node, even on host- or peripheral-only controllers where dwc->edev is never used. When a host-only DWC3 controller (such as apple,t8152-dwc3) references a Type-C PHY whose OF graph points at a usb-c-connector, this fails probe with -ENODEV (when CONFIG_EXTCON is disabled) or defers indefinitely. Return NULL early from dwc3_get_extcon() whenever CONFIG_USB_DWC3_DUAL_ROLE is disabled or dr_mode explicitly selects host or peripheral mode. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Allow non-fixed-USB3 apple,t8152-atcphy Type-C nodes to describe the optional USB3 PIPE handler register bank alongside core so they can switch between USB3 SuperSpeed and USB4/CIO modes. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Extend T8152 Type-C PHY handling in phy-apple-atc to switch cleanly between OFF, USB3 SuperSpeed (normal and reversed plug orientations), and USB4/CIO while preserving DisplayPort alt-mode arbitration with the display driver: - Map the optional pipehandler window and parse optional apple,tunable-lane0-usb / apple,tunable-lane1-usb lists on T8152 Type-C PHYs. When either is absent (older DTB or bootloader), USB3 falls back to USB2 without affecting USB4 or DisplayPort. - Power up lane 0 for normal USB3, lane 1 for reversed USB3, and both lanes for CIO in atcphy_lanes_up_t8152(); power both lanes down on shutdown. - Register the USB3 PHY provider on T8152 Type-C PHYs with a pipehandler and coordinate xHCI's SuperSpeed root port power off/on around PIPE handover and mode transitions, finding the plain apple,t8152-dwc3 host controller via its phys phandle. - Add KUnit coverage for T8152 reversed USB3 lane setup and Type-C USB3 target-mode mapping. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Describe the USB3 PIPE handler register banks (0x402414000, 0x40a414000, 0x412414000) on atc0_phy, atc1_phy and atc3_phy, attach each rear controller (usb0, usb1, usb3) to its ATC USB3 PHY, and drop the high-speed cap. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
…n T8152 Extend T8152 Type-C PHY mode switching so all rear USB-C ports support Thunderbolt 3, USB4 (with tunneled USB3 PIPE routing), standalone USB3, and simultaneous Pin B/D/F USB3 SuperSpeed alongside 2-lane DisplayPort on boot and hotplug: - Allow APPLE_ATCPHY_MODE_TBT alongside APPLE_ATCPHY_MODE_USB4 in atcphy_cio_start(). - Route the PIPE handler to ATCPHY_PIPEHANDLER_STATE_USB4 in USB4 mode (and coordinate xHCI SuperSpeed root port power off/on across both USB3 and USB4 PIPE transitions). - Convert -EAGAIN from atcphy_usb3_pm_get() in atcphy_cio_mux_set() to -ETIMEDOUT so tipd retries cleanly if Type-C probes before xhci-hcd registers its SuperSpeed root hub. - Implement DP PHY set_mode() to bring up and tear down the unused PMA and PIPE handler for SuperSpeed USB3 alongside an active 2-lane DP link (Pin B/D/F) without touching DPPLL, AUX, or the DP PMA. - Add KUnit coverage for TBT/USB4 PIPE selection and Pin D lane setup. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
… ATC ports Coordinate T8152 USB-C DisplayPort activation/deactivation with the ATC PHY's USB3/USB4/TBT modes for reliable boot and hotplug transitions: - Notify the ATC DP PHY of the active lane count via phy_set_mode_ext() after atc_activate() (and when adopting a bootloader link), and park it with PHY_MODE_INVALID before atc_deactivate() tears down the common block so Pin B/D/F USB3 SuperSpeed can run alongside 2-lane DP. - Retry cleanly on -EBUSY from disp->phy->activate() in iboot_connector_detect() when DP hotplug races USB3/USB4/TBT teardown. - Always deactivate the PHY on unplug even if ibootep_set_power(false) returns an error, and immediately release atc_owner[] once the Type-C sink is gone. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Allow T8152 Type-C PHYs to describe their usb2phy and usb2evt register banks alongside core and pipehandler so Linux can re-synchronize the eUSB2 host PHY with its external repeater across Type-C hotplug. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
On T8152 rear Type-C ports, the PD controller resets the port's external eUSB2 repeater out-of-band on every physical CC disconnect/reconnect. Because the USB2 host controllers stay running across hotplug, the SoC eUSB2 PHY becomes desynchronized from the repeater (HOSTDISCONNECT latched in USB2PHY_SIG) and USB2 devices fail to enumerate after a physical unplug/replug or into a port that was empty at boot. Map the optional usb2phy and usb2evt banks on T8152 Type-C PHYs and power-cycle the eUSB2 PHY back into host mode in atcphy_set_orientation() when reconnecting after disconnect or when HOSTDISCONNECT is latched, while leaving live boot connections untouched. Add a KUnit test covering boot, hotplug disconnect/reconnect, and empty-port attach. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
…plug Add the usb2phy and usb2evt register banks to atc0_phy, atc1_phy, and atc3_phy on J873g so the ATC PHY driver can re-synchronize the eUSB2 host PHY with each port's external repeater on physical Type-C hotplug. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
When a sleeping USB-C monitor (such as an Eizo EV2780) wakes up after a live video stream starts, it finishes initializing ~3.5 seconds later by emitting a long HPD low->high pulse that clears its DPCD link registers and expects the source to retrain. Previously, t8152_typec.c dropped these pulses to avoid looping on an idle monitor's periodic 160 ms HPD pulses, leaving the freshly awakened monitor black until it returned to sleep. Track HPD drop epochs in t8152_typec.c and trigger a rate-limited clean reconnect in iboot_connector_detect() only when the display is actively driving a mode (ib->powered && ib->mode_set), while still ignoring idle HPD pulses. Also force a full lane restart in atc_set_link_rate() when a prior AUX0 crossbar borrow set needs_retrain, and prefer matching the exact timing mode flags when restoring cur_mode. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
There was a problem hiding this comment.
Verdict: FIX, then re-review at 0ea9645c
Blockers:
pipe_pendingport wedge on USB3 PIPE routing failure (drivers/phy/apple/atc.cL5785–5792, L5850–5856, L7184–7186):atcphy_configure_pipehandler()setsatcphy->pipe_pending = truebeforeatcphy_configure_pipehandler_usb3()(L2262) and only clears it on success (L2279). Ifatcphy_configure_pipehandler(atcphy, true)fails inatcphy_cio_start()(L5850),atcphy->pipe_stateremainsATCPHY_PIPEHANDLER_STATE_DUMMYwhileatcphy->pipe_pendingremainstrue.atcphy_cio_start()then callsatcphy_cio_stop()(L5854), whose guard (atcphy->pipe_state != ATCPHY_PIPEHANDLER_STATE_DUMMY, L5786) omits|| atcphy->pipe_pending. As a result,atcphy_cio_stop()skipsatcphy_park_pipehandler()and callsatcphy_configure(atcphy, APPLE_ATCPHY_MODE_OFF)(L5793), which fails with-EBUSY(L4573if (atcphy->pipe_pending) return -EBUSY;), leavingcio_powered = trueandpipe_pending = truepermanently wedged (blocking subsequentatcphy_cio_stop(),atcphy_configure(), andatcphy_cio_dp_power_on()). Checkatcphy->pipe_state != ATCPHY_PIPEHANDLER_STATE_DUMMY || atcphy->pipe_pendingin bothatcphy_cio_stop()(L5786) andatcphy_cio_dp_usb3_stop()(L7185), rejectpipe_pendinginatcphy_cio_in_mode(), and add a KUnit test covering failed USB3 PIPE routing recovery.- Pin D USB3 silent deferral loss on boot-order race (
drivers/phy/apple/atc.cL7095–7099, L7334–7339): Whileatcphy_cio_mux_set()converts-EAGAINfromatcphy_usb3_pm_get()to-ETIMEDOUT(L7289) sotipdretries beforexhci-hcdregisters its SuperSpeed root hub,atcphy_cio_dp_usb3_sync()(void) silently returns onatcphy_usb3_pm_get()failure (-EAGAIN) anddp_usb3_only:returns0(L7339). Oncehost_activeanddp_lanes == 2are already set, nothing retriesatcphy_cio_dp_usb3_sync(), leaving Pin D SuperSpeed USB3 absent until unplug/replug. Propagate the error fromatcphy_cio_dp_usb3_sync()(converting-EAGAINto-ETIMEDOUTinatcphy_cio_mux_set()) or schedule a retry. - Stacked base & CI: Stacked on
linux#3613(feat/t8152-j873-dpaudio, which currently has requested changes and conflicts withmain); hosted CI (DWC3/ATC,kunit,pr-text,readiness) is still queued and needs to pass once#3613lands and#3617is retargeted tomain(with the J873g verification row referencing the final head SHA).
Checked: All 11 modified files acrossDocumentation/devicetree/bindings/phy/apple,atcphy.yaml,arch/arm64/boot/dts/apple/t8152-j873-usb.dtsi,t8152-j873g.dts,drivers/usb/dwc3/core.c,drivers/phy/apple/atc.c,atc-test.c,drivers/gpu/drm/apple/iboot_drm.c,iomfb_iboot.h,t8152_atc.c,t8152_display.h, andt8152_typec.cat0ea9645c.
Evidence
- Verified clean parts:
drivers/usb/dwc3/core.c: skippingdwc3_get_extcon()when!IS_ENABLED(CONFIG_USB_DWC3_DUAL_ROLE)or explicithost/peripheraldr_modeis safe (dwc->edevis only consumed forUSB_DR_MODE_OTG/DWC3_GCTL_PRTCAP_OTGincore.canddrd.c).drivers/phy/apple/atc.c&atc-test.c: T8152atcphy_lane_mask_t8152()(normal lane 0, reversed lane 1, CIO both),atcphy_t8152_usb2_reset()+HOSTDISCONNECT/usb2_need_resethotplug sequencing (preserving live boot USB2 connections),atcphy_find_usb3_controller()apple,t8152-dwc3phandle lookup, and all 4 new KUnit cases are clean.drivers/gpu/drm/apple/t8152_typec.c,t8152_atc.c,iboot_drm.c: HPD drop-epoch tracking (hpd_seq) rate-limited to active streams (ib->powered && ib->mode_set, max 2 retries per 30 s),-EBUSYactivate retry, unconditional PHY deactivate on unplug, immediateatc_owner[]release,needs_retrainfull lane restart inatc_set_link_rate(), and timing-modeflagsmatching are clean.Documentation/devicetree/bindings/phy/apple,atcphy.yaml& J873g DTS:pipehandler/usb2phy/usb2evtreg banks,usb0/usb1/usb3+ split DARTs (dwc3_0_dart_1,dwc3_3_dart_1) andps_atc0_usb/ps_atc3_usbpower states match the existingusb1/usb2structure.
… host test Address review blockers and host-tests compilation on the T8152 Type-C USB3/CIO path: - Check pipe_pending alongside pipe_state != DUMMY in atcphy_cio_stop() and atcphy_cio_dp_usb3_stop(), and reject pipe_pending in atcphy_cio_in_mode(), so a failed USB3 PIPE routing in atcphy_cio_start() parks the pipehandler instead of wedging at -EBUSY. - Add KUnit test atcphy_test_t8152_pipe_pending_rollback covering the failed USB3 PIPE routing rollback path. - Return int from atcphy_cio_dp_usb3_sync() and propagate errors (mapping -EAGAIN to -ETIMEDOUT) in atcphy_cio_mux_set() on the dp_usb3_only path so tipd retries when xhci-hcd has not registered its SuperSpeed root hub yet. - Add cio_only and usb3_tunables to tools/asahi/atc-usb3-tests.py's mock struct apple_atcphy. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Addressed all blockers in
|
There was a problem hiding this comment.
Verdict: HOLD at 0dc1623d — both Round 215 code blockers (pipe_pending rollback wedge and Pin D USB3 -EAGAIN deferral propagation) and the atc-usb3-tests.py mock struct fix are cleanly resolved in 8e4e3b77; awaiting base PR #3613 landing + retarget to main, green hosted CI, and an exact-head J873g hardware row.
Blockers:
- Land stacked base PR
linux#3613(feat/t8152-j873-dpaudio) and retarget#3617tomain. - Wait for hosted CI (
DWC3/ATC,kunit,host-tests,pr-text,readiness) to pass on the finalmain-based head. - Post a J873g verification row referencing the final head SHA after
8e4e3b77.
Checked: Commit8e4e3b77(drivers/phy/apple/atc.c,drivers/phy/apple/atc-test.c,tools/asahi/atc-usb3-tests.py) and merge commit0dc1623d.
Evidence
- Code blockers resolved (
8e4e3b77):drivers/phy/apple/atc.c:atcphy_cio_stop()andatcphy_cio_dp_usb3_stop()now check(atcphy->pipe_state != ATCPHY_PIPEHANDLER_STATE_DUMMY || atcphy->pipe_pending)before parking, andatcphy_cio_in_mode()returnsfalsewhenatcphy->pipe_pendingis set. New KUnit testatcphy_test_t8152_pipe_pending_rollbackverifies recovery without-EBUSYwedge (phy-apple-atc*68/68PASS).drivers/phy/apple/atc.c:atcphy_cio_dp_usb3_sync()now returnsint(mapping-EOPNOTSUPPto-ENODEVon port-off and preservingport_onerrors) andatcphy_cio_mux_set()'sdp_usb3_only:path propagates the error with-EAGAIN -> -ETIMEDOUTsotipdretries whenxhci-hcdhas not yet registered its SuperSpeed root hub.tools/asahi/atc-usb3-tests.py: addscio_only, usb3_tunablesto the mockstruct apple_atcphy.
- Nit (non-blocking): Merge commit
0dc1623domits aSigned-off-by:trailer; include DCO sign-off on any final merge commit when retargeting tomain.
…dcp mocks Address follow-up review blockers and host-tests compilation on T8152 rear Type-C ports: - Check TYPEC_STATE_SAFE before USB_TYPEC_TBT_SID in atcphy_cio_target_mode() so SAFE always maps to APPLE_ATCPHY_MODE_OFF. - Make atcphy_cio_dp_usb3_stop() return int and refuse to power down the USB3 lane or clear dp_usb3_active when atcphy_park_pipehandler() fails (same guard in atcphy_cio_dp_usb3_sync() rollback), propagating the error in atcphy_cio_dp_power_off(), atcphy_cio_dp_set_mode(), and atcphy_cio_mux_set(). - Propagate atcphy_cio_dp_usb3_sync() errors (including -EAGAIN) from atcphy_cio_dp_set_mode() instead of returning 0. - Add KUnit coverage for TBT+SAFE precedence and failed PIPE park during Pin D USB3 teardown (phy-apple-atc* 69/69 PASS). - Update apple-dcp host selftest mock structs and helpers (pm.py, phy.py, quiesce.py, dwc3/mocks.c) for T8152 USB3/USB2 fields. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Addressed all follow-up blockers and selftests in
|
There was a problem hiding this comment.
Verdict: FIX, then re-review at 9fe042aa
Blockers:
atc_deactivate()ignoresphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0)failure (drivers/gpu/drm/apple/t8152_atc.cL487–527):fb450c06now properly returns an error fromatcphy_cio_dp_usb3_stop()/atcphy_cio_dp_set_mode()and refuses to power down the USB3 lane or cleardp_usb3_activewhenatcphy_park_pipehandler()fails, and refuses to drop power domains inatcphy_cio_dp_power_off(). However,atc_deactivate()discards the return value ofphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0)at L487, so if PIPE parking fails it still powers downATC_AONand putsATC_CFGinto small-sleep under an unparked USB3 PIPE, setsatc->active = falseat L514, and then hitsphy_power_off()failure at L516 — leavingdisplay_owned = trueandphy->power_count = 1permanently stranded (while L523–527 also clearsatc_owner[atc->index] = NULLand futureatc_deactivate()calls short-circuit on!atc->active). Abortatc_deactivate()before touching the common block whenphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0)returns a non-zero error (other than-EOPNOTSUPP), matching the existingatc_dp_stop()early return at L488, and avoid releasingatc_ownerifphy_power_off()fails.- Stacked base & merge readiness: Land base PR
linux#3613(feat/t8152-j873-dpaudio) and retarget#3617tomain. - CI & exact-head hardware evidence: Wait for hosted CI (
source,pr-text,kunit,DWC3/ATC,host-tests,readiness) to pass on the finalmain-based head, and post a J873g hardware verification row referencing the exact final head SHA.
Checked:
- Verified
fb450c06indrivers/phy/apple/atc.canddrivers/phy/apple/atc-test.c:TYPEC_STATE_SAFEnow precedesUSB_TYPEC_TBT_SIDinatcphy_cio_target_mode();atcphy_cio_dp_usb3_stop()andatcphy_cio_dp_usb3_sync()rollback keep the USB3 lane up anddp_usb3_activeset ifatcphy_park_pipehandler()fails;atcphy_cio_dp_power_off(),atcphy_cio_dp_set_mode(), and both paths ofatcphy_cio_mux_set()propagate stop/sync errors cleanly; KUnit cases cover both fixes. - Verified
apple-dcphost selftest mock updates (dwc3/mocks.c,phy.py,pm.py,quiesce.py) and clean DCO-signed merge9fe042aaoffeat/t8152-j873-dpaudio(ed0fdb17).
Evidence
drivers/phy/apple/atc.cL5998–6001:TYPEC_STATE_SAFEchecked beforeUSB_TYPEC_TBT_SID; covered byatcphy_test_cio_target_mode().drivers/phy/apple/atc.cL7264–7281, L7308–7353:atcphy_cio_dp_usb3_sync()rollback andatcphy_cio_dp_usb3_stop()guardatcphy_cio_dp_usb3_lane_down()/dp_usb3_active = falseon!park_ret/!ret; covered byatcphy_test_t8152_dp_usb3_stop_park_fail().drivers/gpu/drm/apple/t8152_atc.cL487:phy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0);return value discarded before L493–514 common-block teardown and L516phy_power_off(atc->phy)/ L523–527atc_ownerrelease.gitmerge commit9fe042aa76fb46b694bb540ab6cb32ecf2f9f66e: parentsfb450c06+ed0fdb17, DCO-signed, zero conflicts.
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
There was a problem hiding this comment.
Verdict: FIX, then re-review at 460f8ea4
Blockers:
atc_deactivate()still ignoresphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0)failure (drivers/gpu/drm/apple/t8152_atc.cL487–527): Carried forward from9fe042aa(460f8ea4only mergese4f3bebffromfeat/t8152-j873-dpaudio). Because L487 discards the return value ofphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0), a failed PIPE park inatcphy_cio_dp_usb3_stop()still allowsatc_deactivate()to power downATC_AONand putATC_CFGinto small-sleep under an unparked USB3 PIPE, clearatc->active = false(L514), hitphy_power_off()failure (L516), and clearatc_owner[atc->index] = NULL(L523–527) while leavingdisplay_owned = trueandphy->power_count = 1permanently stranded. Abortatc_deactivate()before touching the common block whenphy_set_mode_ext(atc->phy, PHY_MODE_INVALID, 0)returns a non-zero error (other than-EOPNOTSUPP), and do not clearatc_ownerifphy_power_off()fails.- Stacked base & merge readiness: Land base PR
linux#3613(feat/t8152-j873-dpaudio) and retarget#3617tomain. - CI & exact-head hardware evidence: Wait for hosted CI (
source,pr-text,kunit,DWC3/ATC,host-tests,readiness) to pass on the finalmain-based head, and post a J873g hardware verification row referencing the exact final head SHA.
Checked:
- Verified
9fe042aa..460f8ea4is solely a clean, conflict-free DCO-signed merge offeat/t8152-j873-dpaudio(e4f3bebf,drivers/gpu/drm/apple/audio.c+13/-5); no changes todrivers/gpu/drm/apple/t8152_atc.cordrivers/phy/apple/atc.c.
Evidence
gitmerge460f8ea4bda8868436143db51049a47a1ea61e9d: brings ine4f3bebf(dcpaud_probe()device_is_bound()+av_audiosrv_ready()guard beforedevice_link_add()).drivers/gpu/drm/apple/t8152_atc.cL487–527 unchanged from9fe042aa.
|
Exact-head hardware verification on Mac mini M6 (J873g, T8152, FW 27.2) at
|
Pick up unrelated CI harness fixes on main; no changes to PR files. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Forward-merged Hardware row at |
There was a problem hiding this comment.
Verdict: HOLD at ea9c472
Blockers: Hosted DT/schema and DWC3/ATC profiles are queued.
Checked: The new J873g report confirms all rear Type-C ports registered, their PHY and xHCI bindings came up, and the stock kernel returned cleanly. The row measures rear-port registration and controller bring-up. The earlier physical DP/USB3 and USB4 hotplug cases remain the protocol evidence. Compared the two heads and confirmed the J873g DTS delta is limited to the fan node, with no change to the USB DTSI or ATC, DWC3 and iBoot display sources.
|
Exact-head hardware verification on Mac mini M6 (
|
Mark the atcphy_t8152_usb2_reset() stub in dwc3/mocks.c with __attribute__((unused)) to match phy.py and fix the clang -Werror,-Wunused-function failure in host-tests case dwc3-teardown. Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Fixed Hardware row at |
There was a problem hiding this comment.
Verdict: HOLD at 0998791
Blockers: Current-head hosted Host, DT and USB checks remain pending.
Checked: The forward delta only marks the DWC3 selftest mock as unused, addressing the Clang warning without changing the tested kernel or DT paths. The author reports 35/35 lifecycle and 98/98 full Apple DCP host tests with Clang 22. The prior J873g target and J473 peer rows carry forward across this test-only change.
There was a problem hiding this comment.
Verdict: MERGE at 09987918c5ca
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: The forward delta only marks the DWC3 selftest mock as unused, addressing the Clang warning without changing the tested kernel or DT paths. The author reports 35/35 lifecycle and 98/98 full Apple DCP host tests with Clang 22. The prior J873g target and J473 peer rows carry forward across this test-only change.
Follow-ups (not blocking): current-head host/DT/USB checks
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Merged Hardware row at
Details
|
Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
|
Forward-merged
|
There was a problem hiding this comment.
Verdict: MERGE at 0f05e17
Delta re-check from the App approval at 0998791 (ORCH5 ask; one round).
Checked:
- 0998791..0f05e17 has no new non-merge commits: only two forward merges of main (f74b2a5, 0f05e17).
- Tried to find logic slipped in through conflict resolution. Across the 14 files the PR touches,
git diff 09987918 0f05e17eequals main's own change between the two merge bases (e6c7b03..cafee21), as a sorted line set. The merges added nothing of their own. - The PR's diff against main is smaller than at 0998791 (17 files to 14) because the stacked parent #3613 has merged. The 6 drm/apple files carry exactly the same change as before. In
atc.cthe cio_only/fixed_usb2usb3_port_readylogic is identical at both heads.
Follow-ups (not blocking):
- Exact-head CI and the merge gate's row are on B2-MERGE. The J873g rows in the body are at 1e8cadc/460f8ea4, before these main merges.
DjDeveloperr
left a comment
There was a problem hiding this comment.
Reviewed rear-port reset, PIPE routing and rollback, and display reconnect ordering. Verified all ten touched runtime, DT, and binding blobs match the J873g boot from f74b2a5. The J473 display peer result carries through the clean forward merges. Hosted Apple build, DT, host, DWC3/ATC and DCP checks passed at this commit.
What:
Stacked on #3613 (
feat/t8152-j873-dpaudio) and paired with aurora-silicon/aura#565.Enable full Thunderbolt/USB4, USB2, USB3 SuperSpeed, and DisplayPort Alt Mode on all three rear USB-C ports of Mac mini M6 (
J873g,T8152—ATC0back-middle,ATC1back-left,ATC3back-right) across cold boot and physical hotplug:usb0/usb1/usb3(apple,t8152-dwc3), skipdwc3_get_extcon()when OTG is unused, wireusb2phy/usb2evtbanks onatc0_phy/atc1_phy/atc3_phy, and re-synchronize the eUSB2 host PHY with its external repeater on Type-C disconnect/reconnect (and empty-port attach).pipehandleronatc0_phy/atc1_phy/atc3_phy, add T8152 USB3 SuperSpeed switching, TBT3/USB4 PIPE routing, safepipe_pendingrollback, and concurrent Pin B/D/F 2-lane DP + USB3 SuperSpeed lane bring-up/teardown with port-off/park error propagation and partial-rollback retry inphy-apple-atc.t8152_atc.c/iboot_drm.c/iomfb_iboot.c(propagating and retryingdeactivate/select/activateerrors and retaining power/ownership on failed park orphy_power_off()), force lane restart when AUX0 crossbar borrowing setneeds_retrain, and track HPD drop epochs int8152_typec.cso active-stream wake-up HPD bounces cleanly reconnect while idle 160 ms pulses stay ignored.Tested:
J873g,T8152, macOS 27.2 firmware) at exact head1e8cadcc92bf(paired withaura#565d1d7ca31, default cmdline): PASS — 0 failed units, 0WARNING:/Call trace/DART faults, all 4 xHCI hosts (Bus 001..008) up,card0-DP-1HDMI2560x1440,DisplayPortaudio streaming (32a140000IRQ 1120 -> 20), liveaudio-controller-1unbind/bind, and post-rebind streaming (20 -> 40).460f8ea4bda8/0ea9645cba84:phy-apple-atc 413000000.phy: USB3 SuperSpeed active alongside 2-lane DP (lane 1)with sleeping Eizo EV2780 cold-boot & empty-port hotplug (Bus 007480M +Bus 0085000M +2560x1440DP + DP audio), plus USB4 NVMe (ASM2464PD+ 980 PRO) hotplug onATC1at 40 Gb/s CL0 (2.7 GB/s read) concurrently with Eizo onATC3.1e8cadcc92bf:phy-apple-atc*arm64 KUnit 71/71 passed,tools/asahi/atc-usb3-tests.py --cc gcc --mutations39/39 passed (all mutations killed),apple-dcpselftests (phy.py13/13,quiesce.py19/19,audio.pyPASS),display.kunitconfigarm64 KUnit 174/174 passed,dt_binding_check/CHECK_DTBS=y apple/t8152-j873g.dtb/checkpatch.pl --strict0/0/0.Risk: two-way · T8152 (
J873g) rear USB-C ports (phy-apple-atc,dwc3/core.cnon-OTG extcon skip,drm/appleT8152 iBoot display/Type-C).Not yet:
mainonce T8152 / J873g DisplayPort and HDMI audio support #3613 lands.