]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Allow switching to CUSTOM profile on Vega10 v2
authorKent Russell <kent.russell@amd.com>
Mon, 1 Apr 2019 10:43:39 +0000 (06:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Apr 2019 15:00:31 +0000 (10:00 -0500)
commiteb2d416dc9660b7578d16e609a3b0f93ec087efe
tree873d9ade28a9d4253e67cc4f39fa5762a6d38e31
parent00c539a8147ceeb55b0f3de9be7a5f42f97fa6d1
drm/amdgpu: Allow switching to CUSTOM profile on Vega10 v2

Don't return an error if the CUSTOM profile is selected, just apply it
with the values saved to the GPU. But ensure that we zero out the
copy stored in adev to ensure that a valid profile has been submitted at
some point first

v2: Fix comment that wasn't updated from previous patch

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/vega10_hwmgr.c