summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Feng <kenneth.feng@amd.com>2020-07-22 21:27:35 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-08-06 16:26:07 -0400
commit3520b5e22809d1fe211a7375e7b220de85e383d7 (patch)
tree6e0030c9b1c262858611bc0167a6f72ccc6cd4a6
parentffa453f05be1513a2a68df0bce530db0d13480de (diff)
downloadlinux-stable-3520b5e22809d1fe211a7375e7b220de85e383d7.tar.gz
linux-stable-3520b5e22809d1fe211a7375e7b220de85e383d7.tar.bz2
linux-stable-3520b5e22809d1fe211a7375e7b220de85e383d7.zip
drm/amd/powerplay: remove the dpm checking in the boot sequence
It's not necessary to retrieve the power features status when the asic is booted up the first time. This patch can have the features enablement status still checked in suspend/resume case and removed from the first boot up sequence. Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Kevin Wang <kevin1.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/amdgpu_smu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index f778b00e49eb..6b03f750e63b 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -735,7 +735,7 @@ static int smu_smc_hw_setup(struct smu_context *smu)
uint32_t pcie_gen = 0, pcie_width = 0;
int ret;
- if (smu_is_dpm_running(smu) && adev->in_suspend) {
+ if (adev->in_suspend && smu_is_dpm_running(smu)) {
dev_info(adev->dev, "dpm has been enabled\n");
return 0;
}