Skip to content

phy: apple: atc-t6050-dp: start a fixed DP PHY at probe - #3591

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/t6050-fixed-dp-phy-start
Nov 29, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/t6050-fixed-dp-phy-start

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

What: Starts a T6050 DP PHY that has no Type-C mux (apple,t6050-dp-phy without mode-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:

  • Without this change, with an instrumented copy of the driver: the PHY gets no set_mode/configure call 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.
  • With a build that starts the PHY at probe: the first connect at 1.5 s trains HBR3 on four lanes. gnome-shell lights the MSI at 2560x1440@60 (XR30), with 35 modes up to 3840x2160, 0 link faults and 0 DCP crashes. HDMI-CEC on that boot: /dev/cec0 at physical address 2.0.0.0, and the monitor answers power-status queries.
  • This exact patch (row comment below): the same result as the probe-start build. The dock monitor on Type-C stays connected.

Risk: two-way · only DP PHYs without mode-switch change. 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).

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]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

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 appledrm, and the HDMI port described (#3497, #3498, aura#558, aura#559 in the Stage 2). MSI MPG 325CQRXF on the HDMI port.

  • HDMI-A-1 connects on the first connect at 1.7 s, trained at HBR3 (SET_LINK_RATE 0x1e) on 4 lanes, with 0 link faults. gnome-shell scans out 2560x1440@60, and the monitor's EDID is read ('MPG 325CQRXF').
  • Type-C is unaffected: the dock's DisplayPort monitor on the left-front port stays connected.
  • HDMI-CEC: /dev/cec0 (2b2e00000.dcp) at physical address 2.0.0.0. The monitor answers power-status queries; Image View On and Standby are transmitted (the monitor ignores Standby).
  • Back on the default boot afterwards: 0 failed units, 0 DCP crashes.

Without this patch, on the same tree: link faults 22/24 at every connect, the connector stays disconnected, and the PHY gets no set_mode/configure before the faults (instrumented build).

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 29, 2026 03:20
@RyanTheTide
RyanTheTide requested review from a team as code owners November 29, 2026 03:20

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with if (dp->typec || dp->combo) return; so Type-C and combo PHYs are untouched, takes &dp->lock, calls atc_start(dp) (which returns 0 immediately when dp->enabled is already set, avoiding double domain/register init if t6050_dp_set_mode(PHY_MODE_DP) races after devm_of_phy_provider_register()), and warns rather than failing probe on error so a later PHY_MODE_DP can still retry.
    • t6050_dp_set_mode() on PHY_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 preserving atc_stop(dp) for Type-C non-combo PHYs.
    • .remove / .shutdown (t6050_dp_shutdown()) already acquires &dp->lock and runs atc_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-1 connects on first attempt at 1.7 s (HBR3, 4 lanes, 0 link faults, 2560x1440@60, EDID read, /dev/cec0 at 2.0.0.0), Type-C dock DP stays connected, and default boot restores clean (0 failed units, 0 DCP crashes); negative control without patch reproduces link faults 22/24.
Evidence
  • Head: 36f0cac7fee1 (MERGEABLE on main, +25/-2, 1 file).
  • Risk: two-way (only affects apple,t6050-dp-phy nodes without mode-switch; none are merged in main yet).
  • CI at review time: host-tests, pr-text, readiness queued/pending.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 36f0cac7. App approved (NEON-PR-REVIEW2). T6050 fixed (non-Type-C) DP PHY only. Merges 1 h from now under the 6-point rule once hosted CI is green and the exact-head row in the body checks out, unless you object.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 36f0cac7. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: T6050-fixed-DP-PHY-only;check-row. (5) There's no blocking review. (6) Dj was pinged here 168 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit da99534 into main Nov 29, 2026
4 of 11 checks passed
@RyanTheTide
RyanTheTide deleted the fix/t6050-fixed-dp-phy-start branch November 29, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant