summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
diff options
context:
space:
mode:
authorKevin Wang2019-01-07 08:34:09 +0100
committerAlex Deucher2019-03-19 21:03:57 +0100
commitdbe6a97024a6eeadf7912383e05118ff98883d2d (patch)
tree0e14b1c45dfa5cd8107386c4be21350c9a3d57e0 /drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
parentdrm/amd/powerplay: add function to start thermal control (diff)
downloadkernel-qcow2-linux-dbe6a97024a6eeadf7912383e05118ff98883d2d.tar.gz
kernel-qcow2-linux-dbe6a97024a6eeadf7912383e05118ff98883d2d.tar.xz
kernel-qcow2-linux-dbe6a97024a6eeadf7912383e05118ff98883d2d.zip
drm/amd/powerplay: implement smu update table function
sometime, the driver need changed table data between driver and smu. this function can help update table data Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com> Reviewed-by: Huang Rui <ray.huang@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 fe86a7fdfebf..c159e4d731fe 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
@@ -364,4 +364,7 @@ extern int smu_feature_set_enabled(struct smu_context *smu, int feature_id, bool
extern int smu_feature_is_supported(struct smu_context *smu, int feature_id);
extern int smu_feature_set_supported(struct smu_context *smu, int feature_id, bool enable);
+int smu_update_table(struct smu_context *smu, uint32_t table_id,
+ void *table_data, bool drv2smu);
+
#endif