Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Eric Huang and committed by
Alex Deucher
a0aaa030 8014e2d3

-7
-7
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
··· 4537 4537 int tmp_result, result = 0; 4538 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 4540 if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO) 4548 4541 return -EINVAL; 4549 4542