[PATCH 3/3] drm/amdgpu: Allow changing to BOOTUP profile on smu7

Russell, Kent Kent.Russell at amd.com
Mon Mar 25 12:41:34 UTC 2019


With SMU7 using case statements, against vega10/20 only checking for the
CUSTOM profile, SMU7 can't set the power profile back to the
BOOTUP_DEFAULT, while newer HWMGRs can. Add the case statement in to
align functionality with other ASICs

Change-Id: Ibc7df3b94b1a9dabcb88934e534c91209fc75967
Signed-off-by: Kent Russell <kent.russell at amd.com>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 74d55b8fb74e..7c3eae2a34b4 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -5005,6 +5005,7 @@ static int smu7_set_power_profile_mode(struct pp_hwmgr *hwmgr, long *input, uint
 			hwmgr->power_profile_mode = mode;
 		}
 		break;
+	case PP_SMC_POWER_PROFILE_BOOTUP_DEFAULT:
 	case PP_SMC_POWER_PROFILE_FULLSCREEN3D:
 	case PP_SMC_POWER_PROFILE_POWERSAVING:
 	case PP_SMC_POWER_PROFILE_VIDEO:
-- 
2.17.1



More information about the amd-gfx mailing list