]> 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)
commit6d66be33220035c6ffd337ac42a077d7a909ca1b
tree873d9ade28a9d4253e67cc4f39fa5762a6d38e31
parent99e39a085948a97ae37334db43e7fd8b1bb0a5cf
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