tp: Support dynamic out-of-tree (OOT) Wattson SoC power models - #7335
Draft
runpinglai-creator wants to merge 3 commits into
Draft
tp: Support dynamic out-of-tree (OOT) Wattson SoC power models#7335runpinglai-creator wants to merge 3 commits into
runpinglai-creator wants to merge 3 commits into
Conversation
🎨 Perfetto UI Builds
|
runpinglai-creator
force-pushed
the
dev/runpinglai/oot
branch
from
September 9, 2026 22:31
f164f67 to
5990886
Compare
Mirror wattson_soc_model.proto and FrameworksBaseTracePacket extension 1004 from Android frameworks/base. Define storage tables for dynamic Wattson SoC power models (device info, CPU topology, idle state mapping, and subsystem power curves) via the table generator DSL, and register them in TraceStorage.
Implement WattsonSocModelModule to decode WattsonSocModel packets (TracePacket tag 1004) into Wattson custom storage tables. Decodes structured WattsonCpuTopology (mapping physical cores to cpufreq policies, applying deep idle offsets, and setting 2D frequency voting) and subsystem power curves (1D/2D CPU, GPU, L3, TPU) with backward compatibility fallbacks. Adds comprehensive unit tests.
Route dynamically imported Wattson SoC models from storage tables into Wattson SQL stdlib pipeline. Assigns highest priority to custom device models in _wattson_device_map, and merges custom topology and empirical power curves with in-tree tables using UNION ALL. All downstream power estimations and UI continuous tracks function seamlessly for both in-tree and out-of-tree devices.
runpinglai-creator
force-pushed
the
dev/runpinglai/oot
branch
from
September 9, 2026 23:37
f7a9eb7 to
e6f414a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces end-to-end support for dynamic out-of-tree (OOT) Wattson SoC power models. Trace Processor can now ingest SoC power models directly embedded in trace packets (
WattsonSocModel, field 1004 ofFrameworksBaseTracePacket) without requiring device models and power curves to be hardcoded in upstream Perfetto stdlib.