diff options
| author | Evan Quan <[email protected]> | 2021-02-09 04:23:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-08-16 19:35:56 +0000 |
| 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 | kernel-d9ca7567b864322b9fd13b0d29ed510b80bba2f0.tar.gz kernel-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 <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
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. */ |
