From wollman@xyz.csail.mit.edu  Wed Jun 27 04:41:08 2012
Return-Path: <wollman@xyz.csail.mit.edu>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0487F1065670
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Jun 2012 04:41:08 +0000 (UTC)
	(envelope-from wollman@xyz.csail.mit.edu)
Received: from khavrinen.csail.mit.edu (khavrinen.csail.mit.edu [IPv6:2001:470:8b2d:1e1c:21b:21ff:feb8:d7b0])
	by mx1.freebsd.org (Postfix) with ESMTP id A51E38FC1A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Jun 2012 04:41:07 +0000 (UTC)
Received: from xyz.csail.mit.edu (xyz.csail.mit.edu [128.31.0.28])
	by khavrinen.csail.mit.edu (8.14.5/8.14.5) with ESMTP id q5R4f6WM050762
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256
	verify=NO CN= issuer=)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 27 Jun 2012 00:41:06 -0400 (EDT)
	(envelope-from wollman@xyz.csail.mit.edu)
Received: (from wollman@localhost)
	by xyz.csail.mit.edu (8.14.5/8.14.5/Submit) id q5R4f62p081435;
	Wed, 27 Jun 2012 00:41:06 -0400 (EDT)
	(envelope-from wollman)
Message-Id: <201206270441.q5R4f62p081435@xyz.csail.mit.edu>
Date: Wed, 27 Jun 2012 00:41:06 -0400 (EDT)
From: Garrett Wollman <wollman@freebsd.org>
Reply-To: Garrett Wollman <wollman@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: IPMI MAX_TIMEOUT is too short
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         169475
>Category:       kern
>Synopsis:       [ipmi] IPMI MAX_TIMEOUT is too short
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 27 04:50:10 UTC 2012
>Closed-Date:    
>Last-Modified:  Mon Jul 16 02:35:55 UTC 2012
>Originator:     Garrett Wollman
>Release:        FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
Maintainer of {cvsup3,ftp5}.freebsd.org
>Environment:
System: FreeBSD xyz.csail.mit.edu 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #2 r237283M: Wed Jun 20 12:23:12 EDT 2012 wollman@xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64

The machine is a Quanta QSSC-S99Q 2U fileserver (specifically,
ftp5.freebsd.org).  We have two other identical machines, soon to be
six.

>Description:

sys/dev/ipmi/ipmivars.h contains the following definition:

#define MAX_TIMEOUT 3 * hz

This determines how long ipmi(4) is willing to wait in its attach
routine for the management device to identify itself.  Unfortunately,
it is too short.  The IPMI specification recommends a timeout not less
than five seconds, and in practice on this platform it takes between
five and ten seconds.

>How-To-Repeat:

Boot FreeBSD on a Quanta QSSC-S99Q server.  Sometimes ipmi will
attach; most of the time it will time out.

>Fix:

Increase the timeout to ten seconds.  If this is felt to be too long,
make it a tunable.
>Release-Note:
>Audit-Trail:
>Unformatted:
