summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
diff options
context:
space:
mode:
authorLikun Gao2019-01-11 10:42:47 +0100
committerAlex Deucher2019-03-19 21:03:59 +0100
commit95add9591adab7002e203d5c1c57796e752b15e5 (patch)
tree9afb42be28188cf842c0a89f840f64e388759556 /drivers/gpu/drm/amd/powerplay/smu_v11_0.c
parentdrm/amd/powerplay: add function to set default overdrive settings (diff)
downloadkernel-qcow2-linux-95add9591adab7002e203d5c1c57796e752b15e5.tar.gz
kernel-qcow2-linux-95add9591adab7002e203d5c1c57796e752b15e5.tar.xz
kernel-qcow2-linux-95add9591adab7002e203d5c1c57796e752b15e5.zip
drm/amd/powerplay: add golden dpm table to backup default DPM table (v2)
Backup default DPM table into golden dpm table. v2: fix dpm_context and golden_dpm_context kfree two times issue. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Kevin Wang <kevin1.wang@amd.com> Reviewed-by: Evan Quan <evan.quan@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/smu_v11_0.c')
-rw-r--r--drivers/gpu/drm/amd/powerplay/smu_v11_0.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
index 037d900c450c..534319f24eb0 100644
--- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
+++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
@@ -272,7 +272,9 @@ static int smu_v11_0_fini_dpm_context(struct smu_context *smu)
return -EINVAL;
kfree(smu_dpm->dpm_context);
+ kfree(smu_dpm->golden_dpm_context);
smu_dpm->dpm_context = NULL;
+ smu_dpm->golden_dpm_context = NULL;
smu_dpm->dpm_context_size = 0;
return 0;