diff options
author | 2019-07-24 14:05:11 -0500 | |
---|---|---|
committer | 2019-08-22 17:37:09 -0500 | |
commit | 51548c0fe3d3487c277608bb6436882d0f052fae (patch) | |
tree | 72eb8c18c0393708489538a10dde8d400b43a1cc | |
parent | drm/amdgpu/powerplay: add power up/down SDMA interfaces for renoir (diff) | |
download | linux-dev-51548c0fe3d3487c277608bb6436882d0f052fae.tar.xz linux-dev-51548c0fe3d3487c277608bb6436882d0f052fae.zip |
drm/amdgpu: skip dpm init for renoir
Renoir DPM is not functional so far, we skip it for the comment.
Will revert this patch once SMU 12 is functional.
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index b9dee9934f0a..d63beff7620e 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -768,6 +768,11 @@ static int smu_late_init(void *handle) if (!smu->pm_enabled) return 0; + + /* To be removed after dpm is enabled */ + if (adev->asic_type == CHIP_RENOIR) + return 0; + mutex_lock(&smu->mutex); smu_handle_task(&adev->smu, smu->smu_dpm.dpm_level, @@ -1269,6 +1274,10 @@ static int smu_hw_init(void *handle) if (!smu->pm_enabled) return 0; + /* To be removed after dpm is enabled */ + if (adev->asic_type == CHIP_RENOIR) + return 0; + ret = smu_feature_init_dpm(smu); if (ret) goto failed; |