[PATCH v2 7/10] megaraid_sas : Print critical fw event message

2015-08-20 Thread Sumit.Saxena
Print firmware event in readable format. This will help user to track any critical firmware event without any application support. sample syslogd output - megaraid_sas :02:00.0: 8619 (491648347s/0x0020/WARN) - Controller temperature threshold exceeded. This may indicate inadequate system

[PATCH v2 10/10] megaraid_sas : Version upgrade

2015-08-20 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h

[PATCH v2 9/10] megaraid_sas : Code refactor for use of requestorId

2015-08-20 Thread Sumit.Saxena
Some of the code changes was proposed by David Binderman Removed redudant check of requestorId. Redundant condition: instance.requestorId. Check for plasma firmware 1.11 or new restructured to support only for specific device id Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

[PATCH v2 8/10] megaraid_sas : Fix validHandles check in io path

2015-08-20 Thread Sumit.Saxena
Syncro firmware supports round robin IO switch on dual path. For this driver use validHandles as a check for dual path. This check suppose to be 1 (not 2) Without this patch, earlier driver code does not use dual path functionality. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

[PATCH v2 3/10] megaraid_sas : Jbod sequence number support

2015-08-20 Thread Sumit.Saxena
Implemented JBOD map which will provide quick access for JBOD path and also provide sequence number. This will help hardware to fail command to the FW in case of any sequence mismatch. Fast Path IO for JBOD will refer JBOD map (which has sequence number per JBOD devices) instead of Raid map.

[PATCH v2 02/10] megaraid_sas : Increase timeout to 60 secs for abort frames during shutdown

2015-08-20 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Reviewed-by: Martin Petersen martin.peter...@oracle.com --- drivers/scsi/megaraid/megaraid_sas_base.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 6/10] megaraid_sas : Chip reset if driver fail to bring ioc ready

2015-08-20 Thread Sumit.Saxena
Patch which fix the issue reported as below. http://marc.info/?l=linux-scsim=143694494104544w=2 This patch will try to do chip reset from driver load time. Driver load time, if firmware is not comming to ready state, driver try chip reset calling adp_reset() callback. For fusion adapter, that

[PATCH v2 5/10] megaraid_sas : Support for max_io_size 1MB

2015-08-20 Thread Sumit.Saxena
Driver will expose max sge = 256 (earlier it was 64), if firmware support extended IO size upto 1M. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Reviewed-by: Martin Petersen martin.peter...@oracle.com ---

[PATCH v2 0/10] megaraid_sas : Updates for scsi for-next

2015-08-20 Thread Sumit.Saxena
MegaRaid driver changes. This patch set is resent based on feedback received by Martin Petersen. Please consider this patch set for next kernel release. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- [PATCH v2 00/10]

[PATCH v2 01/10] megaraid_sas : Synchronize driver headers with firmware APIs

2015-08-20 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Reviewed-by: Martin Petersen martin.peter...@oracle.com --- drivers/scsi/megaraid/megaraid_sas.h| 18 ++ drivers/scsi/megaraid/megaraid_sas_fusion.h |3 ++-

[PATCH 1/7] megaraid_sas : Jbod sequence number support

2015-08-07 Thread Sumit.Saxena
Implemented JBOD map which will provide quick access for JBOD path and also provide sequence number. This will help hardware to fail command to the FW in case of any sequence mismatch. Fast Path IO for JBOD will refer JBOD map (which has sequence number per JBOD devices) instead of Raid map.

[PATCH 4/7] megaraid_sas : Print critical fw event message

2015-08-07 Thread Sumit.Saxena
Print firmware event in readable format. This will help user to track any critical firmware event without any application support. sample syslogd output - megaraid_sas :02:00.0: 8619 (491648347s/0x0020/WARN) - Controller temperature threshold exceeded. This may indicate inadequate system

[PATCH 0/7] megaraid_sas : Updates for scsi for-next

