OSDN Git Service

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)
commitbbdf38cc0dce5c68658e20b777720b8611dc286c
tree873d9ade28a9d4253e67cc4f39fa5762a6d38e31
parent233d3ee4ba3636c0215714ee9f282e08147a452b
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