Repository navigation
phy: apple: atc-t6050-dp: start a fixed DP PHY at probe - #3591
Conversation
A T6050 DP PHY without a Type-C mux, such as the one in front of the MacBook Pro's HDMI port (ATC3, a DP-to-HDMI converter behind it), has nothing that starts it before the display processor connects. A Type-C PHY is started by its mux; the display processor only asks for DisplayPort mode (set_mode) once the link is up. With the PHY off, firmware 27 never gets there: every connect fails with DPTX link faults 22 (DEVICE_BUSY_TIMEOUT) and 24 (DEVICE_NOT_STARTED) on the PHY's target, and the HDMI connector stays disconnected with the monitor's hot-plug line high. Start a fixed DP PHY at the end of probe and keep it started: when the display processor deactivates the port, only the link goes down, as on a combo PHY. Type-C and combo PHYs are unchanged. On a K114s (MacBook Pro 14-inch, M5 Pro) with its HDMI port described, the first connect then trains HBR3 on four lanes and the monitor lights; without this, the connect fails the same way at boot and on every retry. Signed-off-by: Ryan Murray <[email protected]>
|
K114s row of this exact patch (2026-11-29 14:16): bridge6 kernel 7.3.0-k114sstack5 with this driver built as a signed module, stock
Without this patch, on the same tree: link faults 22/24 at every connect, the connector stays disconnected, and the PHY gets no |
There was a problem hiding this comment.
Verdict: MERGE at 36f0cac7 (once queued CI is green)
Blockers: none (await the queued CI checks at 36f0cac7 before merging)
Checked:
drivers/phy/apple/atc-t6050-dp.c:t6050_dp_start_fixed()guards withif (dp->typec || dp->combo) return;so Type-C and combo PHYs are untouched, takes&dp->lock, callsatc_start(dp)(which returns0immediately whendp->enabledis already set, avoiding double domain/register init ift6050_dp_set_mode(PHY_MODE_DP)races afterdevm_of_phy_provider_register()), and warns rather than failing probe on error so a laterPHY_MODE_DPcan still retry.t6050_dp_set_mode()onPHY_MODE_INVALID:dp->combo || !dp->typec ? atc_link_rate(dp, -1) : atc_stop(dp)drops only the link for fixed DP PHYs (keeping the PHY started for reconnects without link faults 22/24) while preservingatc_stop(dp)for Type-C non-combo PHYs..remove/.shutdown(t6050_dp_shutdown()) already acquires&dp->lockand runsatc_stop(dp), tearing down the link,aux_off,dp_poweroff, and both power domains cleanly.
- Exact-patch K114s (M5 Pro) hardware row at
36f0cac7:HDMI-A-1connects on first attempt at1.7 s(HBR3, 4 lanes,0link faults,2560x1440@60, EDID read,/dev/cec0at2.0.0.0), Type-C dock DP stays connected, and default boot restores clean (0failed units,0DCP crashes); negative control without patch reproduces link faults 22/24.
Evidence
- Head:
36f0cac7fee1(MERGEABLEonmain,+25/-2, 1 file). - Risk:
two-way(only affectsapple,t6050-dp-phynodes withoutmode-switch; none are merged inmainyet). - CI at review time:
host-tests,pr-text,readinessqueued/pending.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
What: Starts a T6050 DP PHY that has no Type-C mux (
apple,t6050-dp-phywithoutmode-switch, e.g. ATC3 in front of the MacBook Pro's HDMI converter) at the end of probe, and keeps it started: when the display processor deactivates the port, only the link goes down, as on a combo PHY. Before this nothing started such a PHY. The display processor only asks for DisplayPort mode once the link is up, and with the PHY off firmware 27 never gets there: every connect fails with DPTX link faults 22 (DEVICE_BUSY_TIMEOUT) and 24 (DEVICE_NOT_STARTED) on the PHY's target. The HDMI connector then stays disconnected while the monitor's hot-plug line is high. Type-C and combo PHYs are unchanged.Tested: K114s (MacBook Pro 14-inch, M5 Pro), bridge6 kernel 7.3.0-k114sstack5, with the HDMI port described (#3497 + #3498, aura#558 + aura#559 in the Stage 2) and an MSI MPG 325CQRXF on the HDMI port:
set_mode/configurecall before the faults. drm/apple: retry a fixed HDMI link that did not come up #3588's retries at 10, 20 and 38 s fail the same way./dev/cec0at physical address 2.0.0.0, and the monitor answers power-status queries.Risk: two-way · only DP PHYs without
mode-switchchange. Today that is the K114s/K114c ATC3 with #3498; no merged tree describes one.Not yet: unplug/replug of the HDMI cable (deactivate path) needs hands. s2idle with the fixed PHY started (no PM hooks for non-combo PHYs, as before).