Whamcloud - gitweb
Branch b1_6
authorscjody <scjody>
Tue, 26 May 2009 17:11:43 +0000 (17:11 +0000)
committerscjody <scjody>
Tue, 26 May 2009 17:11:43 +0000 (17:11 +0000)
b=17086
i=adilger
i=shuichi.ihara

Original patch by Atul.

Increase the maximum number of scatter gather entries for the MPT Fusion
driver to 256, and use that setting in our RHEL 5 kernel config.

lustre/kernel_patches/kernel_configs/kernel-2.6.18-2.6-rhel5-x86_64-smp.config
lustre/kernel_patches/patches/mpt-fusion-max-sge.patch [new file with mode: 0644]
lustre/kernel_patches/series/2.6-rhel5.series

index aef7183..365f36d 100644 (file)
@@ -1265,7 +1265,8 @@ CONFIG_FUSION=y
 CONFIG_FUSION_SPI=m
 CONFIG_FUSION_FC=m
 CONFIG_FUSION_SAS=m
-CONFIG_FUSION_MAX_SGE=128
+CONFIG_FUSION_MAX_SGE=256
+CONFIG_FUSION_MAX_FC_SGE=256
 CONFIG_FUSION_CTL=m
 CONFIG_FUSION_LAN=m
 CONFIG_FUSION_LOGGING=y
diff --git a/lustre/kernel_patches/patches/mpt-fusion-max-sge.patch b/lustre/kernel_patches/patches/mpt-fusion-max-sge.patch
new file mode 100644 (file)
index 0000000..d306088
--- /dev/null
@@ -0,0 +1,36 @@
+diff -Nrup linux-2.6.18-92.1.10.orig/drivers/message/fusion/Kconfig linux-2.6.18-92.1.10/drivers/message/fusion/Kconfig
+--- linux-2.6.18-92.1.10.orig/drivers/message/fusion/Kconfig   2008-12-11 10:27:02.000000000 +1100
++++ linux-2.6.18-92.1.10/drivers/message/fusion/Kconfig        2008-12-11 10:28:42.000000000 +1100
+@@ -61,13 +61,13 @@ config FUSION_SAS
+         LSISAS1078
+ config FUSION_MAX_SGE
+-      int "Maximum number of scatter gather entries for SAS and SPI (16 - 128)"
+-      default "128"
+-      range 16 128
++      int "Maximum number of scatter gather entries for SAS and SPI (16 - 256)"
++      default "256"
++      range 16 256
+       help
+         This option allows you to specify the maximum number of scatter-
+-        gather entries per I/O. The driver default is 128, which matches
+-        SAFE_PHYS_SEGMENTS.  However, it may decreased down to 16.
++        gather entries per I/O. The driver default is 256, which matches
++        MAX_PHYS_SEGMENTS.  However, it may decreased down to 16.
+         Decreasing this parameter will reduce memory requirements
+         on a per controller instance.
+diff -Nrup linux-2.6.18-92.1.10.orig/drivers/message/fusion/mptbase.h linux-2.6.18-92.1.10/drivers/message/fusion/mptbase.h
+--- linux-2.6.18-92.1.10.orig/drivers/message/fusion/mptbase.h 2008-12-11 10:27:03.000000000 +1100
++++ linux-2.6.18-92.1.10/drivers/message/fusion/mptbase.h      2008-12-11 10:30:55.000000000 +1100
+@@ -168,8 +168,8 @@
+ #ifdef  CONFIG_FUSION_MAX_SGE
+ #if     CONFIG_FUSION_MAX_SGE  < 16
+ #define MPT_SCSI_SG_DEPTH     16
+-#elif   CONFIG_FUSION_MAX_SGE  > 128
+-#define MPT_SCSI_SG_DEPTH     128
++#elif   CONFIG_FUSION_MAX_SGE  > 256 
++#define MPT_SCSI_SG_DEPTH     256
+ #else
+ #define MPT_SCSI_SG_DEPTH     CONFIG_FUSION_MAX_SGE
+ #endif
index c07ab4f..78ea471 100644 (file)
@@ -23,3 +23,4 @@ quota-large-limits-rhel5.patch
 md-mmp-unplug-dev.patch
 prune-icache-use-trylock-rhel5.patch
 jbd-slab-race-2.6-rhel5.patch
+mpt-fusion-max-sge.patch