Skip to content

Commit

Permalink
drm/amd/powerplay: fix power over limit on Fiji
Browse files Browse the repository at this point in the history
power containment disabled only on Fiji and compute
power profile. It violates PCIe spec. Enabling it will
fix the issue, even fix will drop performance of some
compute tests.

Change-Id: I4af9ac37db8e1d6ede217830f4b3d9a51511856b
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
  • Loading branch information
Eric Huang authored and Eric Huang committed Feb 26, 2018
1 parent 80d0570 commit 17d1ab1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4569,13 +4569,6 @@ 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;

Expand Down

0 comments on commit 17d1ab1

Please sign in to comment.