summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
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/inc/amdgpu_smu.h
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/inc/amdgpu_smu.h')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
index 635c8b8e6d8d..9e376eea847d 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
@@ -201,8 +201,9 @@ struct smu_table_context
};
struct smu_dpm_context {
- void *dpm_context;
uint32_t dpm_context_size;
+ void *dpm_context;
+ void *golden_dpm_context;
};
struct smu_power_context {