Skip to content

GH-5: M2 Max (J414c, T6021) diffs on top of the R62Y-4 patches - #13

Merged
JJRPF merged 1 commit into
JJRPF:mainfrom
muness:t6021-j414c-on-r62y
Nov 26, 2026
Merged

JJRPF merged 1 commit into
JJRPF:mainfrom
muness:t6021-j414c-on-r62y

Conversation

@muness

@muness muness commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Adds patches/s2r-repro/t6021/: two diffs that go on top of the M2 Pro diffs, and a README. With them, the R62Y-4 recipe gives a real suspend-to-RAM and wake on a 14-inch M2 Max (J414c, T6021, 12 CPUs). Nothing outside that folder is touched.

  • kernel-t6021-j414c.diff: PSCI + PMP device tree for J414c, and macsmc setting WKTP and the wake mask on apple,t6021 as on apple,t6020.
  • aura-t6021.diff: T6021 on the T6020 suspend path, plus the Max-only pieces (sixth soc-cluster, dispext2/3 power words, five gate words, two IOA error enables, memory-cache controllers 4-7).

No change to the R62Q-R62Y kernel code was needed.

Tested on one J414c from a RAM root, nothing plugged in, on the diffs at eacbc56 (Aura 128): two sleeps in one boot, both woke, with the internal display, GPU, SEP, PMP, PCIe and NVMe back. Details and log lines are in the README.

Caveats

  • The Max needs echo 0 > /sys/power/pm_async before sleeping. With the default it hangs during device suspend; cause not known yet.
  • Both diffs apply on the current diffs at c2b1eac (Aura 129) and Aura builds there, but that combination has not been booted.
  • The Aura diff is what was run, so it still carries an unused WFI-only retention path for T6021.

Refs #5.

🤖 Generated with Claude Code

Kernel: PSCI + PMP device tree for J414c, macsmc wake setup on apple,t6021.
Aura: T6021 on the T6020 suspend path, plus the Max-only power words,
cluster, IOA enables and memory-cache controllers.

Tested on one J414c from a RAM root: two sleeps in one boot, both woke,
with display, GPU, SEP, PMP, PCIe and NVMe back. Needs pm_async=0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@JJRPF

JJRPF commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Merged, thank you. One follow-up on main: the macsmc hunk of kernel-t6021-j414c.diff no longer applies to the refreshed J414s diff, and is not needed any more. The machine check and the wake table are gone; the mask address and the wake sources now come from /chosen, which Aura fills from the ADT pmgr ap-wake-sources. I added kernel-t6021-j414c-dts-only.diff and a README note. aura-t6021.diff still applies to the refreshed Aura diff. If your T6021 ADT has ap-wake-sources (the J414s one has 22 entries), the new combination needs no macsmc change; I could not check that on a Max.

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