Skip to content

arm64: dts: apple: t6041: enable deep sleep on every board, J575c too - #3626

Merged
DjDeveloperr merged 2 commits into
mainfrom
sleep/t6041-soc-enable
Dec 3, 2026
Merged

DjDeveloperr merged 2 commits into
mainfrom
sleep/t6041-soc-enable

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

The T6041 sleep node was disabled at the SoC, and only the J614c/J616c tree turned it on. The J575c (Mac Studio, M4 Max) stayed on s2idle as "not qualified". This turns the node on in t6041.dtsi, so every T6041 board gets deep sleep. Each board adds only its own apple,apcie and apple,atc-phys:

  • J614c/J616c: no change except the dropped status = "okay" line (same DT content).
  • J575c: &pcie0 (the four GP ports, ADT /arm-io/apcie pci-bridge0..3: Wi-Fi/BT, SD reader, 10 Gb Ethernet, ASM3142) and atcphy0..3. A desktop has no lid. t6041-sleep saves iBoot's wake masks and restores them, so the J575c needs no wake list of its own.

Merge order: after #3421. J575c row (7robertodantas, #3421 comment, main 498d53f + #3421 + this PR): a no-op on the J575c today. The probe stops at no PCIe tunables for ANS: no deep sleep, mem_sleep stays [s2idle], s2idle 3/3 PASS, and Ethernet, SD, ASM3142, Wi-Fi/BT and USB are all back after each wake. Deep sleep on the J575c needs his follow-up PRs: the &pcie0 sleep windows, sleep-pmvc without sleep-wake-type, sleep-ssps, dcp_power + the &dcp sleep-host properties, the SEP (#3276), and the DCP sleep-host / external-restart driver work. Per his note, those land together, not piecemeal.

Tested:

  • make W=1 apple/t6041-{j575c,j614c,j616c}.dtb: builds; the only warnings are ones main already has. fdtget shows the sleep-controller node with no status (okay) on all three, with apple,apcie + apple,atc-phys.
  • checkpatch --strict: 0/0/0.
  • No hardware row yet: J575c row requested from its owner; J614c/J616c DT content unchanged.

Risk: two-way · M4 Max (T6041), DT only. J614c/J616c DT content is unchanged; on the J575c the driver doesn't bind yet (stays s2idle, owner-verified).

The T6041 sleep node stayed disabled at the SoC so that only the J614c
and J616c enabled it; the J575c (Mac Studio) stayed on s2idle as "not
qualified". Turn the node on in t6041.dtsi and let each board add only
what is its own: apple,apcie and apple,atc-phys. The J614c/J616c tree
keeps both and drops its status line; the J575c gets its four GP PCIe
ports (ADT /arm-io/apcie pci-bridge0..3) and its four ATC PHYs.

A desktop has no lid; t6041-sleep saves iBoot's wake masks and puts
them back, so there is no per-board wake list to add.

The J575c's ports 2 and 3 (Ethernet, ASM3142) come back from deep
sleep only with linux#3421, so this goes after it.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

@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: HOLD at 09a077c3 — the 3-file DT diff (+14/-5) is clean and code-ready; awaiting prerequisite linux#3421, queued hosted CI (dt-checks, pr-text, readiness), and a J575c owner deep-sleep hardware row.

