Skip to content

phy: apple: atc: enable the dummy PHY on T8132 SuperSpeed ports - #1492

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-atc3-pipe
Nov 11, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:integration/aurorafrom
aeries0x:j604-atc3-pipe

Conversation

@aeries0x

@aeries0x aeries0x commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On the J604 (base M4 MacBook Pro 14") the right USB-C port (ATC3) fails its first USB3 start and is left without USB
until reboot:

phy-apple-atc 41aa90000.phy: Pipehandler lock not acked.
phy-apple-atc 41aa90000.phy: Failed to lock pipehandler
dwc3-apple 41a280000.usb: USB3 PHY setup failed, err=-110
phy phy-41aa90000.phy.7: phy poweroff failed --> -5
sn201202x 2-0c: failed to place Type-C mux in safe mode: -5

The wedged PHY then also refuses s2idle (atcphy_suspend returns -EBUSY).

The driver's debug output shows the only difference to the working ports in PIPEHANDLER_NONSELECTED_OVERRIDE after
the power domain comes up: ATC0 and ATC1 read 0x9332, ATC3 0x1332. Bit 15 is PIPEHANDLER_DUMMY_PHY_EN, and as the
comment on atcphy_enable_dummy_phy() says for T8122, the PIPE lock is only acknowledged while it is set. The driver
never sets it on T8132 (atcphy_needs_dummy_phy() excludes it) and relies on what iBoot left, which on the J604 is the
bit set on ATC0/1 but not on ATC3. ATC3 was not exercised before: USB3 on T8132 was qualified on the J713's ATC1.

This sets the bit in atcphy_setup_pipehandler() on T8132 ports with their SuperSpeed banks, at probe and after the
power domain was off. On ports where iBoot already set it nothing changes; atcphy_needs_dummy_phy() and the park
paths are untouched.

This goes with aurora-silicon/aura#154, which makes aura copy the T8132 USB3 calibration on the J604.

Testing

J604 (Mac16,1), integration/aurora dc8f6f7 + #1483 + this, chainloaded aura main + #149 + the USB3 and camera PRs,
tethered RAM-only boots, UGREEN USB-C hub with an Intenso USB3 stick, read-only direct dd reads:

  • ATC3 now reads nonsel=00009332 after power-up, the lock is acked (USB host route: ... ret=0 ... override=0x8333),
    and the hub, NIC and stick enumerate at 5000 Mbit/s in both orientations: 106 / 96 MB/s.
  • ATC0 and ATC1 unchanged: SuperSpeed in both orientations, 98-112 MB/s.
  • s2idle with the hub attached after ATC3 was used: keyboard wake, USB3 back at 5000 Mbit/s.
  • checkpatch.pl --strict: clean apart from the sign-off. tools/testing/selftests/drivers/apple/atc-t8132-usb3.py
    does not build on integration/aurora itself (its extracted atc.c functions call atcphy_t8132_phy_stop(),
    atcphy_mode_is_cio() and cio_tunables, which it does not extract), so it fails the same way with and without this.

Assisted-by: LLM

The T8132 PIPE lock that starts the routing to USB3 is only acknowledged
while PIPEHANDLER_DUMMY_PHY_EN is set, as on T8122. The driver never sets
it on T8132 and relies on the boot firmware: on the J604 (MacBook Pro
14" M4) iBoot leaves it set on ATC0 and ATC1 but not on ATC3, the right
port. There the first USB3 start fails and leaves the port without USB:

  phy-apple-atc 41aa90000.phy: Pipehandler lock not acked.
  dwc3-apple 41a280000.usb: USB3 PHY setup failed, err=-110
  sn201202x 2-0c: failed to place Type-C mux in safe mode: -5

with PIPEHANDLER_NONSELECTED_OVERRIDE reading 0x1332 on ATC3 against
0x9332 on ATC0 and ATC1. Set the bit when the PIPE handler is set up on a
port with its SuperSpeed banks, at probe and after the power domain was
off, so the port no longer depends on what the boot firmware left.

Assisted-by: LLM
Signed-off-by: Friedrich <[email protected]>
@aeries0x

Copy link
Copy Markdown
Contributor Author

Goes with aurora-silicon/aura#154 (aura copies the T8132 USB3 calibration on the J604); that one needs this first.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Codex (GPT-6.1 Sol), reviewing on @DjDeveloperr’s behalf.

No blocking findings. The extra dummy-PHY enable is confined to the T8132 SuperSpeed setup path, before publishing DUMMY state, and reuses the existing helper. Other generations and park paths remain unchanged; already-set boot state is idempotent. The reported J604 both-orientation/all-port read-only USB3 and hub-attached s2idle results exercise the regression. Existing host CI is green. The older extracted ATC selftest limitation is explicitly attributed to the base rather than claimed as a fresh pass. Land this before the companion Aura154 calibration gate expansion.

@DjDeveloperr
DjDeveloperr merged commit d7b6253 into aurora-silicon:integration/aurora Nov 11, 2026
1 check passed
IronsideXXVI added a commit to IronsideXXVI/omarchy-j604 that referenced this pull request Nov 12, 2026
- Kernel 1.848 = 1.847 + 0337: a T8132 root port's DART stays gated
  until the host has set the port up again after a deep sleep, so the
  first DART register read no longer goes to an unclocked port. Used
  only with the T8132 sleep sequence, which is off by default. Quick
  boot gate PASS, 46 of 46 checks.
- The carried Hyprland / bar pair is not installed any more: the
  0.57.1-2.605 revision failed its vkmark check with blur on (median
  1108 against a minimum of 1619), so the J604 runs the official
  hyprland 0.57.1-2 again and omarchy-dev 1.1. hyprland/ is removed
  (last published in fd61512); omarchy-dev/ is back to its 1.1 content.
  STATUS, README and not-installed/ say so.
- UPSTREAM.md: the six pull requests opened on 2026-11-12
  (omacom/omarchy#18582, #18583; omacom/omarchy-mac-pkgs#131 to #134);
  asahi-alarm/asahi-scripts#1 closed by us, carried downstream;
  aurora-silicon/linux#1492, #1010 and #1497 merged, #1384 closed
  without merging; the audio destination (Wave 2 #19); apple_nvmem_spmi
  not needed with omacom's kernel config; the dwc3-apple drop-in row.

Signed-off-by: Dylan Ironside <[email protected]>
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.

2 participants