18c2ecf20Sopenharmony_ci#
28c2ecf20Sopenharmony_ci# Kernel configuration file for the MPT3SAS
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# This code is based on drivers/scsi/mpt3sas/Kconfig
58c2ecf20Sopenharmony_ci# Copyright (C) 2012-2014  LSI Corporation
68c2ecf20Sopenharmony_ci#  (mailto:DL-MPTFusionLinux@lsi.com)
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci# This program is free software; you can redistribute it and/or
98c2ecf20Sopenharmony_ci# modify it under the terms of the GNU General Public License
108c2ecf20Sopenharmony_ci# as published by the Free Software Foundation; either version 2
118c2ecf20Sopenharmony_ci# of the License, or (at your option) any later version.
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci# This program is distributed in the hope that it will be useful,
148c2ecf20Sopenharmony_ci# but WITHOUT ANY WARRANTY; without even the implied warranty of
158c2ecf20Sopenharmony_ci# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
168c2ecf20Sopenharmony_ci# GNU General Public License for more details.
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci# NO WARRANTY
198c2ecf20Sopenharmony_ci# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
208c2ecf20Sopenharmony_ci# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
218c2ecf20Sopenharmony_ci# LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
228c2ecf20Sopenharmony_ci# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
238c2ecf20Sopenharmony_ci# solely responsible for determining the appropriateness of using and
248c2ecf20Sopenharmony_ci# distributing the Program and assumes all risks associated with its
258c2ecf20Sopenharmony_ci# exercise of rights under this Agreement, including but not limited to
268c2ecf20Sopenharmony_ci# the risks and costs of program errors, damage to or loss of data,
278c2ecf20Sopenharmony_ci# programs or equipment, and unavailability or interruption of operations.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci# DISCLAIMER OF LIABILITY
308c2ecf20Sopenharmony_ci# NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
318c2ecf20Sopenharmony_ci# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
328c2ecf20Sopenharmony_ci# DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
338c2ecf20Sopenharmony_ci# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
348c2ecf20Sopenharmony_ci# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
358c2ecf20Sopenharmony_ci# USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
368c2ecf20Sopenharmony_ci# HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci# You should have received a copy of the GNU General Public License
398c2ecf20Sopenharmony_ci# along with this program; if not, write to the Free Software
408c2ecf20Sopenharmony_ci# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
418c2ecf20Sopenharmony_ci# USA.
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig SCSI_MPT3SAS
448c2ecf20Sopenharmony_ci	tristate "LSI MPT Fusion SAS 3.0 & SAS 2.0 Device Driver"
458c2ecf20Sopenharmony_ci	depends on PCI && SCSI
468c2ecf20Sopenharmony_ci	select SCSI_SAS_ATTRS
478c2ecf20Sopenharmony_ci	select RAID_ATTRS
488c2ecf20Sopenharmony_ci	select IRQ_POLL
498c2ecf20Sopenharmony_ci	help
508c2ecf20Sopenharmony_ci	This driver supports PCI-Express SAS 12Gb/s Host Adapters.
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ciconfig SCSI_MPT2SAS_MAX_SGE
538c2ecf20Sopenharmony_ci	int "LSI MPT Fusion SAS 2.0 Max number of SG Entries (16 - 256)"
548c2ecf20Sopenharmony_ci	depends on PCI && SCSI && SCSI_MPT3SAS
558c2ecf20Sopenharmony_ci	default "128"
568c2ecf20Sopenharmony_ci	range 16 256
578c2ecf20Sopenharmony_ci	help
588c2ecf20Sopenharmony_ci	This option allows you to specify the maximum number of scatter-
598c2ecf20Sopenharmony_ci	gather entries per I/O. The driver default is 128, which matches
608c2ecf20Sopenharmony_ci	MAX_PHYS_SEGMENTS in most kernels.  However in SuSE kernels this
618c2ecf20Sopenharmony_ci	can be 256. However, it may decreased down to 16.  Decreasing this
628c2ecf20Sopenharmony_ci	parameter will reduce memory requirements on a per controller instance.
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ciconfig SCSI_MPT3SAS_MAX_SGE
658c2ecf20Sopenharmony_ci	int "LSI MPT Fusion SAS 3.0 Max number of SG Entries (16 - 256)"
668c2ecf20Sopenharmony_ci	depends on PCI && SCSI && SCSI_MPT3SAS
678c2ecf20Sopenharmony_ci	default "128"
688c2ecf20Sopenharmony_ci	range 16 256
698c2ecf20Sopenharmony_ci	help
708c2ecf20Sopenharmony_ci	This option allows you to specify the maximum number of scatter-
718c2ecf20Sopenharmony_ci	gather entries per I/O. The driver default is 128, which matches
728c2ecf20Sopenharmony_ci	MAX_PHYS_SEGMENTS in most kernels.  However in SuSE kernels this
738c2ecf20Sopenharmony_ci	can be 256. However, it may decreased down to 16.  Decreasing this
748c2ecf20Sopenharmony_ci	parameter will reduce memory requirements on a per controller instance.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ciconfig SCSI_MPT2SAS
778c2ecf20Sopenharmony_ci	tristate "Legacy MPT2SAS config option"
788c2ecf20Sopenharmony_ci	default n
798c2ecf20Sopenharmony_ci	select SCSI_MPT3SAS
808c2ecf20Sopenharmony_ci	depends on PCI && SCSI
818c2ecf20Sopenharmony_ci	help
828c2ecf20Sopenharmony_ci	Dummy config option for backwards compatiblity: configure the MPT3SAS
838c2ecf20Sopenharmony_ci	driver instead.
84