aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
diff options
context:
space:
mode:
authorEvan Quan <[email protected]>2021-02-09 05:20:30 +0000
committerAlex Deucher <[email protected]>2021-08-16 19:35:56 +0000
commitf3289d049720f356dc35ae72289743d7202b7787 (patch)
tree06d24aa2405c30b9d9c40096ffd74798f31f5d14 /drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
parentdrm/amd/amdgpu: remove unnecessary RAS context field (diff)
downloadkernel-f3289d049720f356dc35ae72289743d7202b7787.tar.gz
kernel-f3289d049720f356dc35ae72289743d7202b7787.zip
drm/amd/pm: correct the fan speed RPM setting
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 perform the fan speed RPM setting. 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.h5
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 c2c201b8e3cf..183654f8b564 100644
--- a/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
@@ -1048,6 +1048,11 @@ struct pptable_funcs {
int (*set_fan_speed_percent)(struct smu_context *smu, uint32_t speed);
/**
+ * @set_fan_speed_rpm: Set a static fan speed in rpm.
+ */
+ int (*set_fan_speed_rpm)(struct smu_context *smu, uint32_t speed);
+
+ /**
* @set_xgmi_pstate: Set inter-chip global memory interconnect pstate.
* &pstate: Pstate to set. D0 if Nonzero, D3 otherwise.
*/