linux/drivers/scsi/mpt2sas
nagalakshmi.nandigama@lsi.com 911ae9434f [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA
Support added for controllers capable of multi reply queues.

The following are the modifications to the driver to support NUMA.

1) Create the new structure adapter_reply_queue to contain the reply queue
   info for every msix vector.  This object will contain a
   reply_post_host_index, reply_post_free for each instance, msix_index, among
   other parameters.  We will track all the reply queues on a link list called
   ioc->reply_queue_list. Each reply queue is aligned with each IRQ, and is
   passed to the interrupt via the bus_id parameter.

(2) The driver will figure out the msix_vector_count from the PCIe MSIX
    capabilities register instead of the IOC Facts->MaxMSIxVectors. This is
    because the firmware is not filling in this field until the driver has
    already registered MSIX support.

(3) If the ioc_facts reports that the controller is MSIX compatible in the
    capabilities, then the driver will request for multiple irqs.  This count
    is calculated based on the minimum between the online cpus available and
    the ioc->msix_vector_count.  This count is reported to firmware in the
    ioc_init request.

(4) New routines were added _base_free_irq and _base_request_irq, so
    registering and freeing msix vectors were done thru simple function API.

(5) The new routine _base_assign_reply_queues was added to align the msix
    indexes across cpus. This will initialize the array called
    ioc->cpu_msix_table.  This array is looked up on every MPI request so the
    MSIxIndex is set appropriately.

(6) A new shost sysfs attribute was added to report the reply_queue_count.

(7) User needs to set the affinity cpu mask, so the interrupts occur on the
    same cpu that sent the original request.

Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2011-09-22 15:08:35 +04:00
..
mpi [SCSI] mpt2sas MPI next revision header update 2011-06-29 16:13:50 -05:00
Kconfig [SCSI] mpt2sas: Copyright 2010. 2010-04-11 09:24:02 -05:00
Makefile
mpt2sas_base.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_base.h [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_config.c Fix common misspellings 2011-03-31 11:26:23 -03:00
mpt2sas_ctl.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_ctl.h [SCSI] mpt2sas : WarpDrive New product SSS6200 support added 2011-05-01 10:36:54 -05:00
mpt2sas_debug.h [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00
mpt2sas_scsih.c [SCSI] mpt2sas: Added NUNA IO support in driver which uses multi-reply queue support of the HBA 2011-09-22 15:08:35 +04:00
mpt2sas_transport.c [SCSI] mpt2sas: Fixed Big Indian Issues on 32 bit PPC 2011-06-29 16:07:00 -05:00