drm/amd/powerplay: fix resume failed as smu table initialize early exit
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -1
@@ -895,12 +895,17 @@ static int renoir_read_sensor(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 * feature mask to APU SKU so just force on all the feature * at early initial stage. */ -return true; +if (adev->in_suspend) +return false; +else +return true; }
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
________________________________
From: Liang, Prike <[email protected]>
Sent: Wednesday, April 15, 2020 11:43 AM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] 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.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -1
@@ -895,12 +895,17 @@ static int renoir_read_sensor(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 * feature mask to APU SKU so just force on all the feature * at early initial stage. */ -return true; +if (adev->in_suspend) +return false; +else +return true; }
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Official Use Only - Internal Distribution Only]
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Wednesday, April 15, 2020 11:43 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Ray <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] 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.
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6 -2
@@ -895,12 +895,17 @@ static int renoir_read_sensor(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 * feature mask to APU SKU so just force on all the feature * at early initial stage. */ -return true; +if (adev->in_suspend) +return false; +else +return true; } --
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quoted 5 lines · Prike
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 <[email protected]>Tested-by Mengbing Wang <[email protected]>
Quoted 30 lines
--- drivers/gpu/drm/amd/powerplay/renoir_ppt.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/powerplay/renoir_ppt.c +6
-1@@ -895,12 +895,17 @@ static int renoir_read_sensor(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 * feature mask to APU SKU so just force on all the feature * at early initial stage. */ -return true; +if (adev->in_suspend) +return false; +else +return true; }Signature · 1 line
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx