[PATCH] mpt3sas: Fix for regression caused due to cf6bf9710c patch

2018-06-29 Thread Chaitra P B
2() APIs respectively. Looks like it is not true for all architecture and hence this patch is reverting back only those hunks which removed le32_to_cpu() API call while using readl() API & cpu_to_le32() API call while using writel() API. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt

[PATCH v1] mpt3sas: Fix calltrace observed while running IO & host reset

2018-06-14 Thread Chaitra P B
r won't flushout those scsi cmnds at driver level with DID_RESET host byte thus this issue will not be observed. Signed-off-by: Chaitra P B Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpt3sas/mpt3sas_base.c | 1 + drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 2 files changed, 2 insertio

[PATCH] mpt3sas: Fix calltrace observed while running IO & host reset

2018-06-12 Thread Chaitra P B
r won't flushout those scsi cmnds at driver level with DID_RESET host byte thus this issue will not be observed. Signed-off-by: Chaitra P B Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 3/6] mpt3sas: Don't access the structure after decrementing it's instance reference count.

2018-05-31 Thread Chaitra P B
While configuring of NVMe device handling, _pcie_device structure member was accessed after its reference count is decremented/put. Hence modified code to access member of _pcie_device structure before its reference count is decremented/put. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas

[PATCH 6/6] mpt3sas: Update driver version "26.100.00.00"

2018-05-31 Thread Chaitra P B
Updated driver version to "26.100.00.00" Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 3d49ead..b00670a 10

[PATCH 5/6] mpt3sas: As per MPI-spec, use combined reply queue for SAS3.5 controllers when HBA supports more than 16 MSI-x vectors.

2018-05-31 Thread Chaitra P B
ned reply queue when HBA supports more than 16 MSI-x vectors. So modified driver code to use combined reply queue for SAS3 controllers when HBA supports > 8 MSI-x vectors and for SAS3.5 controllers when HBA supports > 16 MSI-x vectors. Signed-off-by: Chaitra P B --- drivers/scs

[PATCH 4/6] mpt3sas: Fix, False timeout prints for ioctl and other internal commands during controller reset.

2018-05-31 Thread Chaitra P B
and prints timeout which is actually not a timeout. Introduced "mpt3sas_base_check_cmd_timeout" function to check and print whether command got timed out (or) terminated due to Host reset. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 52 +

[PATCH 1/6] mpt3sas: Don't abort I/Os issued to NVMe drives while processing Async Broadcast primitive event.

2018-05-31 Thread Chaitra P B
moment. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index b8d131a..d31f0cc 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi

[PATCH 2/6] mpt3sas: Incorrect command status was set/marked as not used.

2018-05-31 Thread Chaitra P B
In _scsih_scan_finished driver should mark port_enable_cmd.status as 'command not used', instead base_cmds.status was marked as 'command not used'.so updated code to mark port_enable_cmd.status as 'command not used'. Signed-off-by: Chaitra P B --- drivers/sc

[PATCH 0/6] mpt3sas: Enhancements and Defect fixes.

2018-05-31 Thread Chaitra P B
Chaitra P B (6): mpt3sas: Don't abort I/Os issued to NVMe drives while processing Async Broadcast primitive event. mpt3sas: Incorrect command status was set/marked as not used. mpt3sas: Don't access the structure after decrementing it's instance reference count.

[PATCH v3 07/14] mpt3sas: Increase event log buffer to support 24 port HBA's.

2018-04-24 Thread Chaitra P B
For 24 port HBA's events generated by IOC are more in certain cases and the current circular buffer may be overwritten.Hence increased the event log buffer to accommodate more events. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.h | 2

[PATCH v3 00/14] mpt3sas: Enhancements and Defect fixes.

2018-04-24 Thread Chaitra P B
Chaitra P B (14): mpt3sas: Bug fix for big endian systems. mpt3sas: Pre-allocate RDPQ Array at driver boot time. mpt3sas: Lockless access for chain buffers. mpt3sas: Optimize I/O memory consumption in driver. mpt3sas: Enhanced handling of Sense Buffer. mpt3sas: Added support for SAS