2015-08-07 Thread Sumit.Saxena
MegaRaid driver changes. Please consider this patch set for next kernel release. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- [PATCH 00/07] megaraid_sas : Updates for scsi for-next [PATCH 01/07] megaraid_sas : Jbod sequence

[PATCH 5/7] megaraid_sas : Fix validHandles check in io path

2015-08-07 Thread Sumit.Saxena
Syncro firmware support round robin IO switch on dual path. For this driver use validHandles as a check for dual path. This check suppose to be 1 (not 2) Without this patch, earlier driver code does not use dual path functionality. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

[PATCH 3/7] megaraid_sas : Chip reset if driver fail to bring ioc ready

2015-08-07 Thread Sumit.Saxena
Patch which fix the issue reported as below. http://marc.info/?l=linux-scsim=143694494104544w=2 This patch will try to do chip reset from driver load time. Driver load time, if firmware is not comming to ready state, driver try chip reset calling adp_reset() callback. For fusion adapter, that

[PATCH 6/7] megaraid_sas : Code refactor for use of requestorId

2015-08-07 Thread Sumit.Saxena
Some of the code changes was proposed by David Binderman Removed redudant check of requestorId. Redundant condition: instance.requestorId. Check for plasma firmware 1.11 or new restructured to support only for specific device id Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

[PATCH 7/7] megaraid_sas : Version upgrade

2015-08-07 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- diff --git a/megaraid_sas.h b/megaraid_sas.h index ccda60d..b1c605f 100644 --- a/megaraid_sas.h +++ b/megaraid_sas.h @@ -35,8 +35,8 @@ /* * MegaRAID SAS Driver meta data */

[PATCH 2/7] megaraid_sas : Support for max_io_size 1MB

2015-08-07 Thread Sumit.Saxena
Driver will expose max sge = 256 (earlier it was 64), if firmware support extended IO size upto 1M. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- diff --git a/megaraid_sas.h b/megaraid_sas.h index 45500ba..5db31c6 100644 ---

[PATCH] megaraid_sas : Pass driver version to firmware inside IOC init frame

2015-06-10 Thread Sumit.Saxena
Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h| 10 +++--- drivers/scsi/megaraid/megaraid_sas_base.c | 18 ++ drivers/scsi/megaraid/megaraid_sas_fusion.c |7 +++ 3 files changed, 32 insertions(+), 3

[PATCH v2] regression, megaraid - fix irq setup process

2015-06-02 Thread Sumit.Saxena
From:Tomas Henzlthe...@redhat.com This fixes a regression caused by commit d3557fc8be11d25f316884581f487684f8e7dad3 megaraid_sas : Add separate function for setting up IRQs This makes boot end with 'root does not exist' message on certain adapters. The bug is that the driver does not setup ints

[PATCH v3 7/18] megaraid_sas : Modify driver's meta data to reflect Avago

2015-04-23 Thread Sumit.Saxena
This patch will update module parameters and driver name inside SCSI host template to reflect Avago. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Tomas Henzl the...@redhat.com --- drivers/scsi/megaraid/megaraid_sas_base.c |6

[PATCH v3 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-23 Thread Sumit.Saxena
This patch will create separate functions for sysPD IOs and non Read/Write LDIOs. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Tomas Henzl the...@redhat.com Reviewed-by: Christoph Hellwig h...@lst.de ---

[PATCH v3 4/18] megaraid_sas : Move controller's queue depth calculation in adapter specific function

2015-04-23 Thread Sumit.Saxena
This patch will move internal commands and SCSI commands reservation in adapter's sepcific functions. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de ---

[PATCH v3 13/18] megaraid_sas : add endianess conversions for all ones

2015-04-23 Thread Sumit.Saxena
Add noop conversions for all ones to make sparse happy. From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Tomas Henzl the...@redhat.com ---

[PATCH v3 12/18] megaraid_sas : add endianess annotations

2015-04-23 Thread Sumit.Saxena
This adds endianness annotations to all data structures, and a few variables directly referencing them. From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by:

[PATCH v3 14/18] megaraid_sas : move endianess conversion into caller of megasas_get_seq_num

2015-04-23 Thread Sumit.Saxena
Converting structure fields in place is always a bad idea, and in this case by moving it into the only caller we also only have to do a single byte swap as most fields of this structure are never used. From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by:

[PATCH v3 10/18] megaraid_sas : megasas_complete_outstanding_ioctls() can be static

2015-04-23 Thread Sumit.Saxena
drivers/scsi/megaraid/megaraid_sas_base.c:1701:6: sparse: symbol 'megasas_complete_outstanding_ioctls' was not declared. Should it be static? From: Christoph Hellwig h...@lst.de Signed-off-by: Fengguang Wu fengguang...@intel.com Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit

[PATCH v3 11/18] megaraid_sas : add missing __iomem annotations

2015-04-23 Thread Sumit.Saxena
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Tomas Henzl the...@redhat.com --- drivers/scsi/megaraid/megaraid_sas.h |2 +-

[PATCH v3 15/18] megaraid_sas : bytewise or should be done on native endian variables

2015-04-23 Thread Sumit.Saxena
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Tomas Henzl the...@redhat.com --- drivers/scsi/megaraid/megaraid_sas_fusion.c |4 +++- 1 files

[PATCH v3 18/18] megaraid_sas : swap whole register in megasas_register_aen

2015-04-23 Thread Sumit.Saxena
Swap the whole 32 bits we read from the hardware instead of swapping just the 16bits we care about in place later. From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de

[PATCH v3 17/18] megaraid_sas : fix megasas_fire_cmd_fusion calling convention

2015-04-23 Thread Sumit.Saxena
The fusion HBAs don't really use the instance template like the other variants, as it branches off at a much higher level. So instead of trying to squeeze megasas_fire_cmd_fusion into the wrong calling convention call it locally with argument data types that match what is passed. From: Christoph

[PATCH v3 16/18] megaraid_sas : add missing byte swaps to the sriov code

2015-04-23 Thread Sumit.Saxena
From: Christoph Hellwig h...@lst.de Signed-off-by: Christoph Hellwig h...@lst.de Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Tomas Henzl the...@redhat.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 46

[PATCH v3 1/18] megaraid_sas : Add separate function for setting up IRQs

2015-04-23 Thread Sumit.Saxena
This patch will create separate functions for- 1) setting up IRQs for MSI-x interrupts 2) setting up IRQs for legacy interrupts 3) freeing up IRQs. and enable interrupts after adapter's initialization. The reason behind initialising adapter earlier is: by that time firmware is operational and

[PATCH v3 0/18] megaraid_sas : Description Patch

2015-04-23 Thread Sumit.Saxena
These patches have accomodated comments/feedback received on last sent patch series. Please consider this patch series for next release. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- [PATCH v3 0/18] megaraid_sas : Description Patch. [PATCH v3 1/18] megaraid_sas : Add separate

[PATCH v3 5/18] megaraid_sas : Enhanced few prints

2015-04-23 Thread Sumit.Saxena
This patch will update few prints. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de --- drivers/scsi/megaraid/megaraid_sas_base.c | 49 ++--- 1 files changed, 24 insertions(+), 25 deletions(-) diff --git

[PATCH v3 6/18] megaraid_sas : Use Block layer tag support for internal command indexing

