Skip to contentSkip to conversation

drm/amdgpu: fix ordering of psp suspend

PATCH In review Alex Deucher 2 participants 2 messages Aug 6, 2020 – Aug 20, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/amdgpu: fix ordering of psp suspend

The ordering of psp_tmr_terminate() and psp_asd_unload() got reversed when the patches were applied to stable.

This patch does not exist in Linus' tree because the ordering is correct there. It got reversed when the patches were applied to stable. This patch is for stable only.

Fixes 22ff658396b446 ("drm/amdgpu: asd function needs to be unloaded in suspend phase")
Fixes 2c41c968c6f648 ("drm/amdgpu: add TMR destory function for psp")
Cc Huang Rui <[email protected]>

---

Make the description more explicit as to why this patch is only for stable.

 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +4 -4
index 3c6f60c5b1a5..088f43ebdceb 100644
@@ -1679,15 +1679,15 @@ static int psp_suspend(void *handle)
 		}
 	}
 
-	ret = psp_tmr_terminate(psp);
+	ret = psp_asd_unload(psp);
 	if (ret) {
-		DRM_ERROR("Falied to terminate tmr\n");
+		DRM_ERROR("Failed to unload asd\n");
 		return ret;
 	}
 
-	ret = psp_asd_unload(psp);
+	ret = psp_tmr_terminate(psp);
 	if (ret) {
-		DRM_ERROR("Failed to unload asd\n");
+		DRM_ERROR("Falied to terminate tmr\n");
 		return ret;
 	}
 
Signature · 1 line
2.25.4
maintainer
#1 lore raw
Quoted 7 lines · Alex Deucher

The ordering of psp_tmr_terminate() and psp_asd_unload() got reversed when the patches were applied to stable.

This patch does not exist in Linus' tree because the ordering is correct there. It got reversed when the patches were applied to stable. This patch is for stable only.

Quoted 8 lines
Fixes 22ff658396b446 ("drm/amdgpu: asd function needs to be unloaded in suspend phase")
Fixes 2c41c968c6f648 ("drm/amdgpu: add TMR destory function for psp")
Cc Huang Rui <[email protected]>

---

Make the description more explicit as to why this patch is only for stable.

Now queued up, thanks!

greg k-h