]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/amd/powerplay: Fix Vega10 power profile switching
authorFelix Kuehling <Felix.Kuehling@amd.com>
Mon, 15 May 2017 08:08:28 +0000 (04:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 22:09:48 +0000 (18:09 -0400)
commite0ec45063609b4a583e7f4d843275888f2480321
tree884b1e0f41d825d32d4dd8dbc1a2d6f0ad9a5446
parent2d2e5e7e530722bc5815e5c646c5d5ec7479d55c
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>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c