[PATCH v3 10/14] mpt3sas: Report Firmware Package Version from HBA Driver.

2018-04-24 Thread Chaitra P B
Added function _base_display_fwpkg_version, which sends FWUpload request to pull FW package version from FW Image Header. Now driver prints FW package version in addition to FW version if the PackageVersion is valid. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi

[PATCH v3 13/14] mpt3sas: fix possible memory leak.

2018-04-24 Thread Chaitra P B
turn causes memory leak. So call ctl_exit() function before unregistering mpt3sas driver. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c

[PATCH v3 14/14] mpt3sas: Update driver version "25.100.00.00"

2018-04-24 Thread Chaitra P B
Update driver version to match OOB/internal driver version. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas

[PATCH v3 02/14] mpt3sas: Pre-allocate RDPQ Array at driver boot time.

2018-04-24 Thread Chaitra P B
tion) and then freed during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +++-- drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git

[PATCH v3 04/14] mpt3sas: Optimize I/O memory consumption in driver.

2018-04-24 Thread Chaitra P B
and chain buffer size as 128 bytes, then number of chain buffers that can fit in PRP page is 4096/128 => 32. if the number of chain buffer need per IO exceeds 32; for example consider number of chains need per IO is 36 then for remaining 4 chain buffer's driver allocates them individual.

[PATCH v3 06/14] mpt3sas: Added support for SAS Device Discovery Error Event.

2018-04-24 Thread Chaitra P B
The SAS Device Discovery Error Event is sent to the host when discovery for a particular device is failed during discovery, even after maximum retries by the IOC. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 drivers/scsi/mpt3sas

[PATCH v3 05/14] mpt3sas: Enhanced handling of Sense Buffer.

2018-04-24 Thread Chaitra P B
Enhanced DMA allocation for Sense Buffer, if the allocation does not fit within same 4GB.Introduced is_MSB_are_same function to check if allocted buffer within 4GB range or not. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 56

[PATCH v3 01/14] mpt3sas: Bug fix for big endian systems.

2018-04-24 Thread Chaitra P B
This patch fixes bug for big endian systems. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 55 - drivers/scsi/mpt3sas/mpt3sas_base.h | 4 +-- drivers

[PATCH v3 12/14] mpt3sas: For NVME device, issue a protocol level reset instead of hot reset and use TM timeout value exposed in PCIe Device Page 2.

2018-04-24 Thread Chaitra P B
in PCIe Device Page 2 for pcie device (field ControllerResetTO). Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 13 ++ drivers/scsi/mpt3sas/mpt3sas_base.h | 26 ++-- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 22 +-- drivers

[PATCH v3 09/14] mpt3sas: Cache enclosure pages during enclosure add.

2018-04-24 Thread Chaitra P B
(During enclosure add event, enclosure device is added to the list and removed from the list on delete events) and uses the enclosure page from the list. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 22 +++ drivers/scsi/mpt3sas

[PATCH v3 08/14] mpt3sas: Allow processing of events during driver unload.

2018-04-24 Thread Chaitra P B
Thus allowing driver unload to complete by processing drive removal events during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v3 03/14] mpt3sas: Lockless access for chain buffers.

2018-04-24 Thread Chaitra P B
Introduces Chain lookup table/tracker and implements accessing chain buffer using smid. Removed link list based access of chain buffer which requires lock and allocated as many chains needed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c

[PATCH v3 11/14] mpt3sas: Update MPI Headers

2018-04-24 Thread Chaitra P B
Update MPI Files to support protocol level reset for NVMe device. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2.h | 9 ++--- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 30 -- drivers/scsi/mpt3sas/mpi/mpi2_ioc.h

[PATCH v2 11/14] mpt3sas: Update MPI Headers

