[Skiboot] [PATCH v3 2/3] core/ipmi: Add ipmi sync messages to top of the list

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Feb 28 14:00:09 AEDT 2019


In ipmi_queue_msg_sync() path OPAL will wait until it gets response from
BMC. If we do not get response ontime we may endup in kernel hardlockups.
Hence lets add sync messages to top of the queue. This will reduces the
chance of hardlockups.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 core/ipmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/ipmi.c b/core/ipmi.c
index 6770b43a8..27cb4268f 100644
--- a/core/ipmi.c
+++ b/core/ipmi.c
@@ -178,7 +178,7 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
 	sync_msg = msg;
 	if (msg->backend->disable_retry)
 		msg->backend->disable_retry(msg);
-	ipmi_queue_msg(msg);
+	ipmi_queue_msg_head(msg);
 	unlock(&sync_lock);
 
 	while (sync_msg == msg)
-- 
2.14.3



More information about the Skiboot mailing list