OSDN Git Service

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)
commite178f10726d136e54080a43382b858020ea694a3
treee01dd1454602ad7d6ab72b2496847d58ffd47973
parentbbdf38cc0dce5c68658e20b777720b8611dc286c
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