diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2017-05-15 04:08:28 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-24 18:09:48 -0400 |
commit | e0ec45063609b4a583e7f4d843275888f2480321 (patch) | |
tree | 884b1e0f41d825d32d4dd8dbc1a2d6f0ad9a5446 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 2d2e5e7e530722bc5815e5c646c5d5ec7479d55c (diff) |
drm/amd/powerplay: Fix Vega10 power profile switching
Clock index 0 is a valid index that is needed to restore the default
graphics power profile. Use ~0 to indicate a failure to find a clock
index. This fixes the clocks getting stuck in the compute power
profile after running a compute application on Vega10.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions