linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipmi: Increase KCS timeouts
@ 2011-11-30 19:12 Matthew Garrett
  2011-12-14 21:12 ` Matthew Garrett
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Garrett @ 2011-11-30 19:12 UTC (permalink / raw)
  To: minyard; +Cc: openipmi-developer, linux-kernel, 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.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
 drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_kcs_sm.c b/drivers/char/ipmi/ipmi_kcs_sm.c
index cf82fed..e53fc24 100644
--- a/drivers/char/ipmi/ipmi_kcs_sm.c
+++ b/drivers/char/ipmi/ipmi_kcs_sm.c
@@ -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)
 
-- 
1.7.7.1


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

* Re: [PATCH] ipmi: Increase KCS timeouts
  2011-11-30 19:12 [PATCH] ipmi: Increase KCS timeouts Matthew Garrett
@ 2011-12-14 21:12 ` Matthew Garrett
  2011-12-15 14:35   ` Corey Minyard
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Garrett @ 2011-12-14 21:12 UTC (permalink / raw)
  To: minyard; +Cc: openipmi-developer, linux-kernel, gcase

Ping?

On Wed, Nov 30, 2011 at 02:12:27PM -0500, Matthew Garrett wrote:
> 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.
> 
> Signed-off-by: Matthew Garrett <mjg@redhat.com>
> ---
>  drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/char/ipmi/ipmi_kcs_sm.c b/drivers/char/ipmi/ipmi_kcs_sm.c
> index cf82fed..e53fc24 100644
> --- a/drivers/char/ipmi/ipmi_kcs_sm.c
> +++ b/drivers/char/ipmi/ipmi_kcs_sm.c
> @@ -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)
>  
> -- 
> 1.7.7.1
> 
> 
-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

* Re: [PATCH] ipmi: Increase KCS timeouts
  2011-12-14 21:12 ` Matthew Garrett
@ 2011-12-15 14:35   ` Corey Minyard
  2011-12-15 14:45     ` Matthew Garrett
  0 siblings, 1 reply; 4+ messages in thread
From: Corey Minyard @ 2011-12-15 14:35 UTC (permalink / raw)
  To: Matthew Garrett; +Cc: openipmi-developer, linux-kernel, gcase

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

On 12/14/2011 03:12 PM, Matthew Garrett wrote:
> Ping?
>
> On Wed, Nov 30, 2011 at 02:12:27PM -0500, Matthew Garrett wrote:
>> 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.
>>
>> Signed-off-by: Matthew Garrett<mjg@redhat.com>
>> ---
>>   drivers/char/ipmi/ipmi_kcs_sm.c |    4 ++--
>>   1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/char/ipmi/ipmi_kcs_sm.c b/drivers/char/ipmi/ipmi_kcs_sm.c
>> index cf82fed..e53fc24 100644
>> --- a/drivers/char/ipmi/ipmi_kcs_sm.c
>> +++ b/drivers/char/ipmi/ipmi_kcs_sm.c
>> @@ -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)
>>
>> -- 
>> 1.7.7.1
>>
>>


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

* Re: [PATCH] ipmi: Increase KCS timeouts
  2011-12-15 14:35   ` Corey Minyard
@ 2011-12-15 14:45     ` Matthew Garrett
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Garrett @ 2011-12-15 14:45 UTC (permalink / raw)
  To: minyard; +Cc: openipmi-developer, linux-kernel, gcase

On Thu, Dec 15, 2011 at 08:35:49AM -0600, Corey Minyard wrote:
> 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!

-- 
Matthew Garrett | mjg59@srcf.ucam.org

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

end of thread, other threads:[~2011-12-15 14:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 19:12 [PATCH] ipmi: Increase KCS timeouts Matthew Garrett
2011-12-14 21:12 ` Matthew Garrett
2011-12-15 14:35   ` Corey Minyard
2011-12-15 14:45     ` Matthew Garrett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).