mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/amd/pm: fix debugfs pm_info output
Print both input and avg power.
Fixes: 47f1724db4 ("drm/amd: Introduce `AMDGPU_PP_SENSOR_GPU_INPUT_POWER`")
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7d4424373d
commit
a7dd9b97fd
|
|
@ -3471,6 +3471,9 @@ static int amdgpu_debugfs_pm_info_pp(struct seq_file *m, struct amdgpu_device *a
|
|||
size = sizeof(uint32_t);
|
||||
if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_AVG_POWER, (void *)&query, &size))
|
||||
seq_printf(m, "\t%u.%u W (average GPU)\n", query >> 8, query & 0xff);
|
||||
size = sizeof(uint32_t);
|
||||
if (!amdgpu_dpm_read_sensor(adev, AMDGPU_PP_SENSOR_GPU_INPUT_POWER, (void *)&query, &size))
|
||||
seq_printf(m, "\t%u.%u W (current GPU)\n", query >> 8, query & 0xff);
|
||||
size = sizeof(value);
|
||||
seq_printf(m, "\n");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user