2015-04-23 Thread Sumit.Saxena
megaraid_sas driver will use block layer provided tag for indexing internal MPT frames to get any unique MPT frame tied with tag. Each IO request submitted from SCSI mid layer will get associated MPT frame from MPT framepool (retrieved and return back using spinlock inside megaraid_sas driver's

[PATCH v3 2/18] megaraid_sas : Add separate function for refiring MFI commands

2015-04-23 Thread Sumit.Saxena
This patch will add separate function for refiring MFI commands in Fusion adapters's OCR code. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Reviewed-by: Hannes Reinecke h...@suse.de Reviewed-by: Christoph Hellwig h...@lst.de ---

[PATCH v3 8/18] megaraid_sas : Add release date and update driver version

2015-04-23 Thread Sumit.Saxena
This patch will upgrade the driver version and add back the release date and sysfs hook for the same. Some internal applications uses sysfs parameter for release date, so they were broken because of removal of release date from sysfs. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com

[PATCH v3 9/18] megaraid_sas : Support for Avago's Single server High Availability product

2015-04-23 Thread Sumit.Saxena
This patch will add support for Single Server High Availability(SSHA) cluster support. Here is the short decsription of changes done to add support for SSHA- 1) Host will send system's Unique ID based on DMI_PRODUCT_UUID to firmware. 2) Toggle the devhandle in LDIO path for Remote LDs.

[PATCH RESEND 0/18] megaraid_sas : Description Patch

2015-04-20 Thread Sumit.Saxena
This patch series for megaraid_sas driver is resent with splitting one patch in to 5 different patches(patch #1 to patch #5) along with few extra sparse warnings fixes (patch#10 to patch #18). These sparse warnings fixes are also not first time submitted but resent(earlier sent by Christoph

[PATCH RESEND 13/18] megaraid_sas : add endianess conversions for all ones

2015-04-20 Thread Sumit.Saxena
Add noop conversions for all ones to make sparse happy. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- drivers/scsi/megaraid/megaraid_sas_fp.c |7 --- drivers/scsi/megaraid/megaraid_sas_fusion.c |9 + 3 files

[PATCH RESEND 12/18] megaraid_sas : add endianess annotations

2015-04-20 Thread Sumit.Saxena
This adds endianness annotations to all data structures, and a few variables directly referencing them. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas.h| 302 +- drivers/scsi/megaraid/megaraid_sas_base.c |2 +-

[PATCH RESEND 5/18] megaraid_sas : Enhanced few prints

2015-04-20 Thread Sumit.Saxena
This patch will update few prints. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 49 ++--- 1 files changed, 24 insertions(+), 25 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH RESEND 2/18] megaraid_sas : Add separate function for refiring MFI commands

2015-04-20 Thread Sumit.Saxena
This patch will add separate function for refiring MFI commands in Fusion adapters's OCR code. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 80 +-- 1

[PATCH RESEND 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-20 Thread Sumit.Saxena
This patch will create separate functions for sysPD IOs and non Read/Write LDIOs. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h| 10 +- drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH RESEND 7/18] megaraid_sas : Modify driver's meta data to reflect Avago

2015-04-20 Thread Sumit.Saxena
This patch will update module parameters and driver name inside SCSI host template to reflect Avago. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH RESEND 1/18] megaraid_sas : Add separate function for setting up IRQs

2015-04-20 Thread Sumit.Saxena
This patch will create separate function for setting up IRQs and enable interrupts after adapter's initialization. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 201

[PATCH RESEND 6/18] megaraid_sas : Use Block layer tag support for internal command indexing

2015-04-20 Thread Sumit.Saxena
megaraid_sas driver will use block layer provided tag for indexing internal MPT frames to get any unique MPT frame tied with tag. Each IO request submitted from SCSI mid layer will get associated MPT frame from MPT framepool (retrieved and return back using spinlock inside megaraid_sas driver's

[PATCH RESEND 4/18] megaraid_sas : Move controller's queue depth calculation in adapter specific function

2015-04-20 Thread Sumit.Saxena
This patch will move controller's queue depth calculation in adapter specific functions. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 39 ++

[PATCH RESEND 16/18] megaraid_sas : add missing byte swaps to the sriov code

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c | 46 +++- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index

[PATCH RESEND 18/18] megaraid_sas : swap whole register in megasas_register_aen

2015-04-20 Thread Sumit.Saxena
Swap the whole 32 bits we read from the hardware instead of swapping just the 16bits we care about in place later. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH RESEND 10/18] megaraid_sas : megasas_complete_outstanding_ioctls() can be static

2015-04-20 Thread Sumit.Saxena
drivers/scsi/megaraid/megaraid_sas_base.c:1701:6: sparse: symbol 'megasas_complete_outstanding_ioctls' was not declared. Should it be static? Signed-off-by: Fengguang Wu fengguang...@intel.com --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH RESEND v2 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-20 Thread Sumit.Saxena
This patch will create separate functions for sysPD IOs and non Read/Write LDIOs. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h| 10 +- drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH RESEND 15/18] megaraid_sas : bytewise or should be done on native endian variables

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_fusion.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 7d34fe8..17ec153 100644 ---

[PATCH RESEND 14/18] megaraid_sas : move endianess conversion into caller of megasas_get_seq_num

2015-04-20 Thread Sumit.Saxena
Converting structure fields in place is always a bad idea, and in this case by moving it into the only caller we also only have to do a single byte swap as most fields of this structure are never used. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |

[PATCH RESEND 8/18] megaraid_sas : Add release date and update driver version

2015-04-20 Thread Sumit.Saxena
This patch will upgrade the driver version and add back the release date and sysfs hook for the same. Some internal applications uses sysfs parameter for release date, so they were broken because of removal of release date from sysfs. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com ---

[PATCH RESEND 9/18] megaraid_sas : Support for Avago's Single server High Availability product

2015-04-20 Thread Sumit.Saxena
This patch will add support for Single Server High Availability(SSHA) cluster support. Here is the short decsription of changes done to add support for SSHA- 1) Host will send system's Unique ID based on DMI_PRODUCT_UUID to firmware. 2) Toggle the devhandle in LDIO path for Remote LDs.

[PATCH RESEND 11/18] megaraid_sas : add missing __iomem annotations

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas.h |2 +- drivers/scsi/megaraid/megaraid_sas_base.c |9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h

[PATCH RESEND 17/18] megaraid_sas : fix megasas_fire_cmd_fusion calling convention

2015-04-20 Thread Sumit.Saxena
The fusion HBAs don't really use the instance template like the other variants, as it branches off at a much higher level. So instead of trying to squeeze megasas_fire_cmd_fusion into the wrong calling convention call it locally with argument data types that match what is passed. Signed-off-by:

[PATCH 1/5] megaraid_sas : Code optimization and refactoring

2015-03-27 Thread Sumit.Saxena
This patch has code optimization and refactoring in below areas- 1) Created separate functions for sysPD IOs and non Read Write LDIOs. 2) Added function for refiring MFI commands in controller reset path. 3) Enabling interrupt immediately after adapter's initialization. 4) Added function for

[PATCH 0/5] megaraid_sas : Description Patch

2015-03-27 Thread Sumit.Saxena
megaraid_sas driver changes. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- [PATCH 0/5] megaraid_sas : Description Patch. [PATCH 1/5] megaraid_sas : Code optimization and refactoring. [PATCH 2/5] megaraid_sas : Use Block layer tag support for internal command indexing. [PATCH 3/5]

[PATCH 5/5] megaraid_sas : Support for Avago's Single server High Availability product

2015-03-27 Thread Sumit.Saxena
This patch will add support for Single Server High Availability(SSHA) cluster support. Here is the short decsription of changes done to add support for SSHA- 1) Host will send system's Unique ID based on DMI_PRODUCT_UUID to firmware. 2) Toggle the devhandle in LDIO path for Remote LDs.

[PATCH 3/5] megaraid_sas : Modify driver's meta data to reflect Avago

2015-03-27 Thread Sumit.Saxena
This patch will update module parameters and driver name inside SCSI host template to reflect Avago. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 4/5] megaraid_sas : Add release date and update driver version

2015-03-27 Thread Sumit.Saxena
This patch will upgrade the driver version and add back the release date and sysfs hook for the same. Some Avago's internal applications uses sysfs parameter of release date, so they were broken because of removal of release date from sysfs. Signed-off-by: Sumit Saxena

[PATCH 2/5] megaraid_sas : Use Block layer tag support for internal command indexing

