]> git.baikalelectronics.ru Git - kernel.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)
commitd8adeece13a8773ad587d2220b4189c3bdb498a0
tree884b1e0f41d825d32d4dd8dbc1a2d6f0ad9a5446
parent80981213f349fc1881cf244422e8face283bc9a1
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