amdgpu/pm: Powerplay API for smu , added get_performance_level
authorDarren Powell <darren.powell@amd.com>
Sun, 25 Oct 2020 01:28:00 +0000 (21:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Feb 2021 22:16:52 +0000 (17:16 -0500)
commit4df144f80d5b67895317833a5e7b9ecc34642bec
tree906af93fac2a7ee9baf16c78c558871ce5718980
parent996aede28094465381e977f249ab07fecb6e7e87
amdgpu/pm: Powerplay API for smu , added get_performance_level

v2: updated the structure name to swsmu_pm_funcs

Modified Functions
  smu_get_performance_level() - modifed arg0 to match Powerplay API get_performance_level

Other Changes
  added a new structure swsmu_dpm_funcs to hold smu functions for Powerplay API
  removed special smu handling from amdgpu_get_power_dpm_force_performance_level

Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_smu.h
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c