Commit 4e2fec33 authored by Prike Liang's avatar Prike Liang Committed by Alex Deucher

drm/amd/powerplay: fix resume failed as smu table initialize early exit

When the amdgpu in the suspend/resume loop need notify the dpm disabled,
otherwise the smu table will be uninitialize and result in resume failed.
Signed-off-by: default avatarPrike Liang <Prike.Liang@amd.com>
Tested-by: default avatarMengbing Wang <Mengbing.Wang@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 53c9c89a
...@@ -895,12 +895,17 @@ static int renoir_read_sensor(struct smu_context *smu, ...@@ -895,12 +895,17 @@ static int renoir_read_sensor(struct smu_context *smu,
static bool renoir_is_dpm_running(struct smu_context *smu) static bool renoir_is_dpm_running(struct smu_context *smu)
{ {
struct amdgpu_device *adev = smu->adev;
/* /*
* Until now, the pmfw hasn't exported the interface of SMU * Until now, the pmfw hasn't exported the interface of SMU
* feature mask to APU SKU so just force on all the feature * feature mask to APU SKU so just force on all the feature
* at early initial stage. * at early initial stage.
*/ */
return true; if (adev->in_suspend)
return false;
else
return true;
} }
......
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