diff options
| author | 2016-05-19 15:41:25 -0400 | |
|---|---|---|
| committer | 2016-07-07 14:50:47 -0400 | |
| commit | c85e299ff9a14fe43160fd8caada383d622354a1 (patch) | |
| tree | aba2cfe011ef41f5bd039191c4bf0c32997e55e0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | drm/amdgpu/gfx8: Enable GFX PG on CZ (diff) | |
| download | linux-dev-c85e299ff9a14fe43160fd8caada383d622354a1.tar.xz linux-dev-c85e299ff9a14fe43160fd8caada383d622354a1.zip | |
drm/amdgpu: add the new common pm code to select the clock levels
This extends dpm clock level selection to the non-powerplay code paths.
This interface can be used to select individual clock levels.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 611d33d855ff..5252580621bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1560,6 +1560,8 @@ struct amdgpu_dpm_funcs { u32 (*get_fan_control_mode)(struct amdgpu_device *adev); int (*set_fan_speed_percent)(struct amdgpu_device *adev, u32 speed); int (*get_fan_speed_percent)(struct amdgpu_device *adev, u32 *speed); + int (*force_clock_level)(struct amdgpu_device *adev, enum pp_clock_type type, uint32_t mask); + int (*print_clock_levels)(struct amdgpu_device *adev, enum pp_clock_type type, char *buf); }; struct amdgpu_dpm { |