2018-04-09 Thread Chaitra P B
Update MPI Files to support protocol level reset for NVMe device. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2.h | 9 ++--- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 30 -- drivers/scsi/mpt3sas/mpi/mpi2_ioc.h

[PATCH v2 08/14] mpt3sas: Allow processing of events during driver unload.

2018-04-09 Thread Chaitra P B
Thus allowing driver unload to complete by processing drive removal events during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v2 02/14] mpt3sas: Pre-allocate RDPQ Array at driver boot time.

2018-04-09 Thread Chaitra P B
tion) and then freed during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +++-- drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git

[PATCH v2 00/14] mpt3sas: Enhancements and Defect fixes.

2018-04-09 Thread Chaitra P B
Chaitra P B (14): mpt3sas: Bug fix for big endian systems. mpt3sas: Pre-allocate RDPQ Array at driver boot time. mpt3sas: Lockless access for chain buffers. mpt3sas: Optimize I/O memory consumption in driver. mpt3sas: Enhanced handling of Sense Buffer. mpt3sas: Added support for SAS

[PATCH v2 14/14] mpt3sas: Update driver version "25.100.00.00"

2018-04-09 Thread Chaitra P B
Update driver version to match OOB/internal driver version. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas

[PATCH v2 03/14] mpt3sas: Lockless access for chain buffers.

2018-04-09 Thread Chaitra P B
Introduces Chain lookup table/tracker and implements accessing chain buffer using smid. Removed link list based access of chain buffer which requires lock and allocated as many chains needed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c

[PATCH v2 05/14] mpt3sas: Enhanced handling of Sense Buffer.

2018-04-09 Thread Chaitra P B
Enhanced DMA allocation for Sense Buffer, if the allocation does not fit within same 4GB.Introduced is_MSB_are_same function to check if allocted buffer within 4GB range or not. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 56

[PATCH v2 13/14] mpt3sas: fix possible memory leak.

2018-04-09 Thread Chaitra P B
turn causes memory leak. So call ctl_exit() function before unregistering mpt3sas driver. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c

[PATCH v2 06/14] mpt3sas: Added support for SAS Device Discovery Error Event.

2018-04-09 Thread Chaitra P B
The SAS Device Discovery Error Event is sent to the host when discovery for a particular device is failed during discovery, even after maximum retries by the IOC. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 drivers/scsi/mpt3sas

[PATCH v2 10/14] mpt3sas: Report Firmware Package Version from HBA Driver.

2018-04-09 Thread Chaitra P B
Added function _base_display_fwpkg_version, which sends FWUpload request to pull FW package version from FW Image Header. Now driver prints FW package version in addition to FW version if the PackageVersion is valid. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi

[PATCH v2 12/14] mpt3sas: For NVME device, issue a protocol level reset instead of hot reset and use TM timeout value exposed in PCIe Device Page 2.

2018-04-09 Thread Chaitra P B
in PCIe Device Page 2 for pcie device (field ControllerResetTO). Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 13 ++ drivers/scsi/mpt3sas/mpt3sas_base.h | 26 ++-- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 22 +-- drivers

[PATCH v2 04/14] mpt3sas: Optimize I/O memory consumption in driver.

2018-04-09 Thread Chaitra P B
and chain buffer size as 128 bytes, then number of chain buffers that can fit in PRP page is 4096/128 => 32. if the number of chain buffer need per IO exceeds 32; for example consider number of chains need per IO is 36 then for remaining 4 chain buffer's driver allocates them individual.

[PATCH v2 09/14] mpt3sas: Cache enclosure pages during enclosure add.

2018-04-09 Thread Chaitra P B
(During enclosure add event, enclosure device is added to the list and removed from the list on delete events) and uses the enclosure page from the list. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 22 +++ drivers/scsi/mpt3sas

[PATCH v2 07/14] mpt3sas: Increase event log buffer to support 24 port HBA's.

2018-04-09 Thread Chaitra P B
For 24 port HBA's events generated by IOC are more in certain cases and the current circular buffer may be overwritten.Hence increased the event log buffer to accommodate more events. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.h | 2

[PATCH v2 01/14] mpt3sas: Bug fix for big endian systems.

2018-04-09 Thread Chaitra P B
This patch fixes bug for big endian systems. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 6

[PATCH v1 15/15] mpt3sas: Update driver version "25.100.00.00"

2018-04-05 Thread Chaitra P B
Update driver version to match OOB/internal driver version. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas

[PATCH v1 14/15] mpt3sas: fix possible memory leak.

2018-04-05 Thread Chaitra P B
turn causes memory leak. So call ctl_exit() function before unregistering mpt3sas driver. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c

[PATCH v1 10/15] mpt3sas: Cache enclosure pages during enclosure add.

2018-04-05 Thread Chaitra P B
(During enclosure add event, enclosure device is added to the list and removed from the list on delete events) and uses the enclosure page from the list. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 22 +++ drivers/scsi/mpt3sas

[PATCH v1 11/15] mpt3sas: Report Firmware Package Version from HBA Driver.

2018-04-05 Thread Chaitra P B
Added function _base_display_fwpkg_version, which sends FWUpload request to pull FW package version from FW Image Header. Now driver prints FW package version in addition to FW version if the PackageVersion is valid. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi

[PATCH v1 13/15] mpt3sas: For NVME device, issue a protocol level reset instead of hot reset and use TM timeout value exposed in PCIe Device Page 2.

2018-04-05 Thread Chaitra P B
in PCIe Device Page 2 for pcie device (field ControllerResetTO). Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 13 ++ drivers/scsi/mpt3sas/mpt3sas_base.h | 26 ++-- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 22 +-- drivers

[PATCH v1 09/15] mpt3sas: Allow processing of events during driver unload.

2018-04-05 Thread Chaitra P B
Thus allowing driver unload to complete by processing drive removal events during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH v1 12/15] mpt3sas: Update MPI Headers

2018-04-05 Thread Chaitra P B
Update MPI Files to support protocol level reset for NVMe device. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2.h | 9 ++--- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 30 -- drivers/scsi/mpt3sas/mpi/mpi2_ioc.h

[PATCH v1 07/15] mpt3sas: Added support for SAS Device Discovery Error Event.

2018-04-05 Thread Chaitra P B
The SAS Device Discovery Error Event is sent to the host when discovery for a particular device is failed during discovery, even after maximum retries by the IOC. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 drivers/scsi/mpt3sas

[PATCH v1 06/15] mpt3sas: Enhanced handling of Sense Buffer.

2018-04-05 Thread Chaitra P B
Enhanced DMA allocation for Sense Buffer, if the allocation does not fit within same 4GB.Introduced is_MSB_are_same function to check if allocted buffer within 4GB range or not. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 56

[PATCH v1 08/15] mpt3sas: Increase event log buffer to support 24 port HBA's.

2018-04-05 Thread Chaitra P B
For 24 port HBA's events generated by IOC are more in certain cases and the current circular buffer may be overwritten.Hence increased the event log buffer to accommodate more events. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.h | 2

[PATCH v1 03/15] mpt3sas: Add sanity checks for scsi tracker before accessing it.

2018-04-05 Thread Chaitra P B
th for TMs issued from applications and also in host reset path where driver flushes all the outstanding commands as part of host reset operation. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 5 - drivers/scsi/mpt3sas/mpt3sas_scsih.c | 9

[PATCH v1 05/15] mpt3sas: Optimize I/O memory consumption in driver.

2018-04-05 Thread Chaitra P B
and chain buffer size as 128 bytes, then number of chain buffers that can fit in PRP page is 4096/128 => 32. if the number of chain buffer need per IO exceeds 32; for example consider number of chains need per IO is 36 then for remaining 4 chain buffer's driver allocates them individual.

[PATCH v1 00/15] mpt3sas: Enhancements and Defect fixes.

