diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-03-16 01:43:42 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-03-19 14:35:15 -0400 |
commit | 0b10f20022b371633a34218265138e3f44f4b98d (patch) | |
tree | 2da495109503234d27eb518d800f1b3b700d31cc /drivers/gpu/drm | |
parent | 699f47951e79b6e0ad33f7d7406c6a574293e339 (diff) |
drm/amd/pp: Remove dead functions in vega10_smumgr.c
use smc_table_manager function to copy/save tables to/from smu.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | 38 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h | 2 |
2 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c index e08a6116ac05..b03a9a09f7ed 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c | |||
@@ -171,26 +171,6 @@ int vega10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, | |||
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | 173 | ||
174 | |||
175 | /* | ||
176 | * Send a message to the SMC with parameter, do not wait for response | ||
177 | * @param hwmgr: the address of the powerplay hardware manager. | ||
178 | * @param msg: the message to send. | ||
179 | * @param parameter: the parameter to send | ||
180 | * @return The response that came from the SMC. | ||
181 | */ | ||
182 | int vega10_send_msg_to_smc_with_parameter_without_waiting( | ||
183 | struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t parameter) | ||
184 | { | ||
185 | uint32_t reg; | ||
186 | |||
187 | reg = soc15_get_register_offset(MP1_HWID, 0, | ||
188 | mmMP1_SMN_C2PMSG_82_BASE_IDX, mmMP1_SMN_C2PMSG_82); | ||
189 | cgs_write_register(hwmgr->device, reg, parameter); | ||
190 | |||
191 | return vega10_send_msg_to_smc_without_waiting(hwmgr, msg); | ||
192 | } | ||
193 | |||
194 | /* | 174 | /* |
195 | * Retrieve an argument from SMC. | 175 | * Retrieve an argument from SMC. |
196 | * @param hwmgr the address of the powerplay hardware manager. | 176 | * @param hwmgr the address of the powerplay hardware manager. |
@@ -276,24 +256,6 @@ int vega10_copy_table_to_smc(struct pp_hwmgr *hwmgr, | |||
276 | return 0; | 256 | return 0; |
277 | } | 257 | } |
278 | 258 | ||
279 | int vega10_save_vft_table(struct pp_hwmgr *hwmgr, uint8_t *avfs_table) | ||
280 | { | ||
281 | PP_ASSERT_WITH_CODE(avfs_table, | ||
282 | "No access to SMC AVFS Table", | ||
283 | return -EINVAL); | ||
284 | |||
285 | return vega10_copy_table_from_smc(hwmgr, avfs_table, AVFSTABLE); | ||
286 | } | ||
287 | |||
288 | int vega10_restore_vft_table(struct pp_hwmgr *hwmgr, uint8_t *avfs_table) | ||
289 | { | ||
290 | PP_ASSERT_WITH_CODE(avfs_table, | ||
291 | "No access to SMC AVFS Table", | ||
292 | return -EINVAL); | ||
293 | |||
294 | return vega10_copy_table_to_smc(hwmgr, avfs_table, AVFSTABLE); | ||
295 | } | ||
296 | |||
297 | int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, | 259 | int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, |
298 | bool enable, uint32_t feature_mask) | 260 | bool enable, uint32_t feature_mask) |
299 | { | 261 | { |
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h index 736f8cfdbbdc..01b4f5b84c86 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.h | |||
@@ -60,8 +60,6 @@ int vega10_enable_smc_features(struct pp_hwmgr *hwmgr, | |||
60 | bool enable, uint32_t feature_mask); | 60 | bool enable, uint32_t feature_mask); |
61 | int vega10_get_smc_features(struct pp_hwmgr *hwmgr, | 61 | int vega10_get_smc_features(struct pp_hwmgr *hwmgr, |
62 | uint32_t *features_enabled); | 62 | uint32_t *features_enabled); |
63 | int vega10_save_vft_table(struct pp_hwmgr *hwmgr, uint8_t *avfs_table); | ||
64 | int vega10_restore_vft_table(struct pp_hwmgr *hwmgr, uint8_t *avfs_table); | ||
65 | 63 | ||
66 | int vega10_set_tools_address(struct pp_hwmgr *hwmgr); | 64 | int vega10_set_tools_address(struct pp_hwmgr *hwmgr); |
67 | 65 | ||