diff options
author | Huang Rui | 2019-03-31 09:15:49 +0200 |
---|---|---|
committer | Alex Deucher | 2019-06-22 01:59:26 +0200 |
commit | 973849042e0101d6dea1a4c00fdb2007128f86a6 (patch) | |
tree | c2bd260503d98095e08313291e0e23ad9b17c691 /drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | |
parent | drm/amd/powerplay: move SmuMetrics_t uses into asic level (diff) | |
download | kernel-qcow2-linux-973849042e0101d6dea1a4c00fdb2007128f86a6.tar.gz kernel-qcow2-linux-973849042e0101d6dea1a4c00fdb2007128f86a6.tar.xz kernel-qcow2-linux-973849042e0101d6dea1a4c00fdb2007128f86a6.zip |
drm/amd/powerplay: move Watermarks_t uses into asic level
This patch moves the rest of Watermarks_t uses into asic level. It's to avoid
the conflicts with different asic.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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.h | 4 |
1 files changed, 4 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 2e5920e85f10..516d8bd6e4dd 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h @@ -575,6 +575,8 @@ struct pptable_funcs { int (*get_current_activity_percent)(struct smu_context *smu, enum amd_pp_sensors sensor, uint32_t *value); + int (*set_watermarks_table)(struct smu_context *smu, void *watermarks, + struct dm_pp_wm_sets_with_clock_ranges_soc15 *clock_ranges); }; struct smu_funcs @@ -863,6 +865,8 @@ struct smu_funcs ((smu)->ppt_funcs->set_ppfeature_status ? (smu)->ppt_funcs->set_ppfeature_status((smu), (ppfeatures)) : -EINVAL) #define smu_get_ppfeature_status(smu, buf) \ ((smu)->ppt_funcs->get_ppfeature_status ? (smu)->ppt_funcs->get_ppfeature_status((smu), (buf)) : -EINVAL) +#define smu_set_watermarks_table(smu, tab, clock_ranges) \ + ((smu)->ppt_funcs->set_watermarks_table ? (smu)->ppt_funcs->set_watermarks_table((smu), (tab), (clock_ranges)) : 0) extern int smu_get_atom_data_table(struct smu_context *smu, uint32_t table, uint16_t *size, uint8_t *frev, uint8_t *crev, |