2018-04-05 Thread Chaitra P B
Chaitra P B (15): mpt3sas: Bug fix for big endian systems. mpt3sas: Pre-allocate RDPQ Array at driver boot time. mpt3sas: Add sanity checks for scsi tracker before accessing it. mpt3sas: Lockless access for chain buffers. mpt3sas: Optimize I/O memory consumption in driver. mpt3sas

[PATCH v1 04/15] mpt3sas: Lockless access for chain buffers.

2018-04-05 Thread Chaitra P B
Introduces Chain lookup table/tracker and implements accessing chain buffer using smid. Removed link list based access of chain buffer which requires lock and allocated as many chains needed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c

[PATCH v1 02/15] mpt3sas: Pre-allocate RDPQ Array at driver boot time.

2018-04-05 Thread Chaitra P B
tion) and then freed during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +++-- drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git

[PATCH v1 01/15] mpt3sas: Bug fix for big endian systems.

2018-04-05 Thread Chaitra P B
This patch fixes bug for big endian systems. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 6

[PATCH 03/15] mpt3sas: Add sanity checks for scsi tracker before accessing it.

2018-03-30 Thread Chaitra P B
Check scsi tracker for NULL before accessing it. And in some places there are possibilities for getting valid st but still other fields are not set. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 5 - drivers/scsi/mpt3sas

[PATCH 02/15] mpt3sas: Pre-allocate RDPQ Array at driver boot time.

2018-03-30 Thread Chaitra P B
tion) and then freed during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +++-- drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++ 2 files changed, 38 insertions(+), 22 deletions(-) diff --git

[PATCH 06/15] mpt3sas: Enhanced handling of Sense Buffer.

2018-03-30 Thread Chaitra P B
Enhanced DMA allocation for Sense Buffer, if the allocation does not fit within same 4GB.Introduced is_MSB_are_same function to check if allocted buffer within 4GB range or not. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57

[PATCH 05/15] mpt3sas: Optimize I/O memory consumption in driver.

2018-03-30 Thread Chaitra P B
and chain buffer size as 128 bytes, then number of chain buffers that can fit in PRP page is 4096/128 => 32. if the number of chain buffer need per IO exceeds 32; for example consider number of chains need per IO is 36 then for remaining 4 chain buffer's driver allocates them individual.

[PATCH 12/15] mpt3sas: Update MPI Headers

2018-03-30 Thread Chaitra P B
Update MPI Files to support protocol level reset for NVMe device. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2.h | 9 ++--- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h | 30 -- drivers/scsi/mpt3sas/mpi/mpi2_ioc.h

[PATCH 04/15] mpt3sas: Lockless access for chain buffers.

2018-03-30 Thread Chaitra P B
Introduces Chain lookup table/tracker and implements accessing chain buffer using smid. Removed link list based access of chain buffer which requires lock and allocated as many chains needed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c

[PATCH 13/15] mpt3sas: For NVME device, issue a protocol level reset instead of hot reset and use TM timeout value exposed in PCIe Device Page 2.

2018-03-30 Thread Chaitra P B
in PCIe Device Page 2 for pcie device (field ControllerResetTO). Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 13 ++ drivers/scsi/mpt3sas/mpt3sas_base.h | 26 ++-- drivers/scsi/mpt3sas/mpt3sas_ctl.c | 22 +-- drivers

[PATCH 09/15] mpt3sas: Allow processing of events during driver unload.

2018-03-30 Thread Chaitra P B
Thus allowing driver unload to complete by processing drive removal events during driver unload. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH 15/15] mpt3sas: Update driver version "25.100.00.00"

2018-03-30 Thread Chaitra P B
Update driver version to match OOB/internal driver version. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas

[PATCH 10/15] mpt3sas: Cache enclosure pages during enclosure add.

2018-03-30 Thread Chaitra P B
(During enclosure add event, enclosure device is added to the list and removed from the list on delete events) and uses the enclosure page from the list. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 22 +++ drivers/scsi/mpt3sas

