drm/amdgpu/smu_v11_0: Correct behavior of restoring default tables (v2)
authorMatt Coffin <mcoffin13@gmail.com>
Sat, 25 Jan 2020 18:04:05 +0000 (13:04 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:37:51 +0000 (10:37 -0500)
commit93c5f1f66c6ad4a3b180c1644f74e1b3b4be7864
tree7ccec5f412eb3458e3b24665afe55465fa979d3b
parentee23a518fdc2c1dd1aaaf3a2c7ffdd6c83b396ec
drm/amdgpu/smu_v11_0: Correct behavior of restoring default tables (v2)

Previously, the syfs functionality for restoring the default powerplay
table was sourcing it's information from the currently-staged powerplay
table.

This patch adds a step to cache the first overdrive table that we see on
boot, so that it can be used later to "restore" the powerplay table

v2: sqaush my original with Matt's fix

Bug: https://gitlab.freedesktop.org/drm/amd/issues/1020
Signed-off-by: Matt Coffin <mcoffin13@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.5.x
drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
drivers/gpu/drm/amd/powerplay/navi10_ppt.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c