Skip to contentSkip to conversation

drm/amdgpu/powerplay: set the smu fan control cap for CI asics

PATCH In review Alex Deucher 2 participants 2 messages Dec 1, 2020 – Dec 2, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu/powerplay: set the smu fan control cap for CI asics

The default should be to enable it, and then it could be cleared depending on the board design.

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +3 -0
index 48d550d26c6a..f116346525df 100644
@@ -1006,6 +1006,9 @@ static int init_thermal_controller(
 
 	hwmgr->thermal_controller.use_hw_fan_control = 1;
 
+	phm_cap_set(hwmgr->platform_descriptor.platformCaps,
+		    PHM_PlatformCaps_MicrocodeFanControl);
+
 	return 0;
 }
 
Signature · 6 lines
2.25.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Wednesday, December 2, 2020 6:50 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu/powerplay: set the smu fan control cap for CI asics

The default should be to enable it, and then it could be cleared depending on the board design.

---
 drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/processpptables.c +3 -0
index 48d550d26c6a..f116346525df 100644
@@ -1006,6 +1006,9 @@ static int init_thermal_controller(
 
 hwmgr->thermal_controller.use_hw_fan_control = 1;
 
+phm_cap_set(hwmgr->platform_descriptor.platformCaps,
+    PHM_PlatformCaps_MicrocodeFanControl);
+
 return 0;
 }
 

--
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&amp;data=04%7C01%7Cevan.quan%40amd.com%7C71ab1a16a6634983bb0d08d8964b7054%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637424598051737572%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=0dIjgTK11GB%2FHyVt66O3MprB7WB8KdT6%2BWfxN1jXuzQ%3D&amp;reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx