diff options
| author | Alex Deucher <[email protected]> | 2016-10-07 16:38:04 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-10-25 18:38:41 +0000 |
| commit | 825cc9974d15c0dee8e735c7abf975b576fadf6a (patch) | |
| tree | 5127bcad6dc9c6a5fcd6628a6d274fb0b9ec293a /drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | |
| parent | drm/amdgpu/dpm: add new callback to fetch vce clock state (v2) (diff) | |
| download | kernel-825cc9974d15c0dee8e735c7abf975b576fadf6a.tar.gz kernel-825cc9974d15c0dee8e735c7abf975b576fadf6a.zip | |
drm/amdgpu/dpm: add an implementation for get_vce_clock_state (v2)
Used by the non-powerplay dpm code.
v2: update to the new API
Reviewed-by: Rex Zhu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c index 009ccb961541..6ca0333ca4c0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c @@ -956,3 +956,12 @@ u8 amdgpu_encode_pci_lane_width(u32 lanes) return encoded_lanes[lanes]; } + +struct amd_vce_state* +amdgpu_get_vce_clock_state(struct amdgpu_device *adev, unsigned idx) +{ + if (idx < adev->pm.dpm.num_of_vce_states) + return &adev->pm.dpm.vce_states[idx]; + + return NULL; +} |
