diff options
author | Aaron Liu <aaron.liu@amd.com> | 2019-08-09 18:34:40 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-08-23 01:37:05 +0300 |
commit | 97222cfac7740ba93c2c17f15db5d7184c6ab836 (patch) | |
tree | 9cbacd69b98304dd9d64a3f7b6be58cbf25f2a3b /drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | |
parent | 5dbbe6a77d189954287b524988b994bfda75efd6 (diff) | |
download | linux-97222cfac7740ba93c2c17f15db5d7184c6ab836.tar.xz |
drm/amdgpu/powerplay: add power up/down SDMA interfaces for renoir
1.Implement PowerUpSDMA/PowerDownSDMA interfaces in the swSMU for renoir
2.adjust smu ip block ahead of gfx&sdma ip block
Signed-off-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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index c35c8a273051..b9dee9934f0a 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1263,6 +1263,9 @@ static int smu_hw_init(void *handle) return ret; } + if (adev->asic_type == CHIP_RENOIR) + smu_powergate_sdma(&adev->smu, false); + if (!smu->pm_enabled) return 0; @@ -1310,6 +1313,9 @@ 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) + smu_powergate_sdma(&adev->smu, true); + kfree(table_context->driver_pptable); table_context->driver_pptable = NULL; |