Skip to content

soc: apple: sleep: take the T6050 sleep from its DT node alone - #3740

Merged
RyanTheTide merged 1 commit into
mainfrom
gates/sleeph-t6050
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
gates/sleeph-t6050

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: apple_t6050_sleep_property() (include/linux/soc/apple/sleep.h) no longer checks the machine compatible apple,t6050. The available apple,t6050-sleep node, which is the description of the firmware-driven sleep, decides alone. No board or SoC name left in this helper. Audit gate: linux#2201 / #2445, section 3 MED.

Tested: at 6448161: apple dtbs build (141); the DT check below finds 0 differences across 141 DTBs; W=1 build of apple-sio, macsmc, irq-apple-aic, dwc3-apple and apple-dart is clean (dwc3-apple has the same kernel-doc warnings as main); host test display26-tests passes (it mocks sleep.h).

Risk: two-way door. It only drops a condition, and every DTB with the node is a T6050 machine. Affected boards: T6050 J714s, J716c and K116s. We own none of them (K114s is not ours to touch).

Not yet: a row on a T6050 machine from its owner (J714s, J716c or K116s). No hardware row from us.

DT equivalence proof (fdt per compiled dtb)

Old = root compatible has apple,t6050 AND the first apple,t6050-sleep node is available (and has the property for the apple,display-method-sleep variant). New = the same check without the root compatible. Script: proof_sleeph.py (pylibfdt over make dtbs at aurora/main b2cd21f; this PR does not change any DTS).

t6050-j714s.dtb prop=None machine_t6050=True old=True new=True SAME
t6050-j714s.dtb prop=apple,display-method-sleep machine_t6050=True old=True new=True SAME
t6050-j716c.dtb prop=None machine_t6050=True old=True new=True SAME
t6050-k116s.dtb prop=None machine_t6050=True old=True new=True SAME
t6050-k116s.dtb prop=apple,display-method-sleep machine_t6050=True old=True new=True SAME
dtbs=141 differences=0

Every other T6050 DTB (j714c, j716s, j775c/d, j873s, k114c/s, k116c) is old=False new=False. No non-T6050 DTB has the node.

apple_t6050_sleep_property() also required the machine compatible
"apple,t6050" before it looked at the "apple,t6050-sleep" node. The node
is the description of the firmware-driven sleep; a board without that
SoC has no such node. Drop the machine-name check.

Every in-tree DTB with an available apple,t6050-sleep node is a T6050
machine (j714s, j716c, k116s), so the result is unchanged for all of
them.

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: MERGE at 6448161

Checked: sleep.h. Only the root-compatible condition goes; an available apple,t6050-sleep node, plus @prop when one is given, still decides. Your pylibfdt pass over the 141 apple DTBs at b2cd21f shows old == new for every one (only T6050 trees carry the node), so no in-tree DT changes behaviour.
Follow-ups: none. The merge gate still needs one T6050 row from an owner.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 6448161 under the 12-01 bar: one non-author approval + local proof while linux PR CI is ~19 h behind (B1-CI-REVIEW 17:30). Local proof: this head's own touched-object W=1 build + its KUnit/host tests (see body), plus all ten B1-GATES heads merged on main a29e/b2cd (57856a3b7327) build clean together (drivers/gpu/drm/asahi + apple, soc/apple, mfd, tipd, centauri, pmdomain: rc 0, no warning in a touched file). Boards without a row stay in Not yet; a regression gets a same-day revert.

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.

1 participant