drm/amdgpu/powerplay/vega10: allow undervolting in p7
authorPelle van Gils <pelle@vangils.xyz>
Thu, 24 Oct 2019 14:04:31 +0000 (16:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Oct 2019 15:56:16 +0000 (11:56 -0400)
commite6f4e274c1e52d1f0bfe293fb44ddf59de6c0374
tree8ed4750369695074bdcb7b04884447b387d2be95
parent364593f3ee5fdefc6efd89475e1804c928b4e6ba
drm/amdgpu/powerplay/vega10: allow undervolting in p7

The vega10_odn_update_soc_table() function does not allow the SCLK
dependent voltage to be set for power-state 7 to a value below the default
in pptable. Change the for-loop condition to allow undervolting in the
highest state.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=205277
Signed-off-by: Pelle van Gils <pelle@vangils.xyz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c