[PATCH 11/15] mpt3sas: Report Firmware Package Version from HBA Driver.

2018-03-30 Thread Chaitra P B
Added function _base_display_fwpkg_version, which sends FWUpload request to pull FW package version from FW Image Header. Now driver prints FW package version in addition to FW version if the PackageVersion is valid. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi

[PATCH 14/15] mpt3sas: fix possible memory leak.

2018-03-30 Thread Chaitra P B
turn causes memory leak. So call ctl_exit() function before unregistering mpt3sas driver. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c

[PATCH 08/15] mpt3sas: Increase event log buffer to support 24 port HBA's.

2018-03-30 Thread Chaitra P B
For 24 port HBA's events generated by IOC are more in certain cases and the current circular buffer may be overwritten.Hence increased the event log buffer to accommodate more events. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_ctl.h | 2

[PATCH 07/15] mpt3sas: Added support for SAS Device Discovery Error Event.

2018-03-30 Thread Chaitra P B
The SAS Device Discovery Error Event is sent to the host when discovery for a particular device is failed during discovery, even after maximum retries by the IOC. In this patch driver unmask the events and displays the details associated with the event. Signed-off-by: Chaitra P B Signed-off-by

[PATCH 01/15] mpt3sas: Fixed warnings.

2018-03-30 Thread Chaitra P B
This patch fixes sparse warnings observed during compilation. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpi/mpi2_init.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 +- drivers/scsi/mpt3sas/mpt3sas_base.h

[PATCH 00/15] mpt3sas: Enhancements and Defect fixes.

2018-03-30 Thread Chaitra P B
Chaitra P B (15): mpt3sas: Fixed warnings. mpt3sas: Pre-allocate RDPQ Array at driver boot time. mpt3sas: Add sanity checks for scsi tracker before accessing it. mpt3sas: Lockless access for chain buffers. mpt3sas: Optimize I/O memory consumption in driver. mpt3sas: Enhanced handling

[PATCH] mpt3sas: Cache enclosure pages during enclosure add.

2018-03-20 Thread Chaitra P B
"mpt3sas_scsih_enclosure_find_by_handle", to get enclosure device and "mpt3sas_free_enclosure_list" frees the list. 3) And "_scsih_create_enclosure_list_after_reset" reconstructs the list after reset. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_b

[PATCH] mpt3sas: Proper handling of set/clear of "ATA command pending" flag.

2017-12-27 Thread Chaitra P B
. This patch fixes above two issues by setting of "ATA command pending" flag after checking for whether device deleted, invalid device handle, device busy with task management. And by setting "ATA command pending" flag to false in all of the qcmd failure return paths after set

[PATCH v3 3/4] mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test.

2017-01-23 Thread Chaitra P B
will be available for firmware and we won't observe this Firmware fault. We have defined this threshold value as 1/3rd of the hba queue depth. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 19 +++ 1 files change

[PATCH v3 2/4] mpt3sas: Fix for Crusader to achieve product targets with SAS devices.

2017-01-23 Thread Chaitra P B
Small glitch/degraded performance in Crusader is improved with SAS drives by removing unnecessary spinlocks while clearing scsi command in drivers internal lookup table. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c |1 + drivers/scsi

[PATCH v3 4/4] mpt3sas: Updating driver version to v15.100.00.00

2017-01-23 Thread Chaitra P B
Updated driver version to "15.100.00.00" Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S Reviewed-by: Johannes Thumshirn --- drivers/scsi/mpt3sas/mpt3sas_base.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas

[PATCH v3 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-23 Thread Chaitra P B
Driver processes the event MPI26_EVENT_ACTIVE_CABLE_DEGRADED when a cable is present and is running at a degraded speed (below the SAS3 12 Gb/s rate). Prints added to inform the user that the cable is not running at optimal speed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S

[PATCH v3 0/4] mpt3sas driver Enhancements and defect fixes:

2017-01-23 Thread Chaitra P B
15.100.00.00 Chaitra P B (4): mpt3sas: Added print to notify cable running at a degraded speed. mpt3sas: Fix for Crusader to achieve product targets with SAS devices. mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test. mpt3sas: Updating driver version

[PATCH v2 0/4] mpt3sas driver Enhancements and

2017-01-20 Thread Chaitra P B
15.100.00.00 Chaitra P B (4): mpt3sas: Added print to notify cable running at a degraded speed. mpt3sas: Fix for Crusader to achieve product targets with SAS devices. mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test. mpt3sas: Updating driver version

[PATCH v2 2/4] mpt3sas: Fix for Crusader to achieve product targets with SAS devices.

2017-01-20 Thread Chaitra P B
Small glitch/degraded performance in Crusader is improved with SAS drives by removing unnecessary spinlocks while clearing scsi command in drivers internal lookup table. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c |1 + drivers/scsi

[PATCH v2 4/4] mpt3sas: Updating driver version to v15.100.00.00

2017-01-20 Thread Chaitra P B
Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 83cfa16..4ab634f 100644 --- a

[PATCH v2 3/4] mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test.

2017-01-20 Thread Chaitra P B
will be available for firmware and we won't observe this Firmware fault. We have defined this threshold value as 1/3rd of the hba queue depth. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S --- drivers/scsi/mpt3sas/mpt3sas_base.c | 19 +++ 1 files change

[PATCH v2 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-20 Thread Chaitra P B
Driver processes the event MPI26_EVENT_ACTIVE_CABLE_DEGRADED when a cable is present and is running at a degraded speed (below the SAS3 12 Gb/s rate). Prints added to inform the user that the cable is not running at optimal speed. Signed-off-by: Chaitra P B Signed-off-by: Suganath Prabu S

[PATCH 0/4] mpt3sas driver Enhancements and

2017-01-19 Thread Chaitra P B
15.100.00.00 Chaitra P B (4): mpt3sas: Added print to notify cable running at a degraded speed. mpt3sas: Fix for Crusader to achieve product targets with SAS devices. mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test. mpt3sas: Bump driver

[PATCH 2/4] mpt3sas: Fix for Crusader to achieve product targets with SAS devices.

2017-01-19 Thread Chaitra P B
Small glitch/degraded performance in Crusader is improved with SAS drives by removing unnecessary spinlocks while clearing scsi command in drivers internal lookup table. Signed-off-by: Chaitra P B Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.c |1 + drivers/scsi

[PATCH 4/4] mpt3sas: Bump driver version to 15.100.00.00

2017-01-19 Thread Chaitra P B
Signed-off-by: Chaitra P B Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.h |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 83cfa16..4ab634f 100644 --- a/drivers

[PATCH 3/4] mpt3sas: Fix Firmware fault state 0x2100 during heavy 4K RR FIO stress test.

2017-01-19 Thread Chaitra P B
available for firmware and we won't observe this Firmware fault. We have defined this threshold value as 1/3rd of the hba queue depth. Signed-off-by: Chaitra P B Suganath Prabu --- drivers/scsi/mpt3sas/mpt3sas_base.c | 19 +++ 1 files changed, 19 inser

[PATCH 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-19 Thread Chaitra P B
Driver processes the event MPI26_EVENT_ACTIVE_CABLE_DEGRADED when a cable is present and is running at a degraded speed (below the SAS3 12 Gb/s rate). Prints added to inform the user that the cable is not running at optimal speed. Signed-off-by: Chaitra P B Suganath Prabu

[PATCH 4/6] mpt3sas: Updating mpt3sas driver version to 13.100.00.00

2016-05-06 Thread Chaitra P B
Bump mpt3sas driver version from 12.100.00.00 to 13.100.00.00 Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index 32580b5

[PATCH 1/6] mpt3sas: Update MPI header to 2.00.42

2016-05-06 Thread Chaitra P B
Updated MPI version and MPI header files. ChangeList: * Added SATADeviceWaitTime to SAS IO Unit Page 4 * Added EEDPObservedValue added to SCSI IO Reply message * Added MPI2_EVENT_ACTIVE_CABLE_EXCEPTION and MPI26_EVENT_DATA_ACTIVE_CABLE_EXCEPT Signed-off-by: Chaitra P B --- drivers/scsi

[PATCH 0/6] mpt3sas: driver update to Phase12.

2016-05-06 Thread Chaitra P B
RAID volumes to 4MB. * Use "synchronize_irq()"API to handle Asynchronous TM's completion. Chaitra P B (6): mpt3sas: Update MPI header to 2.00.42 mpt3sas: Handle active cable exception event mpt3sas: Fix initial Reference tag field for 4K PI drives. mpt3sas: Updating mpt3sas dr

[PATCH 5/6] mpt3sas: Set maximum transfer length per IO to 4MB for VDs

2016-05-06 Thread Chaitra P B
Set maximum transfer length per IO on RAID volumes to 4MB by setting VD's queue's max_sector to 8192. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.h | 2 ++ drivers/scsi/mpt3sas/mpt3sas_scsih.c | 8 2 files changed, 10 insertions(+) diff --git a/dr

[PATCH 3/6] mpt3sas: Fix initial Reference tag field for 4K PI drives.

2016-05-06 Thread Chaitra P B
Modified driver code to use scsi_prot_ref_tag() API instead of scsi_get_lba(), while initializing reference tag field in the CDB. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas

[PATCH 6/6] mpt3sas: Used "synchronize_irq()"API to synchronize timed-out IO & TMs

2016-05-06 Thread Chaitra P B
mpt3sas_base_sync_reply_irqs()make sures the other core has finished flushing the queue and completed any calls to the mid-layer scsi_done() routine. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 15 +++ drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++- drivers/scsi/mpt3sas

[PATCH 2/6] mpt3sas: Handle active cable exception event

2016-05-06 Thread Chaitra P B
t; This event is only for Intruder/Cutlass HBAs. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 5 + drivers/scsi/mpt3sas/mpt3sas_scsih.c | 13 + 2 files changed, 18 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mp

[PATCH 0/5] mpt3sas: driver update for Phase12

2016-04-22 Thread Chaitra P B
uot;API to handle Asynchronous TM's completion Chaitra P B (5): mpt3sas: Update MPI header to 2.00.42 mpt3sas: Handle active cable exception event mpt3sas: Fix initial Reference tag field for 4K PI drives. mpt3sas: Set maximum transfer length per IO to 4MB for VDs mpt3sas: Used "s

[PATCH 2/5] mpt3sas: Handle active cable exception event

2016-04-22 Thread Chaitra P B
t; This event is only for Intruder/Cutlass HBAs. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 5 + drivers/scsi/mpt3sas/mpt3sas_scsih.c | 13 + 2 files changed, 18 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mp

[PATCH 5/5] mpt3sas: Used "synchronize_irq()"API to synchronize timed-out IO & TMs

2016-04-22 Thread Chaitra P B
mpt3sas_base_sync_reply_irqs()make sures the other core has finished flushing the queue and completed any calls to the mid-layer scsi_done() routine. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.c | 15 +++ drivers/scsi/mpt3sas/mpt3sas_base.h | 3 ++- drivers/scsi/mpt3sas

[PATCH 4/5] mpt3sas: Set maximum transfer length per IO to 4MB for VDs

2016-04-22 Thread Chaitra P B
Set maximum transfer length per IO on RAID volumes to 4MB by setting VD's queue's max_sector to 8192. Signed-off-by: Chaitra P B --- drivers/scsi/mpt3sas/mpt3sas_base.h | 2 ++ drivers/scsi/mpt3sas/mpt3sas_scsih.c | 8 2 files changed, 10 insertions(+) diff --git a/dr

  1   2   >