Skip to contentSkip to conversation

Marvell 6440 SAS/SATA driver (rough draft)

PATCH New Jeff Garzik 1 participant 1 message Sep 25, 2007 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Marvell 6440 SAS/SATA driver (rough draft)

Same disclaimer as with broadsas... it's better to go ahead and get this work-in-progress out there for people to comment on.

The chip: the 6440 has per-HBA rings for TX (delivery) and RX (completions, events). You build a DMA command descriptor describing the SSP, SMP, STP or SATA command, and let it rip. Wide ports are supported (search for "phy_mask" in the code). Have plenty of control.

SATA is currently unsupported. The 6440 has some useful internal buffers "SATA register sets", which permit dynamic associations between SATA targets and SATA register blocks.

Most error handling, and some phy handling code is notably missing.

The 'sas' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/misc-2.6.git sas

contains the following updates:

 drivers/scsi/Kconfig    |   20 +
 drivers/scsi/Makefile   |    2 +
 drivers/scsi/broadsas.c | 1025 +++++++++++++++++++++++++++++++++++++++++++++
 drivers/scsi/mvsas.c    | 1064 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 2111 insertions(+), 0 deletions(-)
 create mode 100644 drivers/scsi/broadsas.c
 create mode 100644 drivers/scsi/mvsas.c

Jeff Garzik (3):
Add Broadcom 8603 SAS/SATA driver (rough draft). Add Marvell 88SE6440 SAS/SATA driver (rough draft). broadsas, mvsas: fill in sas_port, sas_phy arrays

drivers/scsi/Kconfig +20 -0
index 6f2c71e..bb041b8 100644
@@ -486,6 +486,16 @@ config SCSI_AIC7XXX_OLD
 source "drivers/scsi/aic7xxx/Kconfig.aic79xx"
 source "drivers/scsi/aic94xx/Kconfig"
 
+config SCSI_BROADSAS
+	tristate "Broadcom 8603 SAS/SATA support"
+	depends on PCI
+	select SCSI_SAS_LIBSAS
+	help
+	  This driver supports Broadcom SAS/SATA PCI devices.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called broadsas.
+
 # All the I2O code and drivers do not seem to be 64bit safe.
 config SCSI_DPT_I2O
 	tristate "Adaptec I2O RAID support "
@@ -961,6 +971,16 @@ config SCSI_IZIP_SLOW_CTR
 
 	  Generally, saying N is fine.
 
+config SCSI_MVSAS
+	tristate "Marvell 88SE6440 SAS/SATA support"
+	depends on PCI
+	select SCSI_SAS_LIBSAS
+	help
+	  This driver supports Marvell SAS/SATA PCI devices.
+
+	  To compiler this driver as a module, choose M here: the module
+	  will be called mvsas.
+
 config SCSI_NCR53C406A
 	tristate "NCR53c406a SCSI support"
 	depends on ISA && SCSI
drivers/scsi/Makefile +2 -0
index 86a7ba7..928b6a2 100644
@@ -72,6 +72,7 @@ obj-$(CONFIG_SCSI_AIC79XX)	+= aic7xxx/
 obj-$(CONFIG_SCSI_AACRAID)	+= aacraid/
 obj-$(CONFIG_SCSI_AIC7XXX_OLD)	+= aic7xxx_old.o
 obj-$(CONFIG_SCSI_AIC94XX)	+= aic94xx/
+obj-$(CONFIG_SCSI_BROADSAS)	+= broadsas.o
 obj-$(CONFIG_SCSI_IPS)		+= ips.o
 obj-$(CONFIG_SCSI_FD_MCS)	+= fd_mcs.o
 obj-$(CONFIG_SCSI_FUTURE_DOMAIN)+= fdomain.o
@@ -132,6 +133,7 @@ obj-$(CONFIG_SCSI_IBMVSCSI)	+= ibmvscsi/
 obj-$(CONFIG_SCSI_IBMVSCSIS)	+= ibmvscsi/
 obj-$(CONFIG_SCSI_HPTIOP)	+= hptiop.o
 obj-$(CONFIG_SCSI_STEX)		+= stex.o
+obj-$(CONFIG_SCSI_MVSAS)	+= mvsas.o
 obj-$(CONFIG_PS3_ROM)		+= ps3rom.o
 
 obj-$(CONFIG_ARM)		+= arm/
drivers/scsi/broadsas.c new file +0 -0
new file mode 100644
index 0000000..eeba635

[EDITED OUT, POSTED EARLIER]

drivers/scsi/mvsas.c new file +1064 -0

1,064 lines not on this page · raw message