2015-03-27 Thread Sumit.Saxena
megaraid_sas driver will use block layer provided tag for indexing internal MPT frames to get any unique MPT frame tied with tag. Each IO request submitted from SCSI mid layer will get associated MPT frame from MPT framepool (retrieved and return back using spinlock inside megaraid_sas driver's

[PATCH 6/8] megaraid_sas : Reserve commands for IOCTLs and internal DCMDs

2015-01-05 Thread Sumit.Saxena
1)For fusion adapters, limited reserved frames for non SCSI commands to 8(3 for parallel IOCTLs + 5 for driver's internal DCMDs). Earlier reserved commands for non SCSI IO frames was set to 32, so with this implementation, increased per controller can_queue. Behavior of MFI controllers will

[PATCH 1/8] megaraid_sas : Endianness related bug fixes and code optimization

2015-01-05 Thread Sumit.Saxena
This patch addresses below issues- 1) Few endianness bug fixes. 2) Break the iteration after (MAX_LOGICAL_DRIVES_EXT - 1)), instead of MAX_LOGICAL_DRIVES_EXT. 3) Optimization in MFI INIT frame before firing. 4) MFI IO frame should be 256bytes aligned. Code is optimized to reduce the size of

[PATCH 3/8] megaraid_sas : Fix the problem of non-existing VD exposed to host

2015-01-05 Thread Sumit.Saxena
This patch will address the issue of SCSI device created at OS level for non existing VD. ldTgtIdtoLd[] array has size 256 for Extended VD firmware and 128 for legacy firmware. Accessing indices beyond array size(OS will send TUR, INQUIRY.. commands upto device index 255), may return valid LD

[PATCH 4/8] megaraid_sas : Disable interrupt_mask before enabling hardware interrupts

2015-01-05 Thread Sumit.Saxena
Update driver mask_interrupts before enable/disable hardware interrupt in order to avoid missing interrupts because of mask_interrupts still set to 1 and hardware interrupts are enabled. Cc: sta...@vger.kernel.org Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Chaitra

[PATCH 5/8] megaraid_sas : Complete outstanding IOCTLs before killing adapter

2015-01-05 Thread Sumit.Saxena
Driver calls megasas_complete_cmd() to call wake_up() for each MFI frame that was issued through the ioctl() interface prior to the kill adapter. This ensures userspace ioctl() system calls issued just before a kill adapter don't get stuck in wait state and IOCTLs are returned to application.

[PATCH 2/8] megaraid_sas : Support for secure JBOD

2015-01-05 Thread Sumit.Saxena
This patch will add support for Secure Encrypting Drives(SED) in JBOD mode. below are the key points- 1) If Firmware supports SED JBOD, all non Read Write commands to JBODs will be sent via Firmware path and Read write commands to JBOD will be sent via fastpath. 2) If firmware does not

[PATCH 8/8] megaraid_sas : Driver version update

2015-01-05 Thread Sumit.Saxena
Update megaraid_sas driver version. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index

[PATCH 0/8] megaraid_sas : Description Patch

2015-01-05 Thread Sumit.Saxena
megaraid_sas driver changes. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- [PATCH 0/8] megaraid_sas : Description Patch. [PATCH 1/8] megaraid_sas : Endianness related bug fixes and code optimization. [PATCH 2/8] megaraid_sas : Support for secure JBOD. [PATCH 3/8] megaraid_sas : Fix

[PATCH RESEND 3/7] megaraid_sas : Do not process IOCTLs and SCSI commands during driver removal

2014-11-17 Thread Sumit.Saxena
Do not process any SCSI and IOCTL command further(return them with appropriate return values to callers), while driver removal is in progress/PCI shutdown is invoked. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com ---

[PATCH RESEND 2/7] megaraid_sas : Update MAINTAINERS and copyright information for megaraid drivers

