summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2011-09-12 12:33:27 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2011-09-12 12:33:27 +0000
commitc035de78550f1aa0f9827c459d5a6959c1c9ac41 (patch)
tree78fa4c5db980f4c83f1baf076d63a93ba48a549f
parente94afb9054ad78e230617fd139883ef5062d9b7b (diff)
Clamp a maximum number of outstanding requests at 40 as it was
figured out the hard way by senior Pedro. Performance decreased severely with newer firmwares when ioc was stuffed with requests. Unfortunately it still remains a magic number as LSI doesn't clearly document what it has to be (controllers report some meaningless values like 3167 and 1952). ok dlg
-rw-r--r--sys/dev/pci/mpii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mpii.c b/sys/dev/pci/mpii.c
index 8eefe69903c..81cbd9b4ea5 100644
--- a/sys/dev/pci/mpii.c
+++ b/sys/dev/pci/mpii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpii.c,v 1.48 2011/08/29 12:42:18 dlg Exp $ */
+/* $OpenBSD: mpii.c,v 1.49 2011/09/12 12:33:26 mikeb Exp $ */
/*
* Copyright (c) 2010 Mike Belopuhov <mkb@crypt.org.ru>
* Copyright (c) 2009 James Giannoules
@@ -1747,7 +1747,7 @@ u_int32_t mpii_debug = 0
*/
#define MPII_MAX_SGL (32)
-#define MPII_MAX_REQUEST_CREDIT (128)
+#define MPII_MAX_REQUEST_CREDIT (40)
struct mpii_dmamem {
bus_dmamap_t mdm_map;