All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/pm: Send message when resp status is 0xFC
@ 2022-02-25  4:21 Lijo Lazar
  2022-02-25  5:36 ` Quan, Evan
  0 siblings, 1 reply; 11+ messages in thread
From: Lijo Lazar @ 2022-02-25  4:21 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alexander.Deucher, Evan.Quan, KevinYang.Wang, Hawking.Zhang

When PMFW is really busy, it will respond with 0xFC. However, it doesn't
change the response register state when it becomes free. Driver should
retry and proceed to send message if the response status is 0xFC.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
index 590a6ed12d54..92161b9d8c1a 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c
@@ -297,7 +297,6 @@ int smu_cmn_send_msg_without_waiting(struct smu_context *smu,
 	reg = __smu_cmn_poll_stat(smu);
 	res = __smu_cmn_reg2errno(smu, reg);
 	if (reg == SMU_RESP_NONE ||
-	    reg == SMU_RESP_BUSY_OTHER ||
 	    res == -EREMOTEIO)
 		goto Out;
 	__smu_cmn_send_msg(smu, msg_index, param);
@@ -391,7 +390,6 @@ int smu_cmn_send_smc_msg_with_param(struct smu_context *smu,
 	reg = __smu_cmn_poll_stat(smu);
 	res = __smu_cmn_reg2errno(smu, reg);
 	if (reg == SMU_RESP_NONE ||
-	    reg == SMU_RESP_BUSY_OTHER ||
 	    res == -EREMOTEIO) {
 		__smu_cmn_reg_print_error(smu, reg, index, param, msg);
 		goto Out;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-08  6:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-25  4:21 [PATCH] drm/amd/pm: Send message when resp status is 0xFC Lijo Lazar
2022-02-25  5:36 ` Quan, Evan
2022-02-25  5:46   ` Lazar, Lijo
2022-02-25  5:55     ` Quan, Evan
2022-02-25  6:02       ` Lazar, Lijo
2022-02-25  7:32         ` Quan, Evan
2022-02-25  7:43           ` Lazar, Lijo
2022-02-25 13:03             ` Quan, Evan
2022-02-25 13:59               ` Lazar, Lijo
2022-03-08  5:58                 ` Lazar, Lijo
2022-03-08  6:56                   ` Quan, Evan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.