Blockers:

  1. Land prerequisite linux#3421 first so J575c GP PCIe ports 2 and 3 (10 Gb Ethernet, ASM3142 USB) recover cleanly from deep sleep.
  2. Wait for queued hosted CI (dt-checks, pr-text, readiness) to pass at 09a077c3 (or final head after #3421).
  3. Post a J575c (M4 Max Mac Studio) owner deep-sleep verification row at this head (on top of #3421) confirming deep sleep enter/wake, GP PCIe ports 0–3, ATC0–3, HDMI/display, and 0 failed units.

Checked:

  • Audited all 3 touched files (arch/arm64/boot/dts/apple/t6041.dtsi, t6041-j614c-j616c.dtsi, t6041-j575c.dts, DCO Signed-off-by: present, MERGEABLE on main).
  • Confirmed all T6041 board DTS files in the tree are t6041-j614c.dts, t6041-j616c.dts, and t6041-j575c.dts: removing status = "disabled" from t6041.dtsi and status = "okay" from t6041-j614c-j616c.dtsi leaves J614c/J616c DT content unchanged.
  • Verified &t6041_sleep in t6041-j575c.dts L2098–2101 is placed after /delete-node/ &atcphy3; (L2081) and #include "t6041-j575c-atc3.dtsi" (L2084), so <&atcphy3> resolves to J575c's real fourth rear Type-C PHY (while J575c HDMI uses lpdptx_phy0, not an ATC PHY) and <&pcie0> matches the four GP PCIe bridges at L1221.
Evidence
  • arch/arm64/boot/dts/apple/t6041-j575c.dts L1221 (pcie0), L1555/L1593/L1631 (atcphy0..2), L2081–2084 (/delete-node/ &atcphy3 followed by t6041-j575c-atc3.dtsi), L2098–2101 (&t6041_sleep).
  • arch/arm64/boot/dts/apple/t6041-j575c-hdmi.dtsi L51: J575c HDMI uses lpdptx_phy0, confirming atcphy0..3 is the complete ATC PHY set on J575c.

@github-actions github-actions Bot added area:bringup Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 29, 2026
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Merge readiness at 5bee0291: not ready yet

Check Detail
CI at head no failing: host-tests
Review no approved by DjDeveloperr, but GitHub does not count it yet (code owner from Core or Omarchy Mac needed, or approval went stale)
Requested changes ok none
Hardware row at head no no line with the head SHA 5bee0291, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · M4 Max (T6041), DT only. J614c/J616c DT content is unchanged; on the J575c the driver doesn't bind yet (stays s2idle, owner-verified).

Areas: area:bringup

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

@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 09a077c34f2a

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Audited all 3 touched files (arch/arm64/boot/dts/apple/t6041.dtsi, t6041-j614c-j616c.dtsi, t6041-j575c.dts, DCO Signed-off-by: present, MERGEABLE on main).

  • Confirmed all T6041 board DTS files in the tree are t6041-j614c.dts, t6041-j616c.dts, and t6041-j575c.dts: removing status = "disabled" from t6041.dtsi and status = "okay" from t6041-j614c-j616c.dtsi leaves J614c/J616c DT content unchanged.
  • Verified &t6041_sleep in t6041-j575c.dts L2098–2101 is placed after /delete-node/ &atcphy3; (L2081) and #include "t6041-j575c-atc3.dtsi" (L2084), so <&atcphy3> resolves to J575c's real fourth rear Type-C PHY (while J575c HDMI uses lpdptx_phy0, not an ATC PHY) and <&pcie0> matches the four GP PCIe bridges at L1221.

Follow-ups (not blocking): Merge prerequisite #3421 first; follow-ups: queued CI, J575c owner deep-sleep row

@github-actions github-actions Bot added the merge-conflict Conflicts with the base branch (bot) label Dec 1, 2026
@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Dec 1, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Dec 2, 2026

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

Correct. J614c/J616c DTBs come out the same, and on the J575c the node binds but stops at "no PCIe tunables for ANS", so it stays on s2idle. That's what the owner's row after #3421 shows. #3421 is merged now. The branch conflicts with main and needs a merge-up. I'll re-approve at the merged head.

@github-actions github-actions Bot removed the needs-review No approving review from Core or Omarchy Mac yet (bot) label Dec 2, 2026
Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Merged main into the branch as 5bee02915c30 (merge commit, no rebase). The only conflict was in t6041-j575c.dts: main replaced the "Not described: the SEP" line with the SEP and sep_mbox nodes, and this PR added the t6041_sleep block just before it. Both are kept, and the SEP comment line is dropped because the SEP is now described. The merge's diff against main is byte-for-byte this PR's own diff (3 files, +14/-5). Local cpp+dtc of J575c, J614c and J616c on main and on the merge: all compile, with the same 2 warnings as main. J614c and J616c differ from main only by the sleep node losing its explicit status = "okay", which is the default. Left before merge: hosted dt-checks at this head, and a J575c boot at this head (or the owner confirming the DT is unchanged from their #3421/#3653 rows). #3653 lands after this.

@github-actions github-actions Bot added needs-review No approving review from Core or Omarchy Mac yet (bot) and removed ci-failing A check failed at the PR head (bot) merge-conflict Conflicts with the base branch (bot) labels Dec 2, 2026
@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 2, 2026

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

Approve at 5bee02915c30.

The main merge differs from a clean git merge-tree of its parents only in t6041-j575c.dts, where main's SEP nodes and this PR's t6041_sleep block are both kept. The merge's diff against main is the PR's own +14/-5.

Checked on pc: all 141 Apple DTBs built with W=1 at this head and at its main parent 33dbc9a6c6db. Only three change. J575c gains apple,apcie and apple,atc-phys on the sleep controller and loses status = "disabled". J614c and J616c only lose the now-redundant status = "okay". The dtc warnings for those three are the same before and after (39). Hosted dt-checks passed, and it merges cleanly with current main.

The hosted host-tests failure is centauri-scan, and it isn't from this PR. It was broken on main when this merge ref was made and #3987 fixed it. Locally it fails the same way at this head, which carries main from before #3987, and passes at the #3987 merge. This PR only touches three .dts/.dtsi files. A run on a fresh merge ref should clear it.

Before merge: a J575c boot at the merged head (none of our lab Macs is a T6041), or the owner confirming that their post-#3421 row still holds with main's SEP nodes added. This lands before #3653. The merge was pushed from this account, so it needs another approver or an admin merge.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Checked on the merge of 5bee02915c30 with main c09b61228e62 (clean; the diff is this PR's own +14/-5):

  • DTBs. cpp + dtc of all twelve M4 boards, main against the merge: nine are byte-identical. J614c and J616c lose only the redundant status = "okay". The J575c's sleep controller gains apple,apcie and apple,atc-phys and is no longer disabled.
  • The red host test. It is centauri-scan (bt-production.c with an undeclared dev_warn_ratelimited), red on main when this head ran and fixed there by tools/asahi: centauri-scan: follow btcentauri_t6050 RX descriptor skip #3987. It passes on the merge (2/2). The only two host tests that read T6041 trees, clpc-gpu-demand and t604x-cpu-order, pass too.
  • Which boards get deep sleep from this. None that did not have it. J614c and J616c have it on main already (27.2 row on a J616c: here). On the J575c the probe still ends at no PCIe tunables for ANS: no deep sleep, because main's J575c pcie0 has no axi2af, cio3pll, clkgen, phy-block and phy-ip windows, and mem_sleep stays [s2idle] (owner row). arm64: dts: apple: t6041-j575c: deep sleep on the Mac Studio #3653 adds the windows; its J575c row with this DT is deep 3/3 at c44c44441649.

Approved here and by the App on the same diff before the main merge. Merging; #3653 is next and waits for one deep-sleep row on another generation.

@DjDeveloperr
DjDeveloperr merged commit 62c60d1 into main Dec 3, 2026
6 of 8 checks passed
@DjDeveloperr
DjDeveloperr deleted the sleep/t6041-soc-enable branch December 3, 2026 08:35
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:m4 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants