xref: /openbmc/linux/drivers/scsi/mpt3sas/Kconfig (revision 39718fe7)
1f92363d1SSreekanth Reddy#
2f92363d1SSreekanth Reddy# Kernel configuration file for the MPT3SAS
3f92363d1SSreekanth Reddy#
4f92363d1SSreekanth Reddy# This code is based on drivers/scsi/mpt3sas/Kconfig
5a4ffce0dSSreekanth Reddy# Copyright (C) 2012-2014  LSI Corporation
6f92363d1SSreekanth Reddy#  (mailto:DL-MPTFusionLinux@lsi.com)
7f92363d1SSreekanth Reddy
8f92363d1SSreekanth Reddy# This program is free software; you can redistribute it and/or
9f92363d1SSreekanth Reddy# modify it under the terms of the GNU General Public License
10f92363d1SSreekanth Reddy# as published by the Free Software Foundation; either version 2
11f92363d1SSreekanth Reddy# of the License, or (at your option) any later version.
12f92363d1SSreekanth Reddy
13f92363d1SSreekanth Reddy# This program is distributed in the hope that it will be useful,
14f92363d1SSreekanth Reddy# but WITHOUT ANY WARRANTY; without even the implied warranty of
15f92363d1SSreekanth Reddy# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16f92363d1SSreekanth Reddy# GNU General Public License for more details.
17f92363d1SSreekanth Reddy
18f92363d1SSreekanth Reddy# NO WARRANTY
19f92363d1SSreekanth Reddy# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
20f92363d1SSreekanth Reddy# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
21f92363d1SSreekanth Reddy# LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
22f92363d1SSreekanth Reddy# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
23f92363d1SSreekanth Reddy# solely responsible for determining the appropriateness of using and
24f92363d1SSreekanth Reddy# distributing the Program and assumes all risks associated with its
25f92363d1SSreekanth Reddy# exercise of rights under this Agreement, including but not limited to
26f92363d1SSreekanth Reddy# the risks and costs of program errors, damage to or loss of data,
27f92363d1SSreekanth Reddy# programs or equipment, and unavailability or interruption of operations.
28f92363d1SSreekanth Reddy
29f92363d1SSreekanth Reddy# DISCLAIMER OF LIABILITY
30f92363d1SSreekanth Reddy# NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
31f92363d1SSreekanth Reddy# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32f92363d1SSreekanth Reddy# DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
33f92363d1SSreekanth Reddy# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
34f92363d1SSreekanth Reddy# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
35f92363d1SSreekanth Reddy# USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
36f92363d1SSreekanth Reddy# HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
37f92363d1SSreekanth Reddy
38f92363d1SSreekanth Reddy# You should have received a copy of the GNU General Public License
39f92363d1SSreekanth Reddy# along with this program; if not, write to the Free Software
40f92363d1SSreekanth Reddy# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
41f92363d1SSreekanth Reddy# USA.
42f92363d1SSreekanth Reddy
43f92363d1SSreekanth Reddyconfig SCSI_MPT3SAS
44c84b06a4SSreekanth Reddy	tristate "LSI MPT Fusion SAS 3.0 & SAS 2.0 Device Driver"
45f92363d1SSreekanth Reddy	depends on PCI && SCSI
46f92363d1SSreekanth Reddy	select SCSI_SAS_ATTRS
47f92363d1SSreekanth Reddy	select RAID_ATTRS
48320e77acSSuganath Prabu	select IRQ_POLL
49a7f7f624SMasahiro Yamada	help
50f92363d1SSreekanth Reddy	This driver supports PCI-Express SAS 12Gb/s Host Adapters.
51f92363d1SSreekanth Reddy
52c84b06a4SSreekanth Reddyconfig SCSI_MPT2SAS_MAX_SGE
53c84b06a4SSreekanth Reddy	int "LSI MPT Fusion SAS 2.0 Max number of SG Entries (16 - 256)"
54c84b06a4SSreekanth Reddy	depends on PCI && SCSI && SCSI_MPT3SAS
55c84b06a4SSreekanth Reddy	default "128"
56c84b06a4SSreekanth Reddy	range 16 256
57a7f7f624SMasahiro Yamada	help
58c84b06a4SSreekanth Reddy	This option allows you to specify the maximum number of scatter-
59c84b06a4SSreekanth Reddy	gather entries per I/O. The driver default is 128, which matches
60c84b06a4SSreekanth Reddy	MAX_PHYS_SEGMENTS in most kernels.  However in SuSE kernels this
61c84b06a4SSreekanth Reddy	can be 256. However, it may decreased down to 16.  Decreasing this
62c84b06a4SSreekanth Reddy	parameter will reduce memory requirements on a per controller instance.
63c84b06a4SSreekanth Reddy
64f92363d1SSreekanth Reddyconfig SCSI_MPT3SAS_MAX_SGE
65c84b06a4SSreekanth Reddy	int "LSI MPT Fusion SAS 3.0 Max number of SG Entries (16 - 256)"
66f92363d1SSreekanth Reddy	depends on PCI && SCSI && SCSI_MPT3SAS
67f92363d1SSreekanth Reddy	default "128"
68f92363d1SSreekanth Reddy	range 16 256
69a7f7f624SMasahiro Yamada	help
70f92363d1SSreekanth Reddy	This option allows you to specify the maximum number of scatter-
71f92363d1SSreekanth Reddy	gather entries per I/O. The driver default is 128, which matches
72f92363d1SSreekanth Reddy	MAX_PHYS_SEGMENTS in most kernels.  However in SuSE kernels this
73f92363d1SSreekanth Reddy	can be 256. However, it may decreased down to 16.  Decreasing this
74f92363d1SSreekanth Reddy	parameter will reduce memory requirements on a per controller instance.
75b840c362SMartin K. Petersen
76b840c362SMartin K. Petersenconfig SCSI_MPT2SAS
77b840c362SMartin K. Petersen	tristate "Legacy MPT2SAS config option"
78b840c362SMartin K. Petersen	default n
79b840c362SMartin K. Petersen	select SCSI_MPT3SAS
803ddda3e4SJames Bottomley	depends on PCI && SCSI
81a7f7f624SMasahiro Yamada	help
82*39718fe7SColin Ian King	Dummy config option for backwards compatibility: configure the MPT3SAS
83b840c362SMartin K. Petersen	driver instead.
84