From: Evan Quan Date: Tue, 23 Jul 2019 06:27:20 +0000 (+0800) Subject: drm/amd/powerplay: no pptable transfer and dpms enabled with "dpm=0" X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d3a593e97ecdff6bbebfd8b83079ffc5a332dccf;p=linux.git drm/amd/powerplay: no pptable transfer and dpms enabled with "dpm=0" Honor the 'dpm' module parameter setting on SW SMU routine as what we did on previous ASICs. SMU FW loading is still proceeded even with "dpm=0". Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 0b1285ddc954e..37eb334de6bd6 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1083,6 +1083,9 @@ static int smu_hw_init(void *handle) } } + if (!smu->pm_enabled) + return 0; + ret = smu_feature_init_dpm(smu); if (ret) goto failed;