]> 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)
commit489e6b75023325c89bbe29ea202802ded4897dfa
treee01dd1454602ad7d6ab72b2496847d58ffd47973
parent6d66be33220035c6ffd337ac42a077d7a909ca1b
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