drm/amd/pm: fix the wrong fan speed in fan1_input
fix the wrong fan speed in fan1_input when the fan control mode is manual. the fan speed value is not correct when we set manual mode to fan1_enalbe - 1. since the fan speed in the metrics table always reflects the real fan speed,we can fetch the fan speed for both auto and manual mode. Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Likun Gao <Likun.Gao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
4a3a1dc02f
commit
1eeb03c883
@ -1171,14 +1171,9 @@ static int sienna_cichlid_get_fan_speed_rpm(struct smu_context *smu,
|
|||||||
if (!speed)
|
if (!speed)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
switch (smu_v11_0_get_fan_control_mode(smu)) {
|
return sienna_cichlid_get_smu_metrics_data(smu,
|
||||||
case AMD_FAN_CTRL_AUTO:
|
METRICS_CURR_FANSPEED,
|
||||||
return sienna_cichlid_get_smu_metrics_data(smu,
|
speed);
|
||||||
METRICS_CURR_FANSPEED,
|
|
||||||
speed);
|
|
||||||
default:
|
|
||||||
return smu_v11_0_get_fan_speed_rpm(smu, speed);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sienna_cichlid_get_fan_parameters(struct smu_context *smu)
|
static int sienna_cichlid_get_fan_parameters(struct smu_context *smu)
|
||||||
|
Reference in New Issue
Block a user