Skip to content

arm64: dts: apple: t6050-j775c: keep the ATC usb-aon power domains on - #4250

Merged
DjDeveloperr merged 1 commit into
mainfrom
satchlj/j775c-atc-usb-aon-always-on
Dec 4, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
satchlj/j775c-atc-usb-aon-always-on

Conversation

@satchlj

@satchlj satchlj commented Dec 4, 2026

Copy link
Copy Markdown
Member

Commit 64d473f5321d ("arm64: dts: apple: t6050: keep the ATC usb-aon power domains on", #2018) marked every T6050 ps_atc*_usb_aon power domain apple,always-on in the shared T6050 .dtsi files so genpd never gates the ATC PHY always-on domain during probe or s2idle.

When commit a3b69a98f620 ("arm64: dts: apple: consolidate J775c into one final board description") flattened arch/arm64/boot/dts/apple/t6050-j775c.dts into a standalone file, those four apple,always-on properties were omitted on ps_atc{0,1,2,3}_usb_aon. t6050-j775c.dts is the only T6050 devicetree missing them.

Without apple,always-on, genpd powers off ps_atc1_usb_aon as soon as its child consumers finish probing and runtime-suspend, causing the ATC1 PHY to lose its state before Type-C CIO bring-up:

apple-t6050-dp-phy 2ab000000.phy: CIO mode failed (-110), reverse orientation, 1 ms
apple-t6050-dp-phy 2ab000000.phy: start of mode 4 failed (-110)
sn201202x 1-0a: failed to configure Type-C connection: -110

This PR restores apple,always-on on ps_atc0_usb_aon, ps_atc1_usb_aon, ps_atc2_usb_aon, and ps_atc3_usb_aon in t6050-j775c.dts (4 insertions). It is required for Thunderbolt networking and Type-C CIO daily use on J775c.

Tested: J775c (M5 Max Mac Studio) at exact PR head f17be83597b7 (7.3.0-1-52.20261204-ARCH on the default kernel command line, make LLVM=1 ARCH=arm64 DT_SCHEMA_FILES=apple,pmgr-pwrstate.yaml CHECK_DTBS=y apple/t6050-j775c.dtb clean):

  • Before fix (main ebfb5226): 2ab000000.phy: CIO mode failed (-110), reverse orientation, 1 ms; no thunderbolt0 interface.
  • After fix (f17be83597b7): 2ab000000.phy: CIO mode up: UC_TNBL_DONE (0), reverse orientation, 13 ms; 40 Gb/s link (rx_speed=20.0 Gb/s, tx_speed=20.0 Gb/s, 2 lanes each, peer Mac16,10); thunderbolt0 UP (0.249 ms avg RTT, 0% loss); iperf3 (mtu 1500) pre-sleep 1-stream TX 30.2 Gbit/s, 4-stream TX 26.3 Gbit/s, 4-stream RX 17.3 Gbit/s (peer host had concurrent background build load).
  • 3/3 consecutive 15 s RTC s2idle cycles PASS (suspend_stats 3/0): all four atc*_usb_aon domains stayed on pre/post sleep, ACIO re-established RX/TX paths 1.07 s after PM: suspend exit, post-sleep ping back in 5 s, post-3x-sleep 4-stream TX 20.9 Gbit/s / RX 18.7 Gbit/s.
  • Regression check: 0 failed systemd units, 0 SELinux/AVC denials, 0 new kernel error lines. Hotplug and ATC0/2/3 CIO are untested in this run.

Risk: two-way door, J775c (t6050-j775c.dts) only; reverts cleanly by removing the four apple,always-on properties. Matches the existing T6050 usb_aon policy from #2018.

Commit 64d473f ("arm64: dts: apple: t6050: keep the ATC usb-aon
power domains on") marked every T6050 ps_atc*_usb_aon domain
apple,always-on in the shared T6050 dtsi files so genpd never gates the
ATC PHY always-on domain during probe or s2idle.

When commit a3b69a9 ("arm64: dts: apple: consolidate J775c into one
final board description") flattened t6050-j775c.dts into a standalone
file, those four apple,always-on properties were omitted on
ps_atc{0,1,2,3}_usb_aon.

Without apple,always-on on J775c, genpd powers off ps_atc1_usb_aon as
soon as its child consumers finish probing and runtime-suspend, causing
the ATC1 PHY to lose its state before Type-C CIO bring-up:

  apple-t6050-dp-phy 2ab000000.phy: CIO mode failed (-110), reverse orientation, 1 ms
  apple-t6050-dp-phy 2ab000000.phy: start of mode 4 failed (-110)
  sn201202x 1-0a: failed to configure Type-C connection: -110

Mark ps_atc0_usb_aon, ps_atc1_usb_aon, ps_atc2_usb_aon, and
ps_atc3_usb_aon apple,always-on in t6050-j775c.dts, matching the rest of
the T6050 devicetrees.

Fixes: a3b69a9 ("arm64: dts: apple: consolidate J775c into one final board description")
Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj
satchlj requested review from a team as code owners December 4, 2026 00:28
@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Merge readiness at f17be835: not ready yet

Check Detail
CI at head running running: dt-checks, host-tests
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok in the PR body at f17be835
Conflicts ok none
PR text ok Risk: two-way · J775c (t6050-j775c.dts) only; reverts cleanly by removing the four apple,always-on properties. Matches the existing T6050 usbaon policy from #2018.

Areas: area:bringup

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

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

Looks right. Every other T6050 devicetree gets apple,always-on on ps_atc{0,1,2,3}_usb_aon from the shared dtsi files (#2018, same comment); t6050-j775c.dts stopped including them when it was flattened in a3b69a98f620, and these four lines put the same property back. It only touches J775c, and your exact-head J775c run (CIO up, thunderbolt0 at 40 Gb/s, 3/3 s2idle with the four domains staying on) covers it. I'm running the DT check locally while hosted CI is queued and will merge at this head once it passes.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 4, 2026
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Local check at f17be83597b7 while hosted CI is queued: t6050-j775c.dts compiled with dtc at main 59c55677a7a8 and at this head. Both builds give the same 5 warnings, which main already has, and the head's DTB has apple,always-on on all four atc*_usb_aon domains (main's has none). No host test reads this file. Together with satchlj's exact-head J775c run and dtbs_check, that covers this change, so I'm merging at this head.

@DjDeveloperr
DjDeveloperr merged commit 0a08cde into main Dec 4, 2026
7 checks passed
@DjDeveloperr
DjDeveloperr deleted the satchlj/j775c-atc-usb-aon-always-on branch December 4, 2026 00:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:bringup Area from CODEOWNERS (bot) blast:m5 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants