[PATCH 10/10] drm/amd/pp: Enable auto automan feature on Vega10
Rex Zhu
Rex.Zhu at amd.com
Sat Feb 24 13:56:07 UTC 2018
Change-Id: I7bd4dc5b255ed3edcb28f6c770e7b0199d0662d4
Signed-off-by: Rex Zhu <Rex.Zhu at amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index 2fd0417..0c05024 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@ -228,6 +228,8 @@ int hwmgr_early_init(struct pp_instance *handle)
case AMDGPU_FAMILY_AI:
switch (hwmgr->chip_id) {
case CHIP_VEGA10:
+ if (hwmgr->feature_mask & PP_AUTOWATTMAN_MASK)
+ hwmgr->autowattman_enabled = true; /* currently only enabled on vega10 */
hwmgr->smumgr_funcs = &vega10_smu_funcs;
vega10_hwmgr_init(hwmgr);
break;
@@ -1022,6 +1024,7 @@ int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr)
phm_cap_set(hwmgr->platform_descriptor.platformCaps,
PHM_PlatformCaps_TCPRamping);
}
+
return 0;
}
--
1.9.1
More information about the amd-gfx
mailing list