diff options
| author | 2021-02-09 12:23:33 +0800 | |
|---|---|---|
| committer | 2021-08-16 15:35:56 -0400 | |
| commit | d9ca7567b864322b9fd13b0d29ed510b80bba2f0 (patch) | |
| tree | 9a239080ab9a7675c7c860a7d73c55723f1f6354 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | |
| parent | drm/amd/pm: correct the fan speed PWM retrieving (diff) | |
| download | wireguard-linux-d9ca7567b864322b9fd13b0d29ed510b80bba2f0.tar.xz wireguard-linux-d9ca7567b864322b9fd13b0d29ed510b80bba2f0.zip | |
drm/amd/pm: correct the fan speed RPM retrieving
The relationship "PWM = RPM / smu->fan_max_rpm" between fan speed
PWM and RPM is not true for SMU11 ASICs. So, we need a new way to
retrieving the fan speed RPM.
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h index 29934a5af44e..c0ac6754f448 100644 --- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h +++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h @@ -730,6 +730,11 @@ struct pptable_funcs { int (*get_fan_speed_percent)(struct smu_context *smu, uint32_t *speed); /** + * @get_fan_speed_rpm: Get the current fan speed in rpm. + */ + int (*get_fan_speed_rpm)(struct smu_context *smu, uint32_t *speed); + + /** * @set_watermarks_table: Configure and upload the watermarks tables to * the SMU. */ |
