mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
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
This commit is contained in:
parent
60b431b5c1
commit
a0a73b950d
1 changed files with 0 additions and 7 deletions
|
@ -4630,13 +4630,6 @@ static int smu7_set_power_profile_state(struct pp_hwmgr *hwmgr,
|
||||||
int tmp_result, result = 0;
|
int tmp_result, result = 0;
|
||||||
uint32_t sclk_mask = 0, mclk_mask = 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)
|
if (hwmgr->dpm_level != AMD_DPM_FORCED_LEVEL_AUTO)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue