Skip to contentSkip to conversation

drm/amd/pm: increase time out value when sending msg to SMU

0001-increase-time-out-2s-send-msg-to-smu.patch charles sun 2 participants 2 messages Apr 8, 2021

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

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
index b725f263092b..dc7d2e71aa6f 100644
@@ -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
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

You wrote the patch, it should be signed-off-by you, not me 🙂 E.g.,

________________________________
From: Sun, Charles <[email protected]>
Sent: Wednesday, April 7, 2021 11:32 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Liu, Zhan <[email protected]>; Su, Jinzhou (Joe) <[email protected]>; Sun, Charles <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [0001-increase-time-out-2s-send-msg-to-smu.patch] drm/amd/pm: increase time out value when sending msg to SMU

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
index b725f263092b..dc7d2e71aa6f 100644
@@ -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

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx