Skip to content

arm64: dts: apple: t6050-k116s: enforce the PMP's fast die-temperature effort - #2211

Open
axboe wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
axboe:k116s-fast-die
Open

axboe wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
axboe:k116s-fast-die

Conversation

@axboe

@axboe axboe commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

The K116s runs the PMP and its report node, but its cpufreq nodes never got apple,fast-die-effort, so nothing applies the effort the PMP's die-temperature loop publishes. Under a sustained all-core load the hottest die sensors sit at 110 to 112 °C with every cluster commanded to its top state, and the effort for the P cluster is pinned at its maximum. The J714s was in this state until c0a5202.

This gives each cluster its lane, in the order of the K116s ADT's fast-die-ctrl-ce-map (MACC0, MACC1, PACC_ANE), exactly as on the J714s. No driver change.

Measured on a K116s (firmware 27.2), integration/aurora 0abc2f3 plus my K116s series, four minutes of openssl speed -multi 18 -evp aes-256-gcm:

Before After
Effort, lane 2 (0 to 255) 248 to 255 45 to 66
TCMb 110 °C 108 °C
Throughput, first 30 s 103.9 GB/s 120.1 GB/s
Throughput, sustained 81 to 85 GB/s 111 to 115 GB/s

Lanes 0 and 1 read 0 in both runs. Fans are the same in both (the SMC's own policy, about 3900 rpm).

A six-minute build afterwards: TCMb steady at 108 to 109 °C (110.5 °C peak), Tp00 at 102 °C, 91 to 95 W.

dtbs_check adds no warning for the K116s.

@RyanTheTide

Copy link
Copy Markdown
Contributor

No blockers.

The three lanes follow the same &pmp0_report index order as t6050-j714s.dts:476-486, and the K116s already enables pmp0_report (t6050-k116s.dts:555). The cpufreq nodes therefore get a running report source, not the fallback limit. Keeping this per board matches t6050-base.dtsi, where boards without a running PMP must not get the property. The before/after numbers show the effort being applied. The commit has a human Signed-off-by and no trailers.

Nit: t6050-base.dtsi:103-105 still names only t6050-j714s.dts as a board that sets apple,fast-die-effort; add the K116s there.

HW row: the same K116s run plus a regression pass: 0 SELinux denials, 0 failed units, 0 new kernel errors, and dtbs_check clean (already given).

Assisted-by: LLM (Claude:Opus 5.5)

…e effort

The PMP runs its die-temperature loop on the K116s and publishes an
effort per cluster, but nothing applies it: under a sustained all-core
load the hottest die sensors sit at 112 C with every cluster commanded
to its top state. The J714s was in the same state until it got these
properties.

Give each cluster its effort lane, in the order of the ADT's
fast-die-ctrl-ce-map, as on the J714s.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
@axboe

axboe commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

Ryan, the nit is in at 0d61a7d: the comment in t6050-base.dtsi lists t6050-k116s.dts beside the J714s. Nothing else changed.

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

Formal pre-PR §1–§6 review at 0d61a7d3102a against integration/aurora tip 70a00e583b03: REQUEST_CHANGES.

Code, DT & Supersession Audit

  • Not superseded: Live arch/arm64/boot/dts/apple/t6050-k116s.dts enables &pmp0/&pmp0_report (:545-557) but still lacks apple,fast-die-effort on &cpufreq_mc0, &cpufreq_mc1, and &cpufreq_pc.
  • §1–§3 (DT / bindings / safety): Clean. Lane mapping (0, 1, 2 on &pmp0_report) matches Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml:58-70 (M0, M1, P on T6050) and t6050-j714s.dts:500-510, enforces firmware-published PMP fast-die effort rather than hardcoded limits, works on the default kernel command line, and t6050-base.dtsi is updated alongside it.
  • §4 (Attribution): Clean — human author/committer and human Signed-off-by: Jens Axboe <axboe@kernel.dk> only, zero AI commit trailers.
  • §6 (CI & naming): Live CI is green (host-tests run 44910120325, dt-checks run 44910120307).

Blockers

  1. §5 (Exact-head regression pass): The thermal/throughput before-and-after measurements on K116s are strong, and 0d61a7d3102a only added the t6050-base.dtsi comment nit, but the required regression summary (0 SELinux denials, 0 failed units, 0 new kernel errors) for the K116s boot has not been posted yet (also requested in the 2026-11-21 review comment). Please post the K116s regression summary confirming 0 SELinux denials, 0 failed units, 0 new kernel errors for this head.

Assisted-by: LLM (Gemini 4 Neon)

@axboe

axboe commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

K116s regression line, from the machine's current boot.

Kernel: integration/aurora 70a00e5 + #2201 v8 + my other K116s commits (7.3.0-m5pro-g3a8e4da2d676). Not this exact head: that stack carries the every-board form of this change (the mapping in t6050-peripherals.dtsi) instead of this PR's K116s hunk. The running device tree ends up the same: apple,fast-die-effort = <&pmp0_report 0>, 1 and 2 on the three cluster nodes.

  • 0 failed units.
  • 0 error-level kernel lines from boot up to the first sleep.
  • No SELinux on this Debian install, so nothing to count there. 0 AppArmor denials.
  • apple-pmp-report 284240000.pmp-report: PMP running (status 0x1), requests 0x1000047000

Command line is my usual one (idle=nop among others), not the default.

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.

3 participants