diff options
author | Leo Liu <leo.liu@amd.com> | 2019-08-08 23:21:44 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-23 01:37:14 +0300 |
commit | 4a6296680baea5aa118a7617ef0b23606e3d6b5c (patch) | |
tree | 9a42271e7aae73f092fc2eb6c3b29ffd8555da84 /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | 51548c0fe3d3487c277608bb6436882d0f052fae (diff) | |
download | linux-4a6296680baea5aa118a7617ef0b23606e3d6b5c.tar.xz |
drm/amdgpu/powerplay: add Renoir VCN power management
Thus VCN can be powered up for normal operations
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/amdgpu_smu.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index d63beff7620e..cce08c2a43f6 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1268,8 +1268,10 @@ static int smu_hw_init(void *handle) return ret; } - if (adev->asic_type == CHIP_RENOIR) + if (adev->asic_type == CHIP_RENOIR) { smu_powergate_sdma(&adev->smu, false); + smu_powergate_vcn(&adev->smu, false); + } if (!smu->pm_enabled) return 0; @@ -1322,8 +1324,10 @@ static int smu_hw_fini(void *handle) struct smu_table_context *table_context = &smu->smu_table; int ret = 0; - if (adev->asic_type == CHIP_RENOIR) + if (adev->asic_type == CHIP_RENOIR) { smu_powergate_sdma(&adev->smu, true); + smu_powergate_vcn(&adev->smu, true); + } kfree(table_context->driver_pptable); table_context->driver_pptable = NULL; |