Commit 6761c4bf authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/pm: no pptable resetup on runpm exiting

It is assumed the pptable used before runpm is same as
the one used afterwards. Thus, we can reuse the stored
copy and do not need to resetup the pptable again.
Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarFeifei Xu <feifei.xu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent edddc6fd
...@@ -1202,11 +1202,18 @@ static int smu_smc_hw_setup(struct smu_context *smu) ...@@ -1202,11 +1202,18 @@ static int smu_smc_hw_setup(struct smu_context *smu)
return ret; return ret;
} }
/*
* It is assumed the pptable used before runpm is same as
* the one used afterwards. Thus, we can reuse the stored
* copy and do not need to resetup the pptable again.
*/
if (!adev->in_runpm) {
ret = smu_setup_pptable(smu); ret = smu_setup_pptable(smu);
if (ret) { if (ret) {
dev_err(adev->dev, "Failed to setup pptable!\n"); dev_err(adev->dev, "Failed to setup pptable!\n");
return ret; return ret;
} }
}
/* smu_dump_pptable(smu); */ /* smu_dump_pptable(smu); */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment