Skip to content

Commit f92363d

Browse files
Sreekanth ReddyJames Bottomley
Sreekanth Reddy
authored and
James Bottomley
committed
[SCSI] mpt3sas: add new driver supporting 12GB SAS
These driver files are initially, substantially similar to mpt2sas but, because mpt2sas is going into maintenance mode and mp3sas will become heavily developed, we elected to keep the code bases separate. Signed-off-by: Sreekanth Reddy <[email protected]> Reviewed-by: Nagalakshmi Nandigama <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent d84fd39 commit f92363d

22 files changed

+30408
-0
lines changed

drivers/scsi/Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,7 @@ config SCSI_ARCMSR
603603

604604
source "drivers/scsi/megaraid/Kconfig.megaraid"
605605
source "drivers/scsi/mpt2sas/Kconfig"
606+
source "drivers/scsi/mpt3sas/Kconfig"
606607
source "drivers/scsi/ufs/Kconfig"
607608

608609
config SCSI_HPTIOP

drivers/scsi/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ obj-$(CONFIG_MEGARAID_LEGACY) += megaraid.o
107107
obj-$(CONFIG_MEGARAID_NEWGEN) += megaraid/
108108
obj-$(CONFIG_MEGARAID_SAS) += megaraid/
109109
obj-$(CONFIG_SCSI_MPT2SAS) += mpt2sas/
110+
obj-$(CONFIG_SCSI_MPT3SAS) += mpt3sas/
110111
obj-$(CONFIG_SCSI_UFSHCD) += ufs/
111112
obj-$(CONFIG_SCSI_ACARD) += atp870u.o
112113
obj-$(CONFIG_SCSI_SUNESP) += esp_scsi.o sun_esp.o

drivers/scsi/mpt3sas/Kconfig

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

drivers/scsi/mpt3sas/Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# mpt3sas makefile
2+
obj-m += mpt3sas.o
3+
mpt3sas-y += mpt3sas_base.o \
4+
mpt3sas_config.o \
5+
mpt3sas_scsih.o \
6+
mpt3sas_transport.o \
7+
mpt3sas_ctl.o \
8+
mpt3sas_trigger_diag.o

0 commit comments

Comments
 (0)