aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
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 14:18:06 -0500
commita0a73b950d0b2618690488ad067f96ab703e05c2 (patch)
treed349b78f79796e6512ddb992ba98fd0e329f21ac /drivers/gpu/drm/amd
parent60b431b5c165514729ad0a47e18b0f99783dfc38 (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
Diffstat (limited to 'drivers/gpu/drm/amd')
-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 535d786b79ae..731475b06be7 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
@@ -4630,13 +4630,6 @@ static int smu7_set_power_profile_state(struct pp_hwmgr *hwmgr,
4630 int tmp_result, result = 0; 4630 int tmp_result, result = 0;
4631 uint32_t sclk_mask = 0, mclk_mask = 0; 4631 uint32_t sclk_mask = 0, mclk_mask = 0;
4632 4632
4633 if (hwmgr->chip_id == CHIP_FIJI) {
4634 if (request->type == AMD_PP_GFX_PROFILE)
4635 smu7_enable_power_containment(hwmgr);
4636 else if (request->type == AMD_PP_COMPUTE_PROFILE)
4637 smu7_disable_power_containment(hwmgr);
4638 }
4639
4640 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO) 4633 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO)
4641 return -EINVAL; 4634 return -EINVAL;
4642 4635