Skip to contentSkip to conversation

ipmi: Fix IPMI errors due to timing problems

PATCH In review Corey Minyard 2 participants 2 messages Mar 10, 2011 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmi: Fix IPMI errors due to timing problems

From: Doe, YiCheng <[email protected]>

This patch fixes an issue in OpenIPMI module where sometimes an ABORT command is sent after sending an IPMI request to BMC causing the IPMI request to fail.

---
 drivers/char/ipmi/ipmi_si_intf.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/char/ipmi/ipmi_si_intf.c +8 -0
index 7855f9f..62787e3 100644
@@ -900,6 +900,14 @@ static void sender(void                *send_info,
 	printk("**Enqueue: %d.%9.9d\n", t.tv_sec, t.tv_usec);
 #endif
 
+	/*
+	 * last_timeout_jiffies is updated here to avoid
+	 * smi_timeout() handler passing very large time_diff
+	 * value to smi_event_handler() that causes
+	 * the send command to abort.
+	 */
+	smi_info->last_timeout_jiffies = jiffies;
+
 	mod_timer(&smi_info->si_timer, jiffies + SI_TIMEOUT_JIFFIES);
 
 	if (smi_info->thread)
Signature · 1 line
1.7.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Corey Minyard

From: Doe, YiCheng <[email protected]>

This patch fixes an issue in OpenIPMI module where sometimes an ABORT command is sent after sending an IPMI request to BMC causing the IPMI request to fail.

Quoted 9 lines
Signature · 1 line
Matthew Garrett | [email protected]