`AMDGPU_PP_SENSOR_GPU_AVG_POWER` is not supported on some GPUs/APUs
The AMDGPU driver now internally converts AMDGPU_INFO_SENSOR_GPU_AVG_POWER
to AMDGPU_PP_SENSOR_GPU_AVG_POWER
.
However, AMDGPU_PP_SENSOR_GPU_AVG_POWER
is not supported on some GPUs/APUs (SMU7, Vega10, Vega12, SMU12 [Renoir], Yellow Carp, SMU13.0.{5,6}).
Those AMD GPUs support only AMDGPU_PP_SENSOR_GPU_INPUT_POWER
.
agd5f/linux@9366c2e8
agd5f/linux@47f1724d
With this change, applications that were getting AMD GPU power consumption from the libdrm API will receive an error.
https://github.com/Syllo/nvtop/issues/244
Edited by Umio Yasuno