diff options
author | Eric Huang <JinHuiEric.Huang@amd.com> | 2018-02-06 16:19:24 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:19:39 -0500 |
commit | 913fa7a14dd1b826fe1acf4e98c33f5e17a6104b (patch) | |
tree | 320ffcf93219574b7c1824516bf884df1dc3c268 | |
parent | 858bef6e89fdf16231d626b4484ac118fb05bf1d (diff) |
drm/amdgpu: add an interface of amdgpu_dpm_set_mmhub_powergating_by_smu
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/include/kgd_pp_interface.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h index c489c69fb5ed..bd745a4fae0c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h | |||
@@ -375,6 +375,10 @@ enum amdgpu_pcie_gen { | |||
375 | ((adev)->powerplay.pp_funcs->odn_edit_dpm_table(\ | 375 | ((adev)->powerplay.pp_funcs->odn_edit_dpm_table(\ |
376 | (adev)->powerplay.pp_handle, type, parameter, size)) | 376 | (adev)->powerplay.pp_handle, type, parameter, size)) |
377 | 377 | ||
378 | #define amdgpu_dpm_set_mmhub_powergating_by_smu(adev) \ | ||
379 | ((adev)->powerplay.pp_funcs->set_mmhub_powergating_by_smu( \ | ||
380 | (adev)->powerplay.pp_handle)) | ||
381 | |||
378 | struct amdgpu_dpm { | 382 | struct amdgpu_dpm { |
379 | struct amdgpu_ps *ps; | 383 | struct amdgpu_ps *ps; |
380 | /* number of valid power states */ | 384 | /* number of valid power states */ |
diff --git a/drivers/gpu/drm/amd/include/kgd_pp_interface.h b/drivers/gpu/drm/amd/include/kgd_pp_interface.h index 1fc995b2b26f..4f69fe8ca371 100644 --- a/drivers/gpu/drm/amd/include/kgd_pp_interface.h +++ b/drivers/gpu/drm/amd/include/kgd_pp_interface.h | |||
@@ -310,6 +310,7 @@ struct amd_pm_funcs { | |||
310 | int (*get_power_profile_mode)(void *handle, char *buf); | 310 | int (*get_power_profile_mode)(void *handle, char *buf); |
311 | int (*set_power_profile_mode)(void *handle, long *input, uint32_t size); | 311 | int (*set_power_profile_mode)(void *handle, long *input, uint32_t size); |
312 | int (*odn_edit_dpm_table)(void *handle, uint32_t type, long *input, uint32_t size); | 312 | int (*odn_edit_dpm_table)(void *handle, uint32_t type, long *input, uint32_t size); |
313 | int (*set_mmhub_powergating_by_smu)(void *handle); | ||
313 | }; | 314 | }; |
314 | 315 | ||
315 | #endif | 316 | #endif |