Repository navigation
arm64: dts: apple: t6050-k114c: add the deep-sleep controller node - #2089
joshuaswarren wants to merge 3 commits into
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
|
CHANGES on 21d241e Review at the exact head. One finding, message only. The tree is clean. Finding: neither commit has a Signed-off-by. What I checked (sparse checkout of this head, gcc preprocessor plus
Notes, not findings:
I will re-review and post GREEN when the Signed-off-by lines are in. |
21d241e to
8f72413
Compare
|
w7X: Signed-off-by added to both commits via rebase --signoff (original author kept; new head 8f72413). Tree unchanged. |
|
GREEN on 8f72413 Review at the exact head. This closes my CHANGES on
Not covered: |
8f72413 to
218d09f
Compare
|
GREEN on 218d09f Independent review at the rebased head. |
|
Thanks Joshua, moving the T6050 sleep match off the J714s is the right direction. Three points on the code:
Row still needed on the K114c: boot with the node and the sleep driver probes without "unsupported board/CPU inventory". Once the boot loader's SoC data is in the node: Since |
|
[Joshua's agent] Thanks, Ryan. Three points on #2089 at head 1. Duplicate Agree. At this head the K114c file is 233 lines and differs from 2. Max profile: J716c sleep data vs J714s copy I have no K114c sleep boot receipts yet: no probe line, no Static facts checked in the tree (not boot):
Position: J716c Max soc plus J716c sleep device files is plausible for a K114c Max without PMP, but it is unproven here until the boot row runs. I will not widen the DTS to J716c shapes without a measured pass that shows the sleep driver probes and suspends cleanly. If the first boot fails inventory or region setup, that is the fork to document. 3. Understood on I have not re-run the compile-only inventory proof on I will not remove Row still owed (K114c, unbooted on this PR today): probe without "unsupported board/CPU inventory"; then Skipped: dtbs_check on latest integration tip; J716c sleep DTS swap without boot. |
|
Thanks Joshua. Yes, please go ahead with the code change on this PR:
The K114c row is unchanged: probe without "unsupported board/CPU inventory", then |
218d09f to
ae610ba
Compare
|
Thanks Joshua. The latest push seems to have come from the wrong base. The PR now has 10 commits: besides your two, it carries eight from the J775c compatibility work (acio routers, DROM placeholders, PCI Clock PM, the J775c board consolidation, the G17C binding), about 7k lines that belong to #1619 and #1618. Your two commits are unchanged: Could you reset the branch onto
The K114c row is unchanged. |
|
Inspection evidence (no K114c boot claim): at the pinned integration base 26294e8 and #2201 head 965c1b5, the MPIDR/CPU-count check remains inside |
|
Thanks, you're right. At the base, the boot-MPIDR and CPU-count check in Still missing:
|
ae610ba to
50ae77a
Compare
|
Reset complete: PR head is
|
|
Thanks for the reset: two commits on current integration, the K114c reusing the existing disabled J716c sleep description instead of a 233-line copy, and the MPIDR/CPU-count check now running whenever a profile supplies either, with |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Looked at 50ae77a. The shape is right: the K114c includes the disabled J716c sleep description, and the CPU-inventory check (sleep.c:1895-1898) now runs whenever a profile sets boot_mpidr or cpu_count. Neither .machine remains.
Not merging yet:
- It's a draft, and it conflicts with
integration/aurora(DIRTY). The base moved about 326 commits past 26294e8, includingt6050-k114c.dtsandsleep-t6050.h, so it needs a rebase onto the current tip. - The K114c (14-inch M5 Max) row is still open, as Ryan listed it. Run it on the rebased head:
- The sleep driver probes with no "unsupported CPU inventory" line.
rtcwake -m mem -s 30passes three times.- A lid close/open wake and a power-key wake both work.
- After each resume,
dmesg --level=erris empty, a USB device comes back, andping -c 5passes over Wi-Fi.
sleep.c is shared, so once that row is in we'll run the no-regression sleep rows on J714s and J700 before merging.
Assisted-by: Claude Opus 5.5
|
Note wAK (AI assistant) responding on behalf of joshuaswarren Acknowledged: shape accepted, rebase first. Next action is rebasing the two commits onto the current |
|
This doesn't apply cleanly to the current integration/aurora tip 110861f. The conflict is only in t6050-k114c.dts, where the nvram alias and the boot NOR (&qspi) block landed next to the new sio alias and sleep include; keeping both sides resolves it, and the sleep.c change applies as is. Two review points from 11-21 are still open. First, the J716c sleep include also enables pmu_rtc, which gives the K114c a second RTC: either disable it next to &hpm5 or add the RTC checks to the row. Second, the order against #2400, which moves hpm5 into a shared MagSafe dtsi that the &hpm5 reference here depends on. @joshuaswarren could you rebase with those settled, and update the title and description to match the two current commits? A rebased copy is on this repository as Build check of 110861f plus this change (arm64, LLVM=1, Image, dtbs and every directory it touches, Fedora config plus asahi.config): builds, no warnings in the files it touches; CHECK_DTBS over the 1 Apple DTBs this change rebuilds: no new warnings against the tip. |
- Reuse J716c's disabled Max description instead of a copied J714s file. - Keep the controller disabled until K114c sleep is qualified. - Preserve K114c's SIO alias and MagSafe controller status. - Do not enable the unqualified full profile. Signed-off-by: Joshua Warren <[email protected]>
- Validate CPU inventory when a profile provides MPIDR or CPU count. - Remove machine metadata from both T6050 entries and KUnit assertions. Signed-off-by: Joshua Warren <[email protected]>
50ae77a to
189bbed
Compare
|
Rebased onto the integration/aurora tip, f9d2146. One conflict, in t6050-k114c.dts, exactly the spot you called: the tip carries the new nvram alias, the boot NOR qspi node and its read-only partition, while this branch adds the sio alias and the disabled J716c sleep description plus hpm5. The resolution keeps both sides in full: the aliases block now lists nvram and sio, the qspi boot NOR node is untouched, and the sleep include with hpm5 sits behind it. Receipts on top of the rebase:
One note for your tree: the tip you tested, 110861f, is an ancestor of the current branch head f9d2146 (it merged #2916 and #2914 after that point). If the conflict nodes landed in that range on your side too, this resolution should apply the same way; if your integration/aurora is pinned at 110861f, tell me and I will rebase onto it instead. |
|
@joshuaswarren checking open drafts today. To come out of draft, this still needs:
If it's no longer needed, say so here and we'll close it. Otherwise it stays open as a draft until these are done. |
Signed-off-by: Joshua Warren <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins. |
There was a problem hiding this comment.
Verdict: FINISH, then merge at c37e5e0c
Blockers:
- Queued CI checks (
apple-build,dt-checks,host-tests,pr-text,readiness, KUnit) are still pending; wait for green CI. - Missing exact-head
c37e5e0chardware boot row on K114c (confirming disabled sleep node +&hpm5probe cleanly) and a J714s/J716c regression boot row confirming the.machineremoval preserves T6050 sleep probe behavior.
Checked:
drivers/soc/apple/sleep.c,sleep-t6050.h,sleep-test.c: cleanly drops.machinestring gates in favor ofboot_mpidr/cpu_countvalidation and updates KUnit tests (189bbedc).arch/arm64/boot/dts/apple/t6050-k114c.dts: addssioalias, disabledt6050-j716c-sleep.dtsi, and&hpm5enablement;MERGEABLEonmain; no Apple material, tool attribution, or private serials.
Evidence
- Head:
c37e5e0c(base: main,mergeable: MERGEABLE,+18/-10across 4 files).
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
erikwb
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at c37e5e0c
Blockers:
arch/arm64/boot/dts/apple/t6050-k114c.dts:68: the newsioalias expands to/soc/dma-controller@505e00000. On the compiled DTB, the loader’s path lookup selects the earliersoc@200000000sibling for the first component and returnsFDT_ERR_NOTFOUNDfor the controller. The loader skips SIO setup at that point. Leave the alias out while SIO is disabled, or coordinate an exact-path handoff that also handles its disabled mailbox, DART and power domains.- Record a K114c boot at the final head with the sleep controller still disabled, MagSafe detected, RTC ordering verified and no new kernel errors. Add a J716c regression row for the shared sleep driver.
Checked: The Max sleep compatible is in the binding. All 46 named ranges and provider phandles compile. The J716c DTB is byte-identical to its base, and both T6050 profiles still check the same CPU inventory. The Apple build, DT and host checks passed. GitHub reports no merge conflict, though the head is 428 commits behind main.
Evidence
- Compiled both board DTBs at the base and head.
fdtget <k114c-dtb> sio statusreproduces the failed lookup. The loader uses the same path lookup insrc/kboot.c:11101; an exact lookup has to distinguish the two SoC buses. Loader source - The PMU RTC and MagSafe already exist and are available in the K114c base DTB. The include merges into the same paths and sets explicit
okay. Main now pins the writable SMC RTC tortc0, so carry that change into the tested head. RTC aliases - AOP2 and SIO remain disabled. Their new mailbox windows sit within their former register spans. Only the Pro and Max sleep profiles set the boot MPIDR and CPU count, so the new guard preserves their current checks.
There was a problem hiding this comment.
Verdict: MERGE at c37e5e0c4667
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: - drivers/soc/apple/sleep.c, sleep-t6050.h, sleep-test.c: cleanly drops .machine string gates in favor of boot_mpidr/cpu_count validation and updates KUnit tests (189bbedc).
arch/arm64/boot/dts/apple/t6050-k114c.dts: addssioalias, disabledt6050-j716c-sleep.dtsi, and&hpm5enablement;MERGEABLEonmain; no Apple material, tool attribution, or private serials.
Follow-ups (not blocking): queued CI; K114c boot row, J714s/J716c sleep regression row
What
Adds the disabled deep-sleep controller description to
arch/arm64/boot/dts/apple/t6050-k114c.dts(includingt6050-j716c-sleep.dtsi, adding thesioalias, and keepinghpm5enabled) and updatesdrivers/soc/apple/sleep.c,drivers/soc/apple/sleep-t6050.h, anddrivers/soc/apple/sleep-test.cto validate T6050 CPU inventory without requiring a fixed boardmachinestring.Because the boot loader's SoC commit schedule is not present in the node and the sleep controller stays disabled, this lands device-tree and driver plumbing rather than an active deep-sleep path.
Tested
t6050-k114c.dtbcompiled cleanly through the kernel dtc path (gcc -E -D__DTS__andscripts/dtc/dtc -b 0), with no new warnings from the sleep include.Risk
two-way · T6050 Macs (K114c DT node stays disabled; sleep topology validation affects T6050 sleep profiles).
Not yet
Not booted on hardware; M5 Max deep-sleep enablement and KUnit runs of
sleep-testare not run yet.