Repository navigation
arm64: dts: apple: t6041: enable deep sleep on every board, J575c too - #3626
Conversation
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>
There was a problem hiding this comment.
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:
- Land prerequisite
linux#3421first so J575c GP PCIe ports 2 and 3 (10 Gb Ethernet, ASM3142 USB) recover cleanly from deep sleep. - Wait for queued hosted CI (
dt-checks,pr-text,readiness) to pass at09a077c3(or final head after#3421). - 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, DCOSigned-off-by:present,MERGEABLEonmain). - Confirmed all T6041 board DTS files in the tree are
t6041-j614c.dts,t6041-j616c.dts, andt6041-j575c.dts: removingstatus = "disabled"fromt6041.dtsiandstatus = "okay"fromt6041-j614c-j616c.dtsileaves J614c/J616c DT content unchanged. - Verified
&t6041_sleepint6041-j575c.dtsL2098–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 useslpdptx_phy0, not an ATC PHY) and<&pcie0>matches the four GP PCIe bridges at L1221.
Evidence
arch/arm64/boot/dts/apple/t6041-j575c.dtsL1221 (pcie0), L1555/L1593/L1631 (atcphy0..2), L2081–2084 (/delete-node/ &atcphy3followed byt6041-j575c-atc3.dtsi), L2098–2101 (&t6041_sleep).arch/arm64/boot/dts/apple/t6041-j575c-hdmi.dtsiL51: J575c HDMI useslpdptx_phy0, confirmingatcphy0..3is the complete ATC PHY set on J575c.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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, andt6041-j575c.dts: removingstatus = "disabled"fromt6041.dtsiandstatus = "okay"fromt6041-j614c-j616c.dtsileaves J614c/J616c DT content unchanged. - Verified
&t6041_sleepint6041-j575c.dtsL2098–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 useslpdptx_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
Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merged main into the branch as |
DjDeveloperr
left a comment
There was a problem hiding this comment.
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.
|
Checked on the merge of
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. |
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 ownapple,apcieandapple,atc-phys:status = "okay"line (same DT content).&pcie0(the four GP ports, ADT/arm-io/apciepci-bridge0..3: Wi-Fi/BT, SD reader, 10 Gb Ethernet, ASM3142) andatcphy0..3. A desktop has no lid.t6041-sleepsaves 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_sleepstays[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&pcie0sleep windows,sleep-pmvcwithoutsleep-wake-type,sleep-ssps,dcp_power+ the&dcpsleep-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.fdtgetshows the sleep-controller node with no status (okay) on all three, withapple,apcie+apple,atc-phys.checkpatch --strict: 0/0/0.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).