diff options
| author | Asad Kamal <asad.kamal@amd.com> | 2026-06-23 00:00:00 +0000 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 11:25:48 -0400 |
| commit | c42871ba4833855fb3ac1cdc586b3c5345d09e5d (patch) | |
| tree | 9a7859b9eb2f2abb1ab039d0a2f100b79c2e9cd0 /tools/perf/scripts/python | |
| parent | 5d3cc8e388464f485d0944b87b8f9426e637d082 (diff) | |
drm/amdgpu/pm: add pp_entries_max() helper
Add a static inline that returns the maximum safe record count for a
PowerPlay sub-table, bounded by the lesser of soft_pp_table_size and
adev->bios_size. Uses adev->bios directly to avoid a dependency on
struct atom_context. Subsequent patches use it to clamp ucNumEntries.
Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
