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: Prike Liang <Prike.Liang@amd.com> Tested-by: Mengbing Wang <Mengbing.Wang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4da858c086
commit
45a5e63954
|
@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Util now, the pmfw hasn't exported the interface of SMU
|
* Util 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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue