summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-11-01 18:28:33 +0000
committermarius <marius@FreeBSD.org>2011-11-01 18:28:33 +0000
commit94ae8df8ba38a9793074c09902e9dde734ee33b0 (patch)
tree55628662288d0c61235efd32fb36696668cd37eb /sys
parent58500f4f41654b7adbb7b919fddd1d701d328e50 (diff)
downloadFreeBSD-src-94ae8df8ba38a9793074c09902e9dde734ee33b0.zip
FreeBSD-src-94ae8df8ba38a9793074c09902e9dde734ee33b0.tar.gz
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 MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mpt/mpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/mpt/mpt.c b/sys/dev/mpt/mpt.c
index 9dfd73b..5f0e0cf 100644
--- a/sys/dev/mpt/mpt.c
+++ b/sys/dev/mpt/mpt.c
@@ -2084,7 +2084,7 @@ mpt_send_port_enable(struct mpt_softc *mpt, int port)
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);
OpenPOWER on IntegriCloud