diff options
| author | Zhang Rui <[email protected]> | 2025-05-17 09:44:50 +0000 |
|---|---|---|
| committer | Len Brown <[email protected]> | 2025-06-08 18:10:16 +0000 |
| commit | ff3d019e98db83ce2b5eb395333bc2518b37f4f0 (patch) | |
| tree | d97186cbb9f98397b42914073a0df772a17fcfcd /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | tools/power turbostat: Clean up add perf/msr counter logic (diff) | |
| download | kernel-ff3d019e98db83ce2b5eb395333bc2518b37f4f0.tar.gz kernel-ff3d019e98db83ce2b5eb395333bc2518b37f4f0.zip | |
tools/power turbostat: Allow probing RAPL with platform_features->rapl_msrs cleared
platform_features->rapl_msrs describes the RAPL MSRs supported. While
RAPL Perf counters can be exposed from different kernel backend drivers,
e.g. RAPL MSR I/F driver, or RAPL TPMI I/F driver.
Thus, turbostat should first blindly probe all the available RAPL Perf
counters, and falls back to the RAPL MSR counters if they are listed in
platform_features->rapl_msrs.
With this, platforms that don't have RAPL MSRs can clear the
platform_features->rapl_msrs bits and use RAPL Perf counters only.
Signed-off-by: Zhang Rui <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
