]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Allow switching to CUSTOM profile on Vega20
authorKent Russell <kent.russell@amd.com>
Mon, 1 Apr 2019 11:19:06 +0000 (07:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Apr 2019 15:00:31 +0000 (10:00 -0500)
commitea671dff6afa09e903e628d7d1cccc240b6ba167
treee01dd1454602ad7d6ab72b2496847d58ffd47973
parenteb2d416dc9660b7578d16e609a3b0f93ec087efe
drm/amdgpu: Allow switching to CUSTOM profile on Vega20

Vega20 stores a CUSTOM profile on the GPU, but it may not be valid. Add
a bool to vega20_hwmgr to determine whether or not a valid CUSTOM
profile has been set, and use that to check when a user requests
switching to the CUSTOM profile without passing in any arguments. Then
if the CUSTOM profile has been set already, we can switch to it without
providing the parameters again

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h