drm/amd/pm: increase time out value when sending msg to SMU
Subsystems (3)
when do S3 stress, low rate that PowerUpVcn message will get response more than 1s, so here increase the timeout to 2s
--- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +1 -1
@@ -79,7 +79,7 @@ static void smu_cmn_read_arg(struct smu_context *smu,int smu_cmn_wait_for_response (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev; -uint32_t cur_value, i, timeout = adev->usec_timeout *10 ; +uint32_t cur_value, i, timeout = adev->usec_timeout *20 ;for (i =0 ; i < timeout; i++) { cur_value =RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90);
Signature · 6 lines
2.25.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Quan, Evan
Reviewed-by[AMD Public Use]
Quoted 37 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of charles sun
Sent: Thursday, April 8, 2021 11:42 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Liu, Zhan <[email protected]>; Sun, Charles <[email protected]>
Subject: [0001-increase-time-out-2s-send-msg-to-smu.patch] drm/amd/pm:
increase time out value when sending msg to SMUwhen do S3 stress, low rate that PowerUpVcn message will get response more than 1s, so here increase the timeout to 2s
Signed-off-by Sun, Charles [email protected]Acked-by Deucher, Alexander [email protected]--- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +1
-2@@ -79,7 +79,7 @@ static void smu_cmn_read_arg(struct smu_context *smu, int smu_cmn_wait_for_response(struct smu_context *smu) {struct amdgpu_device *adev = smu->adev; -uint32_t cur_value, i, timeout = adev->usec_timeout *10 ; +uint32_t cur_value, i, timeout = adev->usec_timeout *20 ;for (i =0 ; i < timeout; i++) { cur_value =RREG32_SOC15 (MP1 ,0 , mmMP1_SMN_C2PMSG_90); --2.25.1
Quoted 10 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.
freedesktop.org%2Fmailman%2Flistinfo%2Famd- gfx&data=04%7C01%7Cevan.quan%40amd.com%7C9924c6be21724c736 b7208d8fa40576b%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C63 7534501546436504%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMD AiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata= nyya88jiGFYBVvr4fuZfiO9SZpspw2KxP0o9xaiaTig%3D&reserved=0
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx