Skip to content

soc: apple: pmp: start CoreAnalytics on the T6041 - #405

Closed
jgoyvaerts wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/pmp-t6041-coreanalytics
Closed

jgoyvaerts wants to merge 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/pmp-t6041-coreanalytics

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

#400 made RTKit system endpoint 7 (CoreAnalytics) opt-in, and only the J713 PMP opts in. The T6041 (M4 Pro) PMP firmware advertises the endpoint too. On our earlier tree its RTKit boot failed with "IOP power acknowledgment failed: -62" until endpoint 7 was started, and our testing of the T6041 support (#374) used a tree that started endpoint 7 for every RTKit client. So the merged T6041 PMP code has not been run as merged.

This makes the requirement a per-SoC setting with three values:

  • no: T8140 and the default;
  • always: T6041;
  • only on the retained J713 board: T8132, as before.

RTKit waits for CoreAnalytics only when the firmware advertises the endpoint, so "always" adds no wait on firmware without it.

Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, macOS 26.6.2 firmware, booted by our own loader.

How tested: our daily kernel on integration/aurora ac6b017bce (Linux 7.3, #400 included) with this commit: the PMP logs "PMP started", and pmp-report reports it running (status 0x1, requests 0x3c00).

Not tested / limits: no boot of the merged code without this commit, so the -62 failure is from our earlier tree, not re-run on this base. The J713 and T8140 paths are unchanged but were not run here.

Base: integration/aurora (ac6b017bce). Builds with CONFIG_APPLE_PMP=m and CONFIG_DRM_ASAHI_G16=y; no new warnings.

The endpoint-7 requirement on the M4 Pro was found by Niklas Sheth (GravityLinux).

🤖 Generated with Claude Code

The T6041 (M4 Pro) PMP firmware advertises RTKit system endpoint 7
(CoreAnalytics). On our earlier tree the PMP's RTKit boot failed with
"IOP power acknowledgment failed: -62" until endpoint 7 was started,
and our testing of the T6041 support used a tree that started endpoint
7 for every RTKit client.

RTKit now starts endpoint 7 only for the clients that ask for it, and
the PMP asks only on the J713. Make the requirement a per-SoC setting
with three values (no, always, only on the retained J713 board) and
require it always on the T6041. RTKit waits for CoreAnalytics only when
the firmware advertises the endpoint. The T8132 and T8140 keep their
behaviour.

With this change the PMP starts on integration/aurora on the J616s
(Linux 7.3, macOS 26.6.2 firmware): "PMP started", and pmp-report sees
it running.

The endpoint-7 requirement on the M4 Pro was found by Niklas Sheth
(GravityLinux).

Fixes: 927c318 ("soc: apple: pmp: Add T6040 support")
Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
Assisted-by: LLM
@jgoyvaerts

Copy link
Copy Markdown
Contributor Author

Closing as a duplicate of #402, which landed minutes earlier with the same endpoint-7 fix for every T6041 PMP (plus the pmp-gfx report fix). Thanks!

@jgoyvaerts jgoyvaerts closed this Oct 23, 2026
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