]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita2b755e974e69b478f1e3c487a886ce3bdc16e6d
tree7ccec5f412eb3458e3b24665afe55465fa979d3b
parent63213819d936a8825cebd777835e5d2adde25b5c
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