summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
diff options
context:
space:
mode:
authorEric Huang2017-03-13 19:15:48 +0100
committerAlex Deucher2017-03-30 05:54:14 +0200
commit923d26db85e8188bdbfeb7f8d70dfd86d901d4f0 (patch)
tree78af9a87343a29c6c8615bb67e94b1e094854418 /drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
parentdrm/amdgpu/gfx8: further KIQ parameter cleanup (diff)
downloadkernel-qcow2-linux-923d26db85e8188bdbfeb7f8d70dfd86d901d4f0.tar.gz
kernel-qcow2-linux-923d26db85e8188bdbfeb7f8d70dfd86d901d4f0.tar.xz
kernel-qcow2-linux-923d26db85e8188bdbfeb7f8d70dfd86d901d4f0.zip
drm/amd/powerplay: restore disabling power containment on Fiji (v2)
Power containment will degrade performance in some compute tests. Restore disabling it as before code refining in powerplay. v2: only in the compute profile Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 154d9a29749c..604ffea83757 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -4576,6 +4576,13 @@ static int smu7_set_power_profile_state(struct pp_hwmgr *hwmgr,
int tmp_result, result = 0;
uint32_t sclk_mask = 0, mclk_mask = 0;
+ if (hwmgr->chip_id == CHIP_FIJI) {
+ if (request->type == AMD_PP_GFX_PROFILE)
+ smu7_enable_power_containment(hwmgr);
+ else if (request->type == AMD_PP_COMPUTE_PROFILE)
+ smu7_disable_power_containment(hwmgr);
+ }
+
if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO)
return -EINVAL;