svn commit: r227265 - stable/7/sys/dev/mpt

[ Available lists | Index of svn-src-all | Month of Nov 2011 | Week of 6 Nov 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Marius Strobl <marius@FreeBSD.org>
Date
6 Nov 2011 19:57:17
Subject
svn commit: r227265 - stable/7/sys/dev/mpt
Message-ID
201111061957.pA6JvHUB039088@svn.freebsd.org


[ Hide this part ]
Author: marius
Date: Sun Nov 6 19:57:17 2011
New Revision: 227265
URL: http://svn.freebsd.org/changeset/base/227265

Log:
MFC: r227001

Increase the IOC port initialization timeouts by ten times to what the
corresponding Linux driver uses. This allows mpt(4) to still recognize
all good SATA devices in presence of a defective one, which takes about
45 seconds.
In the long term we probably should implement the logic used by mpt2sas(4)
allowing IOC port initialization to complete at a later time.

Submitted by: Andrew Boyer

Modified:
stable/7/sys/dev/mpt/mpt.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)

Modified: stable/7/sys/dev/mpt/mpt.c
==============================================================================
--- stable/7/sys/dev/mpt/mpt.c Sun Nov 6 19:57:14 2011 (r227264)
+++ stable/7/sys/dev/mpt/mpt.c Sun Nov 6 19:57:17 2011 (r227265)
@@ -2084,7 +2084,7 @@ mpt_send_port_enable(struct mpt_softc *m

mpt_send_cmd(mpt, req);
error = mpt_wait_req(mpt, req, REQ_STATE_DONE, REQ_STATE_DONE,
- FALSE, (mpt->is_sas || mpt->is_fc)? 30000 : 3000);
+ FALSE, (mpt->is_sas || mpt->is_fc)? 300000 : 30000);
if (error != 0) {
mpt_prt(mpt, "port %d enable timed out\n", port);
return (-1);


Elapsed time: 0.101 seconds