aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Huang <JinHuiEric.Huang@amd.com>2018-02-26 17:36:19 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-28 15:17:11 -0500
commita0aaa03062be252aacad60a776f3374dd53e3f98 (patch)
tree57b4b0805821a66650d4d965e6c2f4a9115fdf65
parent8014e2d3fd640c892ed334e7de7af918e141c8ff (diff)
drm/amd/powerplay: fix power over limit on Fiji
power containment disabled only on Fiji and compute power profile. It violates PCIe spec and may cause power supply failed. Enabling it will fix the issue, even the fix will drop performance of some compute tests. 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> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
index 45be31327340..08e8a793714f 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -4537,13 +4537,6 @@ static int smu7_set_power_profile_state(struct pp_hwmgr *hwmgr,
4537 int tmp_result, result = 0; 4537 int tmp_result, result = 0;
4538 uint32_t sclk_mask = 0, mclk_mask = 0; 4538 uint32_t sclk_mask = 0, mclk_mask = 0;
4539 4539
4540 if (hwmgr->chip_id == CHIP_FIJI) {
4541 if (request->type == AMD_PP_GFX_PROFILE)
4542 smu7_enable_power_containment(hwmgr);
4543 else if (request->type == AMD_PP_COMPUTE_PROFILE)
4544 smu7_disable_power_containment(hwmgr);
4545 }
4546
4547 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO) 4540 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO)
4548 return -EINVAL; 4541 return -EINVAL;
4549 4542