diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2016-10-12 15:38:56 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-10-25 14:38:40 -0400 |
commit | 66ba1afd854211435cc91159a1ededb1d0f04464 (patch) | |
tree | d5d708f56f0aa92a4f7ce0d491155160bdfae4a9 /drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |
parent | 0d8de7ca0b01332c404d3b5877db89727618c3d0 (diff) | |
download | talos-obmc-linux-66ba1afd854211435cc91159a1ededb1d0f04464.tar.gz talos-obmc-linux-66ba1afd854211435cc91159a1ededb1d0f04464.zip |
drm/amdgpu: save number of vce states in dpm struct.
Reviewed-by: Christian König <christian.koenig@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/amd/amdgpu/ci_dpm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index dc3196e13256..fa939df942f4 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c @@ -5689,7 +5689,7 @@ static int ci_parse_power_table(struct amdgpu_device *adev) adev->pm.dpm.num_ps = state_array->ucNumEntries; /* fill in the vce power states */ - for (i = 0; i < AMD_MAX_VCE_LEVELS; i++) { + for (i = 0; i < adev->pm.dpm.num_of_vce_states; i++) { u32 sclk, mclk; clock_array_index = adev->pm.dpm.vce_states[i].clk_idx; clock_info = (union pplib_clock_info *) |