Skip to content

J873g: USB3 on the front ports (T8152 in the ATC PHY driver, M6 Mac mini) - #1799

Open
sithglan wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-usb3
Open

sithglan wants to merge 3 commits into
aurora-silicon:integration/aurorafrom
sithglan:thomas/j873-usb3

Conversation

@sithglan

@sithglan sithglan commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Three commits on integration/aurora daa9e2de18bd. #1797 (the J873g's aurora-wip merge, which brings #1205's USB2 hosts) and #2459 (T8152 PSD power domains) have merged, so this is no longer stacked on them.

The J873g's (Mac mini M6, T8152) front USB-C ports sit behind an on-board VL822 hub on ATC2. With #1205 the hub's USB2 side works through usb-drd2. This adds its USB3 side in the shared ATC PHY driver:

  1. dt-bindings: phy: apple,atcphy: add the T8152 fixed-USB3 PHY. Adds apple,t8152-atcphy and apple,fixed-usb3, the PHY's power domains, and its common-a, common-b and lane0-usb tunable groups.
  2. phy: apple: atc: add T8152 for a fixed-USB3 port.
    • Layout in the match data. The T8152 match data reuses the T8142 PIPE handler fields. Three new layout fields are zero for every other SoC:

      • cfg_offset: the power and reset block is at 0x60000, behind the controller's DARTs.
      • lane_swap: bit 1 there.
      • sync_reset: the sync reset at 0x60030.

      Crossbar 0x110 is the existing USB3 setting. T8152 has no lane-mode register to write.

    • T8152-specific code:

      • lane 0's explicit power-up and power-down;
      • the crossbar write right after the power-up;
      • the BIST hold of lane 0's PIPE reset and power-down while the PIPE switches.
    • PIPE lock. The T8152 PIPE handler never acknowledges the lock. The PIPE changes under the request without waiting for an acknowledge (pipe_lock_unacked).

    • apple,fixed-usb3 marks a host-only port. Only the USB3 PHY is registered: no reset controller, Type-C mux or switch. The PIPE is routed when dwc3 powers the PHY on.

    • Power through genpd: ATC2's USB_AON and COMMON_DP_0/1 via pmgr-pwrstate, and PSD service 57 via pmdomain: apple: T8152 PSD services as power domains #2459.

    • Tests: KUnit cases, and the host-test fixtures that copy atc.c structures get the new fields.

  3. arm64: dts: apple: j873: USB3 on the front ports. Adds ATC2's power states, its PSD service and the PHY node. usb2 gets the PHY as its usb3-phy and drops maximum-speed = "high-speed".

Things to know

  • The front controller now waits for phy-apple-atc and the PSD and power-state providers. If the PHY isn't built or fails to probe, the front ports lose USB2 as well.
  • USB_AON is apple,always-on. It holds the USB controller's reset and the PIPE handler state that the loader sets up. Switched off (for example, by unloading the PHY driver while USB_AON was still switchable), the controller stays in reset until the next boot.
  • aura's J873 USB prep has to run first, as it does today. It powers USB_AON and the USB PSD, sets up the eUSB2 PHY in host mode, takes the DWC3 out of reset and releases the VL822 reset line.
  • The tunables come from this machine's ADT (26A434). There is deliberately no atcphy2 alias, so the loader's ATC tunable copy leaves them alone.
  • Suspend and kexec are not exercised; the J873g can't suspend yet (wifi: apple: centauri: Quiesce Alpha for sleep on every N1 board #2385).

