drm/amdgpu/pm: fix the fan speed in fan1_input in manual mode for navi1x
Subsystems (3)
PATCH 1/1 drm/amdgpu/pm: fix the fan speed in fan1_input in manual mode for navi1x
It has been confirmed that the SMU metrics table should always reflect the current fan speed even in manual mode.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +3 -8
@@ -1361,14 +1361,9 @@ static int navi10_get_fan_speed_rpm(struct smu_context *smu,if (!speed)return -EINVAL ; -switch (smu_v11_0_get_fan_control_mode (smu)) { -case AMD_FAN_CTRL_AUTO : -return navi10_get_smu_metrics_data (smu, -METRICS_CURR_FANSPEED , - speed); -default : -return smu_v11_0_get_fan_speed_rpm (smu, speed); - } +return navi10_get_smu_metrics_data (smu, +METRICS_CURR_FANSPEED , + speed); }static int navi10_get_fan_parameters (struct smu_context *smu)
Signature · 6 lines
2.25.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Tuesday, October 27, 2020 5:43 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/pm: fix the fan speed in fan1_input in manual mode for navi1x
It has been confirmed that the SMU metrics table should always reflect the current fan speed even in manual mode.
--- drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c +3 -8
@@ -1361,14 +1361,9 @@ static int navi10_get_fan_speed_rpm(struct smu_context *smu,if (!speed)return -EINVAL ; -switch (smu_v11_0_get_fan_control_mode (smu)) { -case AMD_FAN_CTRL_AUTO : -return navi10_get_smu_metrics_data (smu, -METRICS_CURR_FANSPEED , - speed); -default : -return smu_v11_0_get_fan_speed_rpm (smu, speed); -} +return navi10_get_smu_metrics_data (smu, +METRICS_CURR_FANSPEED , + speed); }static int navi10_get_fan_parameters (struct smu_context *smu)
--
2.25.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&data=04%7C01%7Cevan.quan%40amd.com%7C6856f65a142f4c8b933f08d879f83340%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637393454223805214%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HR2B2wvNQAEBBcDLEC9C6PXJOswWjejQN4XeWEuksSY%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx