diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-03-03 12:27:46 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-08 11:00:59 -0500 |
commit | 4223cc3de2c4de880a945f265d9e24cbd01b2293 (patch) | |
tree | a3fec903f0077ce800d3f1cc1df8fab29959fd5c /drivers/gpu/drm/amd | |
parent | 12424e55281beb97a6fbfb1ba31a9d90c45e6102 (diff) |
drm/amdgpu/ci: sync up with dpm changes from radeon
Looks like radeon commit:
d3052b8ce8a308d2086519fa5f7c4966257ea184
was missed.
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/ci_dpm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index 9826022e9082..061ba07d07d8 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |||
@@ -3016,7 +3016,6 @@ static int ci_populate_single_memory_level(struct amdgpu_device *adev, | |||
3016 | &memory_level->MinVddcPhases); | 3016 | &memory_level->MinVddcPhases); |
3017 | 3017 | ||
3018 | memory_level->EnabledForThrottle = 1; | 3018 | memory_level->EnabledForThrottle = 1; |
3019 | memory_level->EnabledForActivity = 1; | ||
3020 | memory_level->UpH = 0; | 3019 | memory_level->UpH = 0; |
3021 | memory_level->DownH = 100; | 3020 | memory_level->DownH = 100; |
3022 | memory_level->VoltageDownH = 0; | 3021 | memory_level->VoltageDownH = 0; |
@@ -3375,7 +3374,6 @@ static int ci_populate_single_graphic_level(struct amdgpu_device *adev, | |||
3375 | graphic_level->SpllSpreadSpectrum2 = cpu_to_be32(graphic_level->SpllSpreadSpectrum2); | 3374 | graphic_level->SpllSpreadSpectrum2 = cpu_to_be32(graphic_level->SpllSpreadSpectrum2); |
3376 | graphic_level->CcPwrDynRm = cpu_to_be32(graphic_level->CcPwrDynRm); | 3375 | graphic_level->CcPwrDynRm = cpu_to_be32(graphic_level->CcPwrDynRm); |
3377 | graphic_level->CcPwrDynRm1 = cpu_to_be32(graphic_level->CcPwrDynRm1); | 3376 | graphic_level->CcPwrDynRm1 = cpu_to_be32(graphic_level->CcPwrDynRm1); |
3378 | graphic_level->EnabledForActivity = 1; | ||
3379 | 3377 | ||
3380 | return 0; | 3378 | return 0; |
3381 | } | 3379 | } |
@@ -3406,6 +3404,7 @@ static int ci_populate_all_graphic_levels(struct amdgpu_device *adev) | |||
3406 | pi->smc_state_table.GraphicsLevel[i].DisplayWatermark = | 3404 | pi->smc_state_table.GraphicsLevel[i].DisplayWatermark = |
3407 | PPSMC_DISPLAY_WATERMARK_HIGH; | 3405 | PPSMC_DISPLAY_WATERMARK_HIGH; |
3408 | } | 3406 | } |
3407 | pi->smc_state_table.GraphicsLevel[0].EnabledForActivity = 1; | ||
3409 | 3408 | ||
3410 | pi->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; | 3409 | pi->smc_state_table.GraphicsDpmLevelCount = (u8)dpm_table->sclk_table.count; |
3411 | pi->dpm_level_enable_mask.sclk_dpm_enable_mask = | 3410 | pi->dpm_level_enable_mask.sclk_dpm_enable_mask = |
@@ -3449,6 +3448,8 @@ static int ci_populate_all_memory_levels(struct amdgpu_device *adev) | |||
3449 | return ret; | 3448 | return ret; |
3450 | } | 3449 | } |
3451 | 3450 | ||
3451 | pi->smc_state_table.MemoryLevel[0].EnabledForActivity = 1; | ||
3452 | |||
3452 | if ((dpm_table->mclk_table.count >= 2) && | 3453 | if ((dpm_table->mclk_table.count >= 2) && |
3453 | ((adev->pdev->device == 0x67B0) || (adev->pdev->device == 0x67B1))) { | 3454 | ((adev->pdev->device == 0x67B0) || (adev->pdev->device == 0x67B1))) { |
3454 | pi->smc_state_table.MemoryLevel[1].MinVddc = | 3455 | pi->smc_state_table.MemoryLevel[1].MinVddc = |