2014-11-17 Thread Sumit.Saxena
Update MAINTAINERS list and copyright information for megaraid_sas driver. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- MAINTAINERS |9 ++--- drivers/scsi/megaraid/megaraid_sas.h| 16 +---

[PATCH RESEND 5/7] megaraid_sas : Make HBA operational after LD_MAP_SYNC DCMD in OCR path

2014-11-17 Thread Sumit.Saxena
In OCR(Online Controller Reset) path, driver sets adapter state to MEGASAS_HBA_OPERATIONAL before getting new RAID map. There will be a small window where IO will come from OS with old RAID map. This patch will update adapter state to MEGASAS_HBA_OPERATIONAL, only after driver has new RAID map

[PATCH RESEND 0/7] megaraid_sas : Description Patch

2014-11-17 Thread Sumit.Saxena
megaraid_sas driver changes. This resent patch series has some additional changes in few patches on top of last patch series. [PATCH RESNED 1/7] additionally rmeoves some meta data of megaraid_sas driver. [PATCH RESEND 2/7] has additional copyright changes as well. Please consider this patch set

[PATCH RESEND 4/7] megaraid_sas : Online Firmware upgrade support for Extended VD feature

2014-11-17 Thread Sumit.Saxena
In OCR(Online Controller Reset) path, driver sets adapter state to MEGASAS_HBA_OPERATIONAL before getting new RAID map. There will be a small window where IO will come from OS with old RAID map. This patch will update adapter state to MEGASAS_HBA_OPERATIONAL, only after driver has new RAID map

[PATCH RESEND 6/7] megaraid_sas : Corrected return of wait_event from abort frame path

2014-11-17 Thread Sumit.Saxena
Corrected wait_event() call which was waiting for wrong completion status(0xFF). Cc: sta...@vger.kernel.org Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- 1 files changed, 1

[PATCH RESEND 7/7] megaraid_sas : Endinaness related bug fixes

2014-11-17 Thread Sumit.Saxena
This patch addresses few endianness related bug fixes. Cc: sta...@vger.kernel.org Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_fp.c | 17 +

[PATCH 1/7] megaraid_sas : Driver version upgrade

2014-11-10 Thread Sumit.Saxena
megaraid_sas driver version upgrade Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h | 2 +- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h

[PATCH 2/7] megaraid_sas : Update MAINTAINERS for megaraid drivers

2014-11-10 Thread Sumit.Saxena
Update MAINTAINERS list for megaraid_sas driver Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- MAINTAINERS | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index aefa948..94c393f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH 4/7] megaraid_sas : Online Firmware upgrade suppport for Extended VD feature

2014-11-10 Thread Sumit.Saxena
This patch provides driver compatibility for updating firmware online to upgrade legacy(64 VD) firmware to Extended VD firmware and viceversa. Currently, at driver load time only, driver will check whether Firmware is legacy or 240 VD. If legacy Firmware is upgraded to Extended VD firmware

[PATCH 6/7] megaraid_sas : Corrected return of wait_event from abort frame path

2014-11-10 Thread Sumit.Saxena
Corrected wait_event() call which was waiting for wrong completion status(0xFF). Cc: sta...@vger.kernel.org Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- 1 files changed, 1

[PATCH 5/7] megaraid_sas : Make HBA operational after LD_MAP_SYNC DCMD in OCR path

2014-11-10 Thread Sumit.Saxena
In OCR(Online Controller Reset) path, driver sets adapter state to MEGASAS_HBA_OPERATIONAL before getting new RAID map. There will be a small window where IO will come from OS with old RAID map. This patch will update adapter state to MEGASAS_HBA_OPERATIONAL, only after driver has new RAID map

[PATCH 7/7] megaraid_sas : Endinaness related bug fixes

2014-11-10 Thread Sumit.Saxena
This patch addresses few endianness related bug fixes. Cc: sta...@vger.kernel.org Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_fp.c | 17 +

[PATCH 0/7] megaraid_sas : Description Patch

