Skip to contentSkip to conversation

ipmi: Increase KCS timeouts

PATCH In review Matthew Garrett 2 participants 4 messages Nov 30, 2011 – Dec 15, 2011 IPMI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipmi: Increase KCS timeouts

We currently time out and retry KCS transactions after 1 second of waiting for IBF or OBF. This appears to be too short for some hardware. The IPMI spec says "All system software wait loops should include error timeouts. For simplicity, such timeouts are not shown explicitly in the flow diagrams. A five-second timeout or greater is recommended". Change the timeout to five seconds to satisfy the slow hardware.

---
 drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/ipmi/ipmi_kcs_sm.c +2 -2
index cf82fed..e53fc24 100644
@@ -118,8 +118,8 @@ enum kcs_states {
 #define MAX_KCS_WRITE_SIZE IPMI_MAX_MSG_LENGTH
 
 /* Timeouts in microseconds. */
-#define IBF_RETRY_TIMEOUT 1000000
-#define OBF_RETRY_TIMEOUT 1000000
+#define IBF_RETRY_TIMEOUT 5000000
+#define OBF_RETRY_TIMEOUT 5000000
 #define MAX_ERROR_RETRIES 10
 #define ERROR0_OBF_WAIT_JIFFIES (2*HZ)
 
Signature · 1 line
1.7.7.1
#1 lore raw

Ping?

Quoted 31 lines · Matthew Garrett

We currently time out and retry KCS transactions after 1 second of waiting for IBF or OBF. This appears to be too short for some hardware. The IPMI spec says "All system software wait loops should include error timeouts. For simplicity, such timeouts are not shown explicitly in the flow diagrams. A five-second timeout or greater is recommended". Change the timeout to five seconds to satisfy the slow hardware.

---
 drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/ipmi/ipmi_kcs_sm.c +2 -2
index cf82fed..e53fc24 100644
@@ -118,8 +118,8 @@ enum kcs_states {
 #define MAX_KCS_WRITE_SIZE IPMI_MAX_MSG_LENGTH
 
 /* Timeouts in microseconds. */
-#define IBF_RETRY_TIMEOUT 1000000
-#define OBF_RETRY_TIMEOUT 1000000
+#define IBF_RETRY_TIMEOUT 5000000
+#define OBF_RETRY_TIMEOUT 5000000
 #define MAX_ERROR_RETRIES 10
 #define ERROR0_OBF_WAIT_JIFFIES (2*HZ)
 
Signature · 1 line
1.7.7.1
Signature · 1 line
Matthew Garrett | [email protected]
#2 lore raw

This is fine, if it is really necessary to make slow hardware work. I've pulled it in, I'll submit in a bit.

-corey

Quoted 34 lines · Matthew Garrett

Ping?

Quoted 31 lines · Matthew Garrett

We currently time out and retry KCS transactions after 1 second of waiting for IBF or OBF. This appears to be too short for some hardware. The IPMI spec says "All system software wait loops should include error timeouts. For simplicity, such timeouts are not shown explicitly in the flow diagrams. A five-second timeout or greater is recommended". Change the timeout to five seconds to satisfy the slow hardware.

---
  drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/ipmi/ipmi_kcs_sm.c +2 -2
index cf82fed..e53fc24 100644
@@ -118,8 +118,8 @@ enum kcs_states {
  #define MAX_KCS_WRITE_SIZE IPMI_MAX_MSG_LENGTH
 
  /* Timeouts in microseconds. */
-#define IBF_RETRY_TIMEOUT 1000000
-#define OBF_RETRY_TIMEOUT 1000000
+#define IBF_RETRY_TIMEOUT 5000000
+#define OBF_RETRY_TIMEOUT 5000000
  #define MAX_ERROR_RETRIES 10
  #define ERROR0_OBF_WAIT_JIFFIES (2*HZ)
 
Signature · 1 line
1.7.7.1
#3 lore raw
Quoted 2 lines · Corey Minyard

This is fine, if it is really necessary to make slow hardware work. I've pulled it in, I'll submit in a bit.

Perfect Corey, thanks!

Signature · 1 line
Matthew Garrett | [email protected]