drm/amdgpu: fetch default VDDC curve voltages (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Sat, 25 Jan 2020 18:30:45 +0000 (13:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:37:52 +0000 (10:37 -0500)
commit0531aa6eb38bfa9514609e2727558a051da7365f
treef7759643c315ebc96c7de759db0e27ced28dd499
parent93c5f1f66c6ad4a3b180c1644f74e1b3b4be7864
drm/amdgpu: fetch default VDDC curve voltages (v2)

Ask the SMU for the default VDDC curve voltage values.  This
properly reports the VDDC values in the OD interface.

v2: only update if the original values are 0

Bug: https://gitlab.freedesktop.org/drm/amd/issues/1020
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.5.x
drivers/gpu/drm/amd/powerplay/navi10_ppt.c