summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
diff options
context:
space:
mode:
authorLikun Gao2018-12-18 15:56:48 +0100
committerAlex Deucher2019-03-19 21:03:56 +0100
commit3e333c6ca1f5e82aa0024dca4015ca1aa69b222b (patch)
tree9f9019c6ee90e47f8fd2629302c4a13830ad3c1a /drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
parentdrm/amd/powerplay: add vega20 pptable function file (diff)
downloadkernel-qcow2-linux-3e333c6ca1f5e82aa0024dca4015ca1aa69b222b.tar.gz
kernel-qcow2-linux-3e333c6ca1f5e82aa0024dca4015ca1aa69b222b.tar.xz
kernel-qcow2-linux-3e333c6ca1f5e82aa0024dca4015ca1aa69b222b.zip
drm/amd/powerplay: add function to parse pptable for smu11
Add smu_v11_0_parse_pptable function for smu11. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Reviewed-by: Kevin Wang <Kevin1.Wang@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, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
index 437d0ada16b6..c6774e35280a 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
@@ -70,6 +70,7 @@ struct smu_table_context
uint32_t power_play_table_size;
struct smu_bios_boot_up_values boot_values;
+ void *driver_pptable;
struct smu_table *tables;
uint32_t table_count;
struct smu_table memory_pool;
@@ -177,6 +178,8 @@ struct smu_funcs
((smu)->funcs->send_smc_msg? (smu)->funcs->send_smc_msg((smu), (msg)) : 0)
#define smu_send_smc_msg_with_param(smu, msg, param) \
((smu)->funcs->send_smc_msg_with_param? (smu)->funcs->send_smc_msg_with_param((smu), (msg), (param)) : 0)
+#define smu_store_powerplay_table(smu) \
+ ((smu)->ppt_funcs->store_powerplay_table ? (smu)->ppt_funcs->store_powerplay_table((smu)) : 0)
extern int smu_get_atom_data_table(struct smu_context *smu, uint32_t table,
uint16_t *size, uint8_t *frev, uint8_t *crev,