2014-11-10 Thread Sumit.Saxena
megaraid_sas driver changes. Please consider this patch set for next kernel release. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com --- [PATCH 0/7] megaraid_sas : Description Patch [PATCH 1/7] megaraid_sas : Driver version upgrade

[PATCH 3/7] megaraid_sas : Do not process IOCTLs and SCSI commands during driver removal

2014-11-10 Thread Sumit.Saxena
Do not process any SCSI and IOCTL command further(return them with appropriate return values to callers), while driver removal is in progress/PCI shutdown is invoked. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com ---

[PATCH RESEND 00/11] megaraid_sas : Description Patch

2014-09-12 Thread Sumit.Saxena
MegaRaid driver changes. Please consider this patch set for next kernel release. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Reviewed-by: Tomas Henzl the...@redhat.com --- [PATCH RESEND 00/11] megaraid_sas : Description Patch

[PATCH RESEND 09/11] megaraid_sas : N-drive primary raid level 1 load balancing

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Current driver does fast path read load balancing between arm and mirror disk for two Drive Raid-1 configuration only. Now, Driver support fast path read load balancing for all (any number of disk) Raid-1 configuration.

[PATCH RESEND 01/11] megaraid_sas : Do not scan non syspd drives

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Current driver allow device scan for all the devices on channel 0 and 1. E.a If we have two single drive raid volumes, we may see prints like below. First two prints are for physical device which are used to form VD. Prints

[PATCH RESEND 08/11] megaraid_sas : Add module parameter to disable IRQ-CPU affinity hint

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. For certain deployment, we may need to disable irq cpu affinity hint. This module parameter provides option for use to disable irq cpu affinity hint and allow irqbalancer to handle the rest. Signed-off-by: Sumit Saxena

[PATCH RESEND 02/11] megaraid_sas : Use writeq for 64bit pci write to avoid spinlock overhead

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Reduce the assingment for u64 req_data variable. Use writeq() for 64bit PCI write instead of writel() to avoid additional lock overhead. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai

[PATCH RESEND 03/11] megaraid_sas : Update threshold based reply post host index register

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Current driver updates reply post host index to let firmware know that replies are processed, while returning from ISR function, only if there is no oustanding replies in reply queue. Driver will free the request frame

[PATCH RESEND 04/11] megaraid_sas : Firmware crash dump feature support

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Move buff_offset inside spinlock, corrected loop at crash dump buffer free, reset_devices check is added to disable fw crash dump feature in kdump kernel. This feature will provide similar interface as kernel crash dump

[PATCH RESEND 06/11] megaraid_sas : Host lock less mode to enabled asynchronous IO submission

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Megaraid_sas driver can now work in host lock less mode. Remove host lock less as megaraid_sas driver will have safer access to raid map as described in earlier patch. We now keep Driver Raid map copy, which will make sure

[PATCH RESEND 11/11] megaraid_sas : Driver version update

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments by Tomas Henzl. Driver version upgrade patch. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Reviewed-by: Tomas Henzl the...@redhat.com --- drivers/scsi/megaraid/megaraid_sas.h

[PATCH RESEND 10/11] megaraid_sas : MFI MPT linked list corruption fix

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Added comment for to-do work. Problem statement: MFI link list in megaraid_sas driver is used from mfi-mpt pass-through commands. This list can be corrupted due to many possible race conditions in driver and eventually we may

[PATCH RESEND 07/11] megaraid_sas : Round down max sge supported by controller to power of two

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. Round down the max sge to power of two. Earlier max sge limit is 70 SGE, which will allow block layer to send 280K IO frame. It is optimal to provide max IO size aligned to the smallest possible stripe size. E.a Consider

[PATCH RESEND 05/11] megaraid_sas : Extended VD support

2014-09-12 Thread Sumit.Saxena
Resending the patch. Addressed the review comments from Tomas Henzl. reserved1 field(part of union) of Raid map struct was not required so it is removed. Current MegaRAID firmware and hence the driver only supported 64VDs. E.g: If the user wants to create more than 64VD on a controller, it

  1   2   >