Testing (M6, on #1797 + #2459 before they merged; the exact head 641f9d7e1b05 is still to be booted)

Restacked on 2026-11-22 onto #1797 e9724fe, which gives the USB DARTs ATC1_USB/ATC2_USB. The ATC PMGR node now holds those two states next to ATC2's DP and USB_AON states. That tree, as part of #2178's head, booted on the J873g with the front hub, keyboard and receiver as before.

Earlier rows:

  • The front xHCI has a 480M and a 10000M root. The VL822 appears on both, at 480M and at 10000M ("new SuperSpeed Plus Gen 2x1"). The keyboard and mouse behind it work, and the back-left controller is unchanged.
  • 5 dwc3 unbind/bind cycles: the hub comes back at 10000M each time.
  • Controller unbound, rmmod/modprobe phy-apple-atc: the three switchable domains go off and on again, and the hub comes back on USB2 and USB3.
  • PIPE lock: a test build that waited up to 150 ms got no acknowledge in 8 tries, in either direction, while the switch itself worked. With atc.c's 1 ms wait as a hard failure, every USB3 start failed.
  • KUnit phy-apple-atc*: 41/41, including phy-apple-atc-t8152. It covers the crossbar, lane 0 up and down, the power block at 0x60000/0x60030 with the DART words left untouched, and the unacknowledged lock.
  • tools/asahi/run-host-tests.py: 427/427.
  • scripts/dtc/apple-dt-check.sh against Merge aurora-wip 210c8f6e into integration/aurora (J873g NVMe, 10GbE, power off, USB2, audio) #1797 (ec172bbcc1ed): 0 new and 0 removed warnings (137 DTBs). Both changed bindings pass dt_binding_check.
  • Image, modules and DTBs build (LLVM 22). checkpatch --strict is clean.

cc @Acelogic @RyanTheTide @DjDeveloperr @LiamRay10

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Heads-up: this stack (#1798, #1799, #1800) now conflicts with integration/aurora in drivers/soc/apple/mailbox.c. The conflict comes in through #1797's merge commit a761a62, which brings aurora-wip's T8152 AOP and J873 ANS mailbox matches. It collides with 41c359d and 788441e on integration, which receive the T6050 GPU mailboxes by interrupt.

Could you refresh #1797 onto the current integration/aurora and rebase the three on it? When resolving, please keep those two commits' interrupt-driven receive path as it is. We'll review the listed commits once the stack is mergeable again.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (ceade2e, on integration/aurora 292773f). The branch is now e2555c5 (was 2fddae2) and merges cleanly again.

git range-diff shows the three commits unchanged.

The testing lines in the description are updated: apple-dt-check.sh against 292773f shows 0 new CHECK_DTBS warnings (8 fewer) and every changed binding passes, and the host tests pass 323/323, both with #1797 and all three J873g PRs. Not booted on the M6 at the new base yet.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (d87e41e, on integration/aurora 514ae1f). The branch is now 814b959 (was e2555c5) and merges cleanly again. git range-diff shows the three commits unchanged.

One commit is new: arm64: configs: asahi: build the T8152 ACIOPHY USB3 PHY. #1939 added hardware-defaults-tests, which requires every native driver option in asahi.config, and it failed on PHY_APPLE_ACIOPHY_USB3. defconfig plus asahi.config now resolves it to =m.

With #1797 and the three J873g PRs, at 514ae1f: apple-dt-check.sh shows 0 new CHECK_DTBS warnings (8 fewer) and every changed binding passes, and the host tests pass 321/321. The description is updated. Not booted on the M6 at the new base yet.

@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto the refreshed #1797 (bbfdefa, on integration/aurora 0abc2f3). The branch is now b6c31d8 (was 814b959) and merges cleanly again. git range-diff shows the four commits unchanged.

Booted on the M6 with the rebased stack: "apple-aciophy-usb3 383000000.phy: USB3 up", and both front-port hubs run at 10000 Mb/s. DT and host checks are as on #1797.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for getting USB3 up on the M6 front ports. 10 Gbit/s to the hub is a nice result.

Two things before this can go in. First, we avoid a second implementation of a mechanism the tree already has. drivers/phy/apple/aciophy-usb3.c (the CFG 0x60000 power-down/reset sequence, the tunable application and the lane power-up) repeats the ATC PHY bring-up that drivers/phy/apple/atc.c owns. Please extend atc.c instead: add T8152 match data, plus a fixed-USB3 mode for a port wired straight to a device with no Type-C mux, selected by a DT property on the PHY node. Then other ports and boards wired the same way get it for free.

Second, the file header and the comment near line 148 name macOS driver classes and functions. Please describe the sequence by its registers and steps only, with no reference to macOS internals.

When it lives in atc.c, we can run no-regression rows for the shared PHY path on our M1 Pro / M2 / M4 Pro / A18 Pro.

@sithglan
sithglan force-pushed the thomas/j873-usb3 branch 2 times, most recently from 1906255 to 6e2ae8b Compare November 19, 2026 18:27
@sithglan

Copy link
Copy Markdown
Contributor Author

Thanks. I've done the second point. The head is now 6e2ae8b6f4e0, on #1797's new head:

  • The aciophy-usb3.c file header now describes the bring-up by its steps: the power-down/reset release, the efuse/PLL tunables, crossbar 0x110, the remaining tunables, the PHY reset release, then the PIPE handler switch under the BIST overrides.
  • The lane 0 up/down, BIST override and PIPE switch comments now say what the code does, with no macOS class or function names.
  • I removed the same names from the two commit messages, the tunable comment in t8152-j873-usb.dtsi and the PR description.

No functional change: the driver builds with no W=1 warnings, and the diff is comments only.

I agree with the first point, moving the PHY into atc.c, and it's next: T8152 match data, plus a fixed-USB3 mode selected by a property on the PHY node, reusing atc.c's power-down/reset, tunable and lane power-up code. The T8152-specific parts are crossbar 0x110, the BIST hold around the PIPE handler switch, and lane 0's explicit power-up. It also needs the ATC's PMGR power states and PSD domain as real power domains rather than registers the PHY writes itself, which is the same PSD provider question I raised on #1797. Because it changes the bring-up path, I'll test it on the M6 before pushing.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for cleaning up the comments and commit messages. The description by registers and steps reads well. The plan for atc.c sounds right to us: T8152 match data, a fixed-USB3 mode selected by a PHY-node property, and only crossbar 0x110, the BIST hold and lane 0's explicit power-up as T8152-specific code. The power-domain question is the same one as on #1797, so the shared PSD provider there should cover it. When the atc.c version is pushed, we'll run no-regression rows for the shared PHY path.

@sithglan
sithglan force-pushed the thomas/j873-usb3 branch 2 times, most recently from 6655b2d to 78a6311 Compare November 19, 2026 21:49
@sithglan sithglan changed the title J873g: USB3 on the front ports (T8152 ACIOPHY, M6 Mac mini) J873g: USB3 on the front ports (T8152 in the ATC PHY driver, M6 Mac mini) Nov 19, 2026
@sithglan

Copy link
Copy Markdown
Contributor Author

The atc.c version is pushed. The head is now 78a6311eeeb6 (was 6655b2d6d0df). It is #1797 plus #2459's two PSD commits, unchanged, plus three commits. The standalone aciophy-usb3.c driver and its config line are gone.

phy: apple: atc: add T8152 for a fixed-USB3 port

  • Match data atcphy_hw_t8152. It uses the T8142 PIPE handler fields. Three new layout fields are zero for every other SoC:

    • cfg_offset: the power and reset block sits at 0x60000, behind the controller's DARTs.
    • lane_swap: bit 1 there.
    • sync_reset: 0x60030, released first and asserted last.

    Crossbar 0x110 is atc.c's existing USB3 setting. T8152 has no lane-mode register to write.

  • T8152 code is limited to the three pieces you listed: lane 0's explicit power-up (with its power-down when the PHY powers down), the crossbar write right after it, and the BIST hold while the PIPE switches.

  • apple,fixed-usb3 selects a host-only port. Only the USB3 PHY is registered: no reset controller, mux or switch. The PIPE is routed when dwc3 powers the PHY on.

  • Power goes through genpd: ATC2's USB_AON and COMMON_DP_0/1 through pmgr-pwrstate, and PSD service 57 through pmdomain: apple: T8152 PSD services as power domains #2459.

Two things came up only on hardware:

  • The T8152 PIPE handler never acknowledges the PIPE lock. With atc.c's 1 ms wait, every USB3 start failed and the hub stayed on USB2. In a test build that waited 150 ms, no acknowledge came in 8 tries, in either direction, while the PIPE still moved to USB3 and back under the request. So T8152 sets the request and does not wait (pipe_lock_unacked). That is what the old driver did, in effect: it waited 150 ms and then went on.
  • USB_AON is apple,always-on. I unbound the controller and unloaded phy-apple-atc, so genpd switched all four domains off. After reloading, dwc3 failed with "this is not a DesignWare USB3 DRD Core": the controller's reset and the PIPE handler state that the loader sets up are in that domain. With USB_AON kept on, the other three domains go off and on, and the hub comes back on both USB2 and USB3.

Tests on the J873g (exact head):

  • The VL822 enumerates at 480M and at 10000M ("new SuperSpeed Plus Gen 2x1"). The keyboard and mouse behind it work, and the back-left controller is unchanged.
  • 5 dwc3 unbind/bind cycles: USB3 at 10000M each time.
  • rmmod/modprobe phy-apple-atc: the hub comes back on USB2 and USB3.
  • KUnit phy-apple-atc*: 41/41, including the new phy-apple-atc-t8152 cases. They check the crossbar, lane 0 up and down, that the power block goes to 0x60000/0x60030 while the DART words at 0x20000/0x20008 stay untouched, and the unacknowledged lock.
  • apple-dt-check.sh against Merge aurora-wip 210c8f6e into integration/aurora (J873g NVMe, 10GbE, power off, USB2, audio) #1797 (ec172bbcc1ed): 0 new and 0 removed warnings over 137 DTBs. Both changed bindings pass.
  • tools/asahi/run-host-tests.py: 427/427. The host-test fixtures that copy atc.c structures now have the new fields, and the units for the older generations get T8152 stubs that assert.
  • checkpatch --strict is clean.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks for the atc.c port. With aciophy-usb3.c and its config line gone, T8152 as match data plus apple,fixed-usb3 on the PHY node, and only lane 0's power-up, crossbar 0x110 and the BIST hold as T8152 code, this resolves our duplication point. Recording the unacknowledged PIPE lock and the USB_AON loss as measured on the J873g is the kind of reason we like next to a hardware difference. Since this changes the shared ATC path, we will run no-regression rows on our M1 Pro, M2, M4 Pro and A18 Pro (USB3 enumeration, a plug cycle, s2idle) and post them here.

@RyanTheTide

Copy link
Copy Markdown
Contributor

@sithglan, a tidy-up pass over the open PRs here. These of yours need something:

If any of these are no longer needed, closing them helps; otherwise a merge or rebase onto integration/aurora is usually all they need. Thanks!

@sithglan

Copy link
Copy Markdown
Contributor Author

@RyanTheTide thanks. All eight are rebased onto integration/aurora d1b022dc34fb and GitHub reports each of them as mergeable:

PR new head stacked on
#1799 2603161c3e00 #1797
#1800 31f34f5d87e7 #1797
#2486 2880a16f6e74 #1800
#2178 82291cc244a6 #2486
#2749 bbd6690155a0 #1800
#2139 6a2bbe86dfa1 integration/aurora
#2142 b28768e3debc integration/aurora
#2238 bada74cc817b #2142

#1797 (7f2d14f96a69): the J873g PRs stack on it, so I merged integration/aurora d1b022dc34fb into it, as a merge commit with no conflicts. Its diff against integration is unchanged.

Conflicts, all small:

Two host tests that are new on integration, bcm4377-radio-sids and atc-t8132-usb3, copy apple-dart.c and atc.c structures. With the stacks they failed to compile on the new fields. Each fixture gets those fields in the commit that adds them:

  • apple_dart_hw.gen3, in "support the locked Gen3 DARTs";
  • cold_gen3 and its stream fields, in the two cold-DART commits;
  • fixed_usb3, cfg_offset, sync_reset and atcphy_cfg(), plus a stub for the T8152-only lane power-down, in "add T8152 for a fixed-USB3 port";
  • cio_only, in the CIO-mode commit.

Both tests now pass at every commit of every branch. Apart from these fixture lines and the context lines around the conflicts, git range-diff shows no change.

Checks on every head:

None of these heads have been booted on hardware yet.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-review of 2603161: thanks for the rebase, it merges cleanly now. The ATC commit's driver code is unchanged. It only adds the new fields and a T8152-only stub to the atc-t8132-usb3 host test, and the PSD commits are #2459's current two. Our view stands, and the shared ATC no-regression rows on M1 Pro, M2, M4 Pro and A18 Pro remain on our side.

Assisted-by: LLM (Claude:Opus 5.5)

@sithglan

Copy link
Copy Markdown
Contributor Author

Restacked on #1797 e9724fe, which gives the USB DARTs and DWC3 nodes ATC1_USB/ATC2_USB. The only conflict was t8152-j873-usb.dtsi. The ATC PMGR node now holds ATC1_USB_AON, ATC1_USB and ATC2_USB next to ATC2's DP and USB_AON states, and the comment that pointed the USB DARTs at #2459 is gone. This tree booted on the J873g as part of #2178's head: the front hub (USB3), keyboard and receiver behave as before. See #1797 for the row.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide

Copy link
Copy Markdown
Contributor

Re-checked at 283270c: a rebase onto #1797's DART power-domain commit. The only changed commit is the front-port USB3 one, and the change is the merged ATC PMGR node plus ps_atc2_usb on the USB3 controller; driver code is unchanged. Our view stands.

Assisted-by: LLM (Claude:Opus 5.5)

The two front USB-C ports of the Mac mini (2026, J873g) sit behind an
on-board USB3 hub. The hub's SuperSpeed lanes are wired to the Type-C
PHY of the SoC's ATC2 directly, without a Type-C mux or port controller
in between, so that PHY only ever runs one fixed USB3 configuration.

Describe the T8152 variant in that role, with a boolean
apple,fixed-usb3 that marks such a port: the PHY runs USB3 on lane 0
from probe on, ignores mux and orientation changes and provides only
the USB3 PHY of its controller. The controller's USB2 side and reset
stay with the bootloader, so the T8152 PHY has no #reset-cells and no
Type-C switch properties.

The PHY is described by its core and pipehandler banks. On T8152 the
core bank also holds the USB controller's DARTs, and the PHY's power
and reset block sits behind them. It needs four power domains, listed
in the order they are powered up: the ATC's USB_AON power state, its
common PSD service and its COMMON_DP_0 and COMMON_DP_1 power states.
The other variants keep their single power domain and #reset-cells.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
The J873g front ports reach their on-board USB3 hub through ATC2's
Type-C PHY, wired to the hub without a Type-C mux. So far the hub ran at
USB2 only: the bootloader leaves the PHY powered down and the PIPE on
the controller's dummy PHY. Support the T8152 PHY in that role in the
shared ATC driver.

T8152 shares the T8142 generation's power and reset block, tunables and
PIPE handler, with a different layout: the USB controller's DARTs sit
at 0x20000 and 0x40000 of the ATC window, so the power and reset block
follows at 0x60000, its lane swap is bit 1 there, and the reset the
power-up releases first is a separate always-on sync reset at 0x60030.
The crossbar is at 0x4c and the USB3 mode's existing setting, USB3+DP
with single PMA 0x008, gives the value 0x110; there is no lane mode
register to program. Describe this in the match data, with zero for the
layout of the other SoCs, and leave the power-up and power-down, the
tunables, the crossbar and the PIPE switch to the existing code.

What remains T8152 code:
 - Lane 0 is powered up on its own after the common-a tunables (LFPS
   receivers, sleep, clamp, AHB reset) and down again with the PHY.
   Without it the lane registers stay in AHB reset, drop the lane
   tunables and the PHY never reports PIPE PhyStatus. The crossbar is
   set right after, before the remaining tunables, as in the T8152
   sequence.
 - While the PIPE moves to the PHY, the BIST overrides hold lane 0's
   PIPE reset and power-down, stepping from P2 to P3, and the
   non-selected PHY override is released under them.

The T8152 PIPE handler takes the lock request but does not acknowledge
it: with the controller out of reset, no acknowledge came within 150 ms
in either direction, while the PIPE moved to USB3 and back to the dummy
PHY under the request. So T8152 changes the PIPE under the request
without waiting for the acknowledge; otherwise every USB3 start fails.

A fixed-USB3 port, apple,fixed-usb3, is a host by construction. Probe
maps only the core and PIPE windows, the core without claiming it as
it holds the DARTs, powers the PHY's power domains in the order they
are listed and brings the PHY up in USB3. It registers only the USB3
PHY: no reset controller, Type-C mux or switch, as the controller's
reset and USB2 side stay with the bootloader. The PIPE is routed when
the controller powers the USB3 PHY on, after its core reset, which also
sets the PHY up again after a power-off. If that fails the host starts
with its PIPE parked, so the hub keeps USB2.

The T8152 register sequence is the one of the earlier standalone
driver, with which the hub enumerated at 10 Gb/s. The other SoCs keep
their register accesses: the new layout fields are zero for them, and
the new code runs for T8152 or a fixed-USB3 port only. KUnit cases
check the T8152 crossbar, lane and power block accesses.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
The two front USB-C ports sit behind an on-board VL822 hub on usb-drd2.
The hub's USB2 side is on the controller's eUSB2 PHY, which the loader
sets up, and its USB3 side on ATC2's Type-C PHY, wired directly without
a Type-C mux. So far the controller was limited to high speed and the
hub ran at USB2 only.

Describe ATC2's PHY as an apple,t8152-atcphy with apple,fixed-usb3,
hand it to usb-drd2 as its USB3 PHY and drop the controller's high-speed
limit. Nothing changes for usb-drd1 (the back-left port).

The PHY's power domains are ATC2's USB_AON, COMMON_DP_0 and COMMON_DP_1
PMGR power states, in a new node for the ATCs' block of PMGR states at
0x308290000, and its common domain, PSD service 57 (ADT clock-gates
57). The T8152 USB3 bring-up runs the power states without automatic
power management, so they are marked apple,no-auto-pm.

The tunables are the groups of the ADT's atc-phy2 node (26A434) that
apply to USB3 on lane 0, in the order they are applied: the common and
PLL defaults as common-a, the fabric, PLL and USBC0 groups as common-b
and the lane 0 groups as lane0-usb. Some of them differ between the
four ATCs of the same machine, so they likely carry per-device
calibration. There is no atcphy2 alias, as the loader's ATC tunable
copy would replace them with values for another PHY layout.

Signed-off-by: Thomas Glanzmann <thomas@glanzmann.de>
@sithglan

Copy link
Copy Markdown
Contributor Author

Rebased onto integration/aurora daa9e2d (860b217 → 641f9d7). The PR was conflicting.

Assisted-by: LLM (Claude:Opus 5.5)

@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.

Formal §1–§6 pre-PR checklist review at 641f9d7e1b056efc90d271e318c54e5ec3d5a094.

Checklist Summary

  • §1 No model gating: PASS on code structure (apple,t8152-atcphy match data + apple,fixed-usb3 DT property; no chip/board/firmware-version string gates). BLOCKER on multi-Mac coverage — see Blocker 1 below.
  • §2 Production-ready, no hacks: PASS — works on the default kernel command line with no new module/cmdline parameters or sleep-over-race hacks; standalone aciophy-usb3.c duplication was properly folded into drivers/phy/apple/atc.c.
  • §3 Safety: PASS — no hardcoded hardware safety limits; keeping ps_atc2_usb_aon as apple,always-on is empirically justified (switching it off drops bootloader-initialized controller reset/PIPE state).
  • §4 Clean-room and attribution: PASS — earlier macOS class/function names are scrubbed; all 3 commits (7ecbaf37d869, e06185b31bca, 641f9d7e1b05) carry human author/committer (Thomas Glanzmann) and human Signed-off-by: only with zero AI commit trailers; PR body includes Assisted-by:.
  • §5 Evidence: FAIL (blocking) — CI (dt-checks, host-tests) is green (2/2) and KUnit phy-apple-atc* (41/41) + earlier J873g USB3/unbind/rmmod rows are good, but required hardware no-regression and exact-head regression evidence are missing.
  • §6 Naming: PASS — no Honeykrisp/hk/Asahi/m1n1 regressions.

Actionable Blockers

  1. §1 / §5 — Missing shared-atc.c no-regression evidence on non-T8152 Macs:

    • This PR modifies shared paths in drivers/phy/apple/atc.c (atcphy_power_on, atcphy_power_off, atcphy_configure, atcphy_configure_lanes, atcphy_pipehandler_lock, atcphy_usb3_set_mode, atcphy_probe) used across every Apple Silicon generation.
    • Under §1 ("Prove the change on every Mac you have that contains the block, not only the one you wrote it for") and §5, please add no-regression hardware test results on at least one other Mac using phy-apple-atc (for example your J813 M5 MacBook Air, plus any available M1 Pro / M2 / M4 Pro / A18 Pro rows covering USB3 enumeration, plug/unplug, and suspend/resume as previously noted in the thread).
  2. §5 — Missing exact-head J873g boot and regression row:

    • The current rebased head 641f9d7e1b05 (standalone 3 commits on integration/aurora after #1797 and #2459 merged) has only DTB build + CI checks and has not been booted on J873g directly (the last boot row was from #2178's stack prior to the rebase).
    • Please boot this exact head on the J873g on the default kernel command line and post the §5 regression row (0 SELinux denials, 0 failed units, 0 new kernel errors, plus front VL822 10000M enumeration).

Non-blocking notes

  • Stale PR description: The top of the PR body still says "Stacked on #1797 ... and #2459 ... its two commits are included unchanged", which is no longer true after the 641f9d7e1b05 rebase dropped them. Please update the description to reflect the standalone 3-commit series.
  • drivers/phy/apple/atc.c (atcphy_power_off): Because if (!atcphy->hw->sync_reset) guards the ATCPHY_MISC clear, T8152 skips clearing ATCPHY_T8152_MISC_LANE_SWAP (bit 1) on power-off. Benign on a fixed non-swapped lane 0 port (cleared again in atcphy_configure_lanes), but worth noting if T8152 ever enables swapped lanes.
  • arch/arm64/boot/dts/apple/t8152-j873-usb.dtsi: Hardcoding apple,tunable-* from one machine's 26A434 ADT (where the comment notes per-ATC/per-device calibration differences) follows existing interim DTS precedent (e.g. t8132-j713-atcphy-tunables.dtsi); teaching aura to copy T8152 ATC tunables from each machine's own ADT remains the right follow-up.

Assisted-by: LLM (Gemini 4 Neon)

@sithglan

Copy link
Copy Markdown
Contributor Author

@DjDeveloperr thanks.

Assisted-by: LLM (Claude:Opus 5.5)

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.

3 participants