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

2015-06-12 Thread Sumit Saxena
-Original Message- From: Tomas Henzl [mailto:the...@redhat.com] Sent: Thursday, June 11, 2015 7:26 PM To: sumit.sax...@avagotech.com; linux-scsi@vger.kernel.org Cc: martin.peter...@oracle.com; h...@infradead.org; jbottom...@parallels.com; kashyap.de...@avagotech.com Subject: Re: [PATCH]

[PATCH 06/20] [SCSI] mpt3sas: Provides the physical location of sas drives

2015-06-12 Thread Sreekanth Reddy
This Patch will provide more details of the devices such as slot number, enclosure logical id, enclosure level connector name in the following scenarios, - When end device is added in the topology, - When the end device is removed from the setup, - When the SCSI mid layer issues TASK ABORT/

[PATCH 07/20] [SCSI] mpt3sas: Bump mpt3sas Driver version to v5.100.00.00

2015-06-12 Thread Sreekanth Reddy
Bump mpt3sas Driver version to v5.100.00.00 Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- 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

[PATCH 13/20] [SCSI] mpt3sas: MPI 2.5 Rev K (2.5.6) specifications

2015-06-12 Thread Sreekanth Reddy
Below are the new changes to MPI 2.5 Rev K(2.5.6) specification and 2.00.35 header files 1) Added a minimum size requirement for target mode command buffers. 2) Added MinMSIxIndex and MaxMSIxIndex fields to CommandBufferPostBase Request. 3) For BIOS Page 1, added SSUTimeout field, and added

[PATCH 02/20] [SCSI] mpt3sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state.

2015-06-12 Thread Sreekanth Reddy
Driver initialization fails if driver tries to send IOC facts request message when the IOC is in reset or in a fault state. This patch will make sure that 1.Driver to send IOC facts request message only if HBA is in operational or ready state. 2.If IOC is in fault state, a diagnostic reset

Re: [PATCH] mvsas: always iounmap resources

2015-06-12 Thread Hannes Reinecke
On 05/22/2015 11:15 AM, Johannes Thumshirn wrote: In case pci_resource_start() or pci_resource_len() reutrn 0, mvsas_ioremap returns without doing an iounmap() of mvi-regs_ex. Found by the cocinelle tool. Signed-off-by: Johannes Thumshirn jthumsh...@suse.de ---

[PATCH 00/20] mpt3sas: driver update

2015-06-12 Thread Sreekanth Reddy
This patch set contains all the features and defect fixes from Phase4 to Phase8. Please review this patch set and consider these patches for next kernel release. Sreekanth Reddy (20): [SCSI] mpt3sas: Added Combined Reply Queue feature to extend up-to 96 MSIX vector support [SCSI] mpt3sas:

[PATCH 10/20] [SCSI] mpt3sas: Add branding string support for OEM's HBA

2015-06-12 Thread Sreekanth Reddy
Added the following Dell branding to the mpt3sas driver. VendorID DeviceID SubsystemVendor ID SubsystemDevice ID Dell Branding String 0x10000x0097 0x1028 0x1F46DELL 12Gbps HBA Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com ---

[PATCH 17/20] [SCSI] mpt3sas: Use alloc_ordered_workqueue() API instead of create_singlethread_workqueue() API

2015-06-12 Thread Sreekanth Reddy
Created a thread using alloc_ordered_workqueue() API in order to process the works from firmware Work-queue sequentially instead of create_singlethread_workqueue() API. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 7 ++- 1 file

[PATCH 19/20] [SCSI] mpt3sas: When device is blocked followed by unblock fails, unfreeze the I/Os

2015-06-12 Thread Sreekanth Reddy
Issue: When the disks are getting discovered and assigned device handles by the kernel, a device block followed by an unblock (due to broadcast primitives) issued by the driver is interspersed by the kernel changing the state of the device. Therefore the unblock by the driver results in a no

[PATCH 16/20] [SCSI] mpt3sas: Added support for customer specific branding

2015-06-12 Thread Sreekanth Reddy
Added support for below customer specific brandings VendorID DeviceID SubsystemVendor ID SubsystemDevice ID Cisco Branding String 0x1000 0x97 0x1137 0x154 Cisco 9300-8i 12Gbps SAS HBA 0x1000 0x97 0x1137 0x155

[PATCH 14/20] [SCSI] mpt3sas: Complete the SCSI command with DID_RESET status for log_info value 0x0x32010081

2015-06-12 Thread Sreekanth Reddy
For any SCSI command, if the driver receives IOC status = SCSI_IOC_TERMINATED and log info = 0x32010081 then that command will be completed with DID_RESET host status. The definition of this log info value is Virtual IO has failed and has to be retried. Firmware will provide this log info value

[PATCH 15/20] [SCSI] mpt3sas: Return host busy error status to SML when DMA mapping of scatter gather list fails for a SCSI command

2015-06-12 Thread Sreekanth Reddy
scsi_dma_map API will return a negative value (i.e. -ENOMEM) if DMA mapping of sg lists fails and zero if the sg list in the SCSI cmd is NULL. But drivers doesn't handled sg list DMA mapping failure case properly. So, Updated the code to return host busy error status to SCSI MID Layer(SML), when

[PATCH 20/20] [SCSI] mpt3sas : Bump mpt3sas driver version to 9.100.00.00

2015-06-12 Thread Sreekanth Reddy
Bump mpt3sas driver version to 9.100.00.00 Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- 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

[PATCH 18/20] [SCSI] mpt3sas: Call dma_mapping_error() API after mapping an address with dma_map_single() API

2015-06-12 Thread Sreekanth Reddy
Added dma_mapping_error() API after mapping an address with dma_map_single() API. Otherwise when CONFIG_DMA_API_DEBUG is enabled in the kernel, then it complains about mpt3sas driver not calling dma_mapping_error after mapping an address with dma_map_single Signed-off-by: Sreekanth Reddy

[PATCH 04/20] [SCSI] mpt3sas: Remove redundancy code while freeing the controller resources.

2015-06-12 Thread Sreekanth Reddy
Removed the redundancy code while freeing the controller resources. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 + 1 file changed, 32 insertions(+), 25 deletions(-) diff --git

[PATCH 01/20] [SCSI] mpt3sas: Added Combined Reply Queue feature to extend up-to 96 MSIX vector support

2015-06-12 Thread Sreekanth Reddy
In this patch, increased the number of MSIX vector support for SAS3 C0 HBAs to up-to 96. Following are changes that are done in this patch 1. Support this feature only for SAS3 C0 cards and also only when reply post free queue count is greater than 8. 2. Instead of using single

Re: [PATCH] scsi: retry MODE SENSE on unit attention

2015-06-12 Thread Hannes Reinecke
On 06/11/2015 05:07 PM, Ewan Milne wrote: On Thu, 2015-06-11 at 13:01 +0200, Hannes Reinecke wrote: The 'sd' driver is calling scsi_mode_sense() to figure out internal details. But scsi_mode_sense() never checks for any pending unit attentions, so we're getting annoying error messages like:

[PATCH 09/20] [SCSI] mpt3sas: MPI 2.5 Rev J (2.5.5) specification and 2.00.34 header files

2015-06-12 Thread Sreekanth Reddy
Following is the change set, 1. Added more defines for the BiosOptions field of MPI2_CONFIG_PAGE_BIOS_1. 2. Added MPI2_TOOLBOX_CLEAN_BIT26_PRODUCT_SPECIFIC definition. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- drivers/scsi/mpt3sas/mpi/mpi2.h | 5 +++--

[PATCH 11/20] [SCSI] mpt3sas: Add branding string support for OEM custom HBA

2015-06-12 Thread Sreekanth Reddy
Add the following OEM's branding to the mpt3sas driver. VendorID DeviceID SubsystemVendor ID SubsystemDevice ID Cisco Branding String 0x1000 0x97 SVID = 0x1137 0x014C Cisco 9300-8E 12G SAS HBA Signed-off-by: Sreekanth Reddy

[PATCH 05/20] [SCSI] mpt3sas: MPI 2.5 Rev I (2.5.4) specifications.

2015-06-12 Thread Sreekanth Reddy
Update MPI 2.5 Release: MPI 2.5 Rev I (2.5.4) specification and 2.00.33 header files Below is the change set from the MPI specification for I Rev 1) Added Base Enclosure Level bit to the Flags field of Manufacturing Page 7. 2) Updated description of the MaxTargetPortConnectTime field of SAS IO

[PATCH 12/20] [SCSI] mpt3sas: Bump mpt3sas driver version to v6.100.00.00

2015-06-12 Thread Sreekanth Reddy
Bump mpt3sas driver version to v6.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- 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

[PATCH 08/20] [SCSI] mpt3sas: Update MPI2 strings to MPI2.5

2015-06-12 Thread Sreekanth Reddy
Update MPI2 strings to MPI2.5. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- drivers/scsi/mpt3sas/mpt3sas_base.c | 3 +-- drivers/scsi/mpt3sas/mpt3sas_base.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c

[PATCH 03/20] [SCSI] mpt3sas: Don't block the drive when drive addition under the control of SML

2015-06-12 Thread Sreekanth Reddy
During hot-plugging of a disk(having a flaky link), the disk addition stops and any further disk addition or removal doesn't happen on that controller. This is because, when driver receives DELAY_NOT_RESPONDING event for a disk while it is undergoing addition at the SCSI Transport layer, the

Re: [PATCH 04/20] [SCSI] mpt3sas: Remove redundancy code while freeing the controller resources.

2015-06-12 Thread Sreekanth Reddy
On Fri, Jun 12, 2015 at 4:58 PM, Johannes Thumshirn jthumsh...@suse.de wrote: On Fri, Jun 12, 2015 at 03:12:16PM +0530, Sreekanth Reddy wrote: Removed the redundancy code while freeing the controller resources. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com ---

Re: [PATCH 01/20] [SCSI] mpt3sas: Added Combined Reply Queue feature to extend up-to 96 MSIX vector support

2015-06-12 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:13PM +0530, Sreekanth Reddy wrote: In this patch, increased the number of MSIX vector support for SAS3 C0 HBAs to up-to 96. Following are changes that are done in this patch 1. Support this feature only for SAS3 C0 cards and also only when reply post free

Re: [PATCH 01/20] [SCSI] mpt3sas: Added Combined Reply Queue feature to extend up-to 96 MSIX vector support

2015-06-12 Thread Sreekanth Reddy
Thanks Johannes, we will take care of this point in our current on-development mpt2sas/mpt3sas merging activity. Thanks, Sreekanth On Fri, Jun 12, 2015 at 4:39 PM, Johannes Thumshirn jthumsh...@suse.de wrote: On Fri, Jun 12, 2015 at 03:12:13PM +0530, Sreekanth Reddy wrote: In this patch,

Re: [PATCH 04/20] [SCSI] mpt3sas: Remove redundancy code while freeing the controller resources.

2015-06-12 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 03:12:16PM +0530, Sreekanth Reddy wrote: Removed the redundancy code while freeing the controller resources. Signed-off-by: Sreekanth Reddy sreekanth.re...@avagotech.com --- drivers/scsi/mpt3sas/mpt3sas_base.c | 57 + 1 file

Re: [PATCH 04/20] [SCSI] mpt3sas: Remove redundancy code while freeing the controller resources.

2015-06-12 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 05:48:56PM +0530, Sreekanth Reddy wrote: On Fri, Jun 12, 2015 at 4:58 PM, Johannes Thumshirn jthumsh...@suse.de wrote: On Fri, Jun 12, 2015 at 03:12:16PM +0530, Sreekanth Reddy wrote: Removed the redundancy code while freeing the controller resources.

Re: [PATCH 17/20] [SCSI] mpt3sas: Use alloc_ordered_workqueue() API instead of create_singlethread_workqueue() API

2015-06-12 Thread Joe Lawrence
On 06/12/2015 05:42 AM, Sreekanth Reddy wrote: ... +#if defined(alloc_ordered_workqueue) + ioc-firmware_event_thread = alloc_ordered_workqueue( + ioc-firmware_event_name, WQ_MEM_RECLAIM); +#else + ioc-firmware_event_thread = create_singlethread_workqueue(

[PATCH] mpt2sas: Abort initialization if no memory I/O resources, detected

2015-06-12 Thread Timothy Pearson
The mpt2sas driver crashes if the BIOS does not set up at least one memory I/O resource. This failure can happen if the device is too slow to respond during POST and is missed by the BIOS, but Linux then detects the device later in the boot process. This patch aborts initialization and prints a

lånetilbud

2015-06-12 Thread SUN EAST FEDERAL CREDIT UNION
Hallo Hilsen fra SUN EAST Federal Credit Union, er vi godt etablert og godkjent britiske lån selskaper, i løpet av årene har vi utviklet en god forståelse av dine behov og individuelle behov. vi forpliktet oss til å behandle våre kunder rettferdig og tilbyr en tjeneste som er profesjonell

[PATCH 1/1] [RFC] block: Add blk_max_rw_sectors attribute

2015-06-12 Thread Brian King
The commit bcdb247c6b6a1f3e72b9b787b73f47dd509d17ec sd: Limit transfer length added support for setting max_hw_sectors based on the block limits VPD page. As defined in the transfer limit table in the block limits VPD page section of SBC4, this value is only supposed to apply to a small subset of

Re: [PATCH] bfa: fix leak of bfad_im_port_index on module unload

2015-06-12 Thread Johannes Thumshirn
On Fri, Jun 12, 2015 at 01:50:45AM +0300, Alexey Khoroshilov wrote: Resources allocated within bfad_im_port_index idr are not deallocated on module unload. The patch adds idr_destroy() in exit function. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey

Re: [dm-devel] ALUA - rescan device capacity on zero sized block devices

2015-06-12 Thread Ewan Milne
On Thu, 2015-06-11 at 07:52 +0200, Hannes Reinecke wrote: On 06/10/2015 05:02 PM, Ewan Milne wrote: On Mon, 2015-04-20 at 07:58 +0200, Hannes Reinecke wrote: On 04/19/2015 12:56 AM, Christophe Varoqui wrote: About five years ago, we faced a somewhat simular issue with Symmetrix arrays,

Re: [PATCH] scsi: Add ALUA state change UA handling

2015-06-12 Thread Ewan Milne
Looking at this closely, I didn't get the SDEV_UA text right in my previous review comment, and I think that additional enum values really ought to be added to the end, after existing ones, and code that handles them should follow suit. So, here's an adjusted patch... -Ewan [PATCH]

Re: [dm-devel] ALUA - rescan device capacity on zero sized block devices

2015-06-12 Thread Ewan Milne
On Fri, 2015-06-12 at 11:17 -0400, Ewan Milne wrote: There's an interesting, somewhat-related issue I've come across with iSCSI storage, when an event happens while the connection is not established (i.e. link down, or logged out for some reason). The T10 spec says that UAs are supposed to be

Re: [PATCH] scsi: retry MODE SENSE on unit attention

2015-06-12 Thread Ewan Milne
On Fri, 2015-06-12 at 08:27 +0200, Hannes Reinecke wrote: On 06/11/2015 05:07 PM, Ewan Milne wrote: On Thu, 2015-06-11 at 13:01 +0200, Hannes Reinecke wrote: The 'sd' driver is calling scsi_mode_sense() to figure out internal details. But scsi_mode_sense() never checks for any pending

[PATCH] scsi: Increase number of retries for scsi_mode_sense()

2015-06-12 Thread Hannes Reinecke
As scsi_mode_sense() is now retrying for any UAs it needs potentially several retries to clear any UA status. So increase the number of retries to at least 5. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_transport_sas.c | 2 +- drivers/scsi/sr.c | 2 +- 2

[PATCH] scsi: retry MODE SENSE on unit attention

2015-06-12 Thread Hannes Reinecke
The 'sd' driver is calling scsi_mode_sense() to figure out internal details. But scsi_mode_sense() never checks for any pending unit attentions, so we're getting annoying error messages like: MODE SENSE: unimplemented page/subpage: 0x00/0x00 and a possible wrong decision for device cache