[PATCH v2] scsi: Change sense buffer size to 252

2014-03-14 Thread Fam Zheng
According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the values. Tested by hacking QEMU to fake virtio-scsi request sense len to 252. Without this patch the driver stops working immediately when it gets the request. Signed-off-by: Fam Zheng f...@redhat.com ---

Re: [PATCH v2] scsi: Change sense buffer size to 252

2014-03-14 Thread Hannes Reinecke
On 03/14/2014 07:00 AM, Fam Zheng wrote: According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the values. Tested by hacking QEMU to fake virtio-scsi request sense len to 252. Without this patch the driver stops working immediately when it gets the request.

Update on LSF/MM [was Re: LSF/MM 2014 Call For Proposals]

2014-03-14 Thread James Bottomley
Hi everyone We're about three weeks out from LSF/MM, so the PC is putting together the agenda here: https://docs.google.com/spreadsheet/pub?key=0ArurRVMVCSnkdHU2Zk1KbFhmeVZFVmFMQ19nakJYaFEgid=0 The current list of attendees is:

Re: [PATCH v17 1/4] arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries

2014-03-14 Thread Arnd Bergmann
On Wednesday 12 March 2014, Loc Ho wrote: + sataphy1clk: sataphy1clk@1f21c000 { + compatible = apm,xgene-device-clock; + #clock-cells = 1; + clocks = socplldiv2 0; +

Re: [PATCH v17 2/4] Documentation: Add documentation for the APM X-Gene SoC SATA host controller DTS binding

2014-03-14 Thread Arnd Bergmann
On Wednesday 12 March 2014, Loc Ho wrote: +- clocks : Reference to the clock entry. +- phys : A list of phandles + phy-specifiers, one for each + entry in phy-names. +- phy-names: Should contain: + * sata-6g for the SATA

[PATCH] Kernel bug triggered in multipath

2014-03-14 Thread Hannes Reinecke
Starting multipath on a cciss device will cause a kernel warning to be triggered. Problem is that we're using the -queuedata field of the request_queue to derefence the scsi device; however, for other (non-SCSI) devices this points to a totally different structure. So we should rather be using

Re: [PATCH] Kernel bug triggered in multipath

2014-03-14 Thread Christoph Hellwig
On Fri, Mar 14, 2014 at 12:13:52PM +0100, Hannes Reinecke wrote: Starting multipath on a cciss device will cause a kernel warning to be triggered. Problem is that we're using the -queuedata field of the request_queue to derefence the scsi device; however, for other (non-SCSI) devices this

Re: [PATCH v17 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Arnd Bergmann
On Wednesday 12 March 2014, Loc Ho wrote: This patch adds support for the APM X-Gene SoC AHCI SATA host controller driver. It requires the corresponding APM X-Gene SoC PHY driver. This initial version only supports Gen3 speed. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Tuan Phan

Re: [PATCH v17 4/4] arm64: Add APM X-Gene SoC AHCI SATA host controller DTS entries

2014-03-14 Thread Arnd Bergmann
On Wednesday 12 March 2014, Loc Ho wrote: + sata01clk: sata01clk@1f21c000 { + compatible = apm,xgene-device-clock; + #clock-cells = 1; + clocks = socplldiv2 0; +

[PATCH][SCSI]mpt2sas: Description Patch

2014-03-14 Thread Reddy, Sreekanth
Please consider this patch set for next kernel release. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- [PATCH 01/11][SCSI]mpt2sas: Added driver module parameter max_msix_vectors. [PATCH 02/11][SCSI]mpt2sas: Added new driver module Parameter disable_eedp to Disable EEDP Support.

[PATCH 01/11][SCSI]mpt2sas: Added driver module parameter max_msix_vectors

2014-03-14 Thread Reddy, Sreekanth
Added driver module parameter max_msix_vectors. Using this module parameter the maximum number of MSI-X vectors could be set. The number of MSI-X vectors used would be the minimum of MSI-X vectors supported by the HBA, the number of CPU cores and the value set to max_msix_vectors module

[PATCH 06/11][SCSI]mpt2sas: Bump mpt2sas driver version to 17.100.00.00

2014-03-14 Thread Reddy, Sreekanth
Bump mpt2sas driver version to 17.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt2sas/mpt2sas_base.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h index

[PATCH 05/11][SCSI]mpt2sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced

2014-03-14 Thread Reddy, Sreekanth
Added code to send a SEP message that turns off the Predictive Failure LED when a drive is removed (if Predictive Failure LED was turned on). Added a new flag 'pfa_led_on' per device that tracks the status of Predictive Failure LED. When the drive is removed, this flag is checked and sends the

[PATCH 07/11][SCSI]mpt2sas: For 2TB volumes, DirectDrive support sends I/Os with LBA bit 31 to IR FW instead of DirectDrive

2014-03-14 Thread Reddy, Sreekanth
There was a down casting of the volume max LBA from a U64 to a U32, which is taken out and now the max LBA is set appropriately to U64. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt2sas/mpt2sas_scsih.c | 14 ++ 1 files changed, 10 insertions(+), 4

[PATCH 08/11][SCSI]mpt2sas: Added Reply Descriptor Post Queue (RDPQ) Array support

2014-03-14 Thread Reddy, Sreekanth
Up to now, Driver allocates a single contiguous block of memory pool for all reply queues and passes down a single address in the ReplyDescriptorPostQueueAddress field of the IOC Init Request Message to the firmware. When firmware receives this address, it will program each of the Reply

[PATCH 04/11][SCSI]mpt2sas: Copyright in driver sources is updated for year the 2014

2014-03-14 Thread Reddy, Sreekanth
Copyright in driver sources is updated for year the 2014. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt2sas/Kconfig |2 +- drivers/scsi/mpt2sas/mpt2sas_base.c |2 +- drivers/scsi/mpt2sas/mpt2sas_base.h |2 +-

[PATCH 02/11][SCSI]mpt2sas: Added new driver module Parameter disable_eedp to Disable EEDP Support

2014-03-14 Thread Reddy, Sreekanth
A new mpt2sas driver module parameter 'disable_eedp' is added to Disable EEDP support. By default DIF support is enabled in the driver and this module parameter would allow users to turn it off. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt2sas/mpt2sas_base.c |

[PATCH 03/11][SCSI]mpt2sas: MPI2 Rev Y (2.00.17) and Rev Z (2.00.18) specifications

2014-03-14 Thread Reddy, Sreekanth
Below is the change set in MPI2 Rev Y specification and in 2.00.17 header files 1) Added SCSIStatusQualifier to SCSI IO Error Reply message. 2) Added ATA Security Freeze Lock to IO Unit Page 1 Flags field. Below is the change set in MPI2 Rev Z specification and in 2.00.19 header files 1) Added

[PATCH 09/11][SCSI]mpt2sas: Get IOC_FACTS information using handshake protocol only after HBA card gets into READY or Operational state

2014-03-14 Thread Reddy, Sreekanth
The driver would send IOC facts only if HBA is in operational or ready state. If it is in fault state, a diagnostic reset would be issued. It would wait for 10 seconds to exit out of reset state. If the HBA continues to be in reset state, then the HBA wouldn't be claimed by the driver.

[PATCH 11/11][SCSI]mpt2sas: Bump mpt2sas driver version to 18.100.00.00

2014-03-14 Thread Reddy, Sreekanth
Bump mpt2sas driver version to 18.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt2sas/mpt2sas_base.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h index

Re: [PATCH RESEND 1/7] ipr: Remove extended delay bit on GSCSI reads/writes ops

2014-03-14 Thread Brian King
Ack patches 1-7 Acked-by: Brian King brk...@linux.vnet.ibm.com -- Brian King Power Linux I/O IBM Linux Technology Center -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH 10/11][SCSI]mpt2sas: Added module parameter 'unblock_io' to unblock IO's during disk addition

2014-03-14 Thread Reddy, Sreekanth
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 for a disk when it is undergoing addition in the SCSI Mid layer, the driver would

[PATCH 1/9][SCSI]mpt3sas: Added new driver module Parameter disable_eedp to Disable EEDP Support

2014-03-14 Thread Reddy, Sreekanth
A new mpt3sas driver module parameter 'disable_eedp' is added to Disable EEDP support. By default DIF support is enabled in the driver and this module parameter would allow users to turn it off. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt3sas/mpt3sas_base.c |

[PATCH][SCSI]mpt3sas: Description Patch

2014-03-14 Thread Reddy, Sreekanth
Please consider this patch set for next kernel release. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- [PATCH 1/9][SCSI]mpt3sas: Added new driver module Parameter disable_eedp to Disable EEDP Support. [PATCH 2/9][SCSI]mpt3sas: MPI2.5 Rev G (2.5.2) specifications. [PATCH

[PATCH 3/9][SCSI]mpt3sas: Clear PFA Status on SGPIO when PFA Drive is Removed or Replaced

2014-03-14 Thread Reddy, Sreekanth
Added code to send an SEP message that turns off the Predictive Failure LED when a drive is removed (if Predictive Failure LED was turned on). Added a new flag 'pfa_led_on' per device that tracks the status of Predictive Failure LED. When the drive is removed, this flag is checked and sends an

[PATCH 4/9][SCSI]mpt3sas: Bump mpt3sas driver version to v03.100.00.00

2014-03-14 Thread Reddy, Sreekanth
Bump mpt3sas driver version to 03.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt3sas/mpt3sas_base.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index

[PATCH 2/9][SCSI]mpt3sas: MPI2.5 Rev G (2.5.2) specifications

2014-03-14 Thread Reddy, Sreekanth
Below is the change set in MPI2.5 Rev G specification and 2.00.31 header files 1) Added SCSIStatusQualifier to SCSI IO Error Reply message. 2) Added ATA Security Freeze Lock to IO Unit Page 1 Flags field. 3) Added Allow Protection Information bit for IR Volume Create. Signed-off-by: Sreekanth

[PATCH 5/9][SCSI]mpt3sas: MPI2.5 Rev H (2.5.3) specifications

2014-03-14 Thread Reddy, Sreekanth
Below is the change set in MPI2.5 Rev H specification and 2.00.32 header files 1) Added reserved fields to IO Unit Page 7 for future use. 2) Added optional functionality to IOCInit Request so that the host may specify a separate base address for each Reply Descriptor Post Queue. IOC support

[PATCH 6/9][SCSI]mpt3sas: Copyright in driver sources is updated for year the 2014

2014-03-14 Thread Reddy, Sreekanth
Copyright in driver sources is updated for year the 2014. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt3sas/Kconfig|2 +- drivers/scsi/mpt3sas/mpi/mpi2.h |2 +- drivers/scsi/mpt3sas/mpi/mpi2_cnfg.h|2 +-

[PATCH 7/9][SCSI]mpt3sas: Added OEM branding Strings

2014-03-14 Thread Reddy, Sreekanth
Added following branding Strings for Intel custom HBAs support. Driver String: Vendor ID Device ID SubSystemVendor ID SubSystemDevice ID Intel(R) Integrated RAID Module RMS3JC080 0x1000 0x0097 0x8086

[PATCH 8/9][SCSI]mpt3sas: Added Reply Descriptor Post Queue (RDPQ) Array support

2014-03-14 Thread Reddy, Sreekanth
Up to now, Driver allocates a single contiguous block of memory pool for all reply queues and passes down a single address in the ReplyDescriptorPostQueueAddress field of the IOC Init Request Message to the firmware. When firmware receives this address, it will program each of the Reply

[PATCH 9/9][SCSI]mpt3sas: Bump mpt3sas driver version to v04.100.00.00

2014-03-14 Thread Reddy, Sreekanth
Bump mpt3sas driver version to 04.100.00.00. Signed-off-by: Sreekanth Reddy sreekanth.re...@lsi.com --- drivers/scsi/mpt3sas/mpt3sas_base.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index

Re: Kernel bug triggered in multipath

2014-03-14 Thread Mike Snitzer
On Fri, Mar 14 2014 at 7:15am -0400, Christoph Hellwig h...@infradead.org wrote: On Fri, Mar 14, 2014 at 12:13:52PM +0100, Hannes Reinecke wrote: Starting multipath on a cciss device will cause a kernel warning to be triggered. Problem is that we're using the -queuedata field of the

Re: Kernel bug triggered in multipath

2014-03-14 Thread Mike Snitzer
On Fri, Mar 14 2014 at 12:21pm -0400, Mike Snitzer snit...@redhat.com wrote: I have no problem with this patch, added safety-net and all, but bottomline: if scsi_dh interfaces were being called against a DM multipath request_queue that is a bug. Sorry, s/DM multipath request_queue/non-SCSI

[PATCH] [SCSI] scsi_error: really disable eh_deadline if no host_reset_handler is set

2014-03-14 Thread Ewan D. Milne
From: Ewan D. Milne emi...@redhat.com Commit 0d860641db6d49655b91cd08c8db5af74f88bcb5 (disable eh_deadline if no host_reset_handler is set) did not prevent eh_deadline from being set via sysfs if shost-transportt was NULL. That logic is incorrect. The logic should prevent setting eh_deadline

Re: [PATCH v17 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Loc Ho
Hi, On Wednesday 12 March 2014, Loc Ho wrote: This patch adds support for the APM X-Gene SoC AHCI SATA host controller driver. It requires the corresponding APM X-Gene SoC PHY driver. This initial version only supports Gen3 speed. Signed-off-by: Loc Ho l...@apm.com Signed-off-by:

Re: [PATCH v17 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Arnd Bergmann
On Friday 14 March 2014, Loc Ho wrote: On Wednesday 12 March 2014, Loc Ho wrote: gets called. Can you clarify what this register access does? If it's just setting a index into a mux output, would it make sense to have an optional DT property containing an integer with the mux setting

Re: [PATCH v5 3/3] scsi: async sd resume

2014-03-14 Thread Dan Williams
On Mon, Mar 10, 2014 at 11:29 PM, James Bottomley james.bottom...@hansenpartnership.com wrote: In the long game, though this whole debate is moot: setups with hard wired start times adhere to them regardless of what the system does, so they ignore start unit commands. Systems without hard

Re: [PATCH v17 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Loc Ho
Hi, gets called. Can you clarify what this register access does? If it's just setting a index into a mux output, would it make sense to have an optional DT property containing an integer with the mux setting you want to set? That way you wouldn't even have to have two compatible strings

Re: [PATCH 02/11][SCSI]mpt2sas: Added new driver module Parameter disable_eedp to Disable EEDP Support

2014-03-14 Thread Martin K. Petersen
Sreekanth == Reddy, Sreekanth sreekanth.re...@lsi.com writes: Sreekanth A new mpt2sas driver module parameter 'disable_eedp' is added Sreekanth to Disable EEDP support. By default DIF support is enabled in Sreekanth the driver and this module parameter would allow users to Sreekanth turn it off.

Re: [PATCH 08/11][SCSI]mpt2sas: Added Reply Descriptor Post Queue (RDPQ) Array support

2014-03-14 Thread Martin K. Petersen
Sreekanth == Reddy, Sreekanth sreekanth.re...@lsi.com writes: Sreekanth, Sreekanth The size of this contiguous block of memory pool is directly Sreekanth proportional to number of MSI-X vectors and the HBA queue Sreekanth depth. For example higher MSIX vectors requires larger Sreekanth

[PATCH v6 0/3] Accelerate Storage Resume (2x or more)

2014-03-14 Thread Dan Williams
Changes since v5: * Per Tejun, fixed up the naming of the ata_port helper routines * Cleaned up the return value of ata_port_pm helper routines to be 'void' * Per Tejun, added a check of whether async scanning is disabled to gate whether async resume will be performed out of caution for systems

[PATCH v6 2/3] libata: async resume

2014-03-14 Thread Dan Williams
From: Todd Brandt todd.e.bra...@linux.intel.com Improve overall system resume time by making libata link recovery actions asynchronous relative to other resume events. Link resume operations are performed using the scsi_eh thread, so commands, particularly the sd resume start/stop command, will

[PATCH v6 3/3] scsi: async sd resume

2014-03-14 Thread Dan Williams
async_schedule() sd resume work to allow disks and other devices to resume in parallel. This moves the entirety of scsi_device resume to an async context to ensure that scsi_device_resume() remains ordered with respect to the completion of the start/stop command. For the duration of the resume,

[PATCH v6 1/3] libata, libsas: kill pm_result and related cleanup

2014-03-14 Thread Dan Williams
Tejun says: At least for libata, worrying about suspend/resume failures don't make whole lot of sense. If suspend failed, just proceed with suspend. If the device can't be woken up afterwards, that's that. There isn't anything we could have done differently anyway. The same for

Re: [PATCH v17 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Loc Ho
Hi gets called. Can you clarify what this register access does? If it's just setting a index into a mux output, would it make sense to have an optional DT property containing an integer with the mux setting you want to set? That way you wouldn't even have to have two compatible

[PATCH 1/2] lib/scatterlist: Make ARCH_HAS_SG_CHAIN an actual Kconfig

2014-03-14 Thread Laura Abbott
Rather than have architectures #define ARCH_HAS_SG_CHAIN in an architecture specific scatterlist.h, make it a proper Kconfig option and use that instead. At same time, remove the header files are are now mostly useless and just include asm-generic/scatterlist.h. Cc: Russell King

[PATCH v18 2/4] Documentation: Add documentation for the APM X-Gene SoC SATA host controller DTS binding

2014-03-14 Thread Loc Ho
This patch adds documentation for the APM X-Gene SoC SATA host controller DTS binding. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Tuan Phan tp...@apm.com Signed-off-by: Suman Tripathi stripa...@apm.com --- .../devicetree/bindings/ata/apm-xgene.txt | 76 1

[PATCH v18 1/4] arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries

2014-03-14 Thread Loc Ho
This patch adds the DTS entries for the APM X-Gene SoC 15Gbps Multi-purpose PHY driver. The PHY for SATA controller 2 and 3 are enabled by default. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Tuan Phan tp...@apm.com Signed-off-by: Suman Tripathi stripa...@apm.com ---

[PATCH v18 0/4] ata: Add APM X-Gene SoC AHCI SATA host controller support

2014-03-14 Thread Loc Ho
This patch adds support for the APM X-Gene SoC AHCI SATA host controller. In order for the host controller to work, the corresponding PHY driver musts also be available. Currently, only Gen3 disk is supported with this initial version. v18: * Remove clock-name properity from dts nodes * Update

[PATCH v18 4/4] arm64: Add APM X-Gene SoC AHCI SATA host controller DTS entries

2014-03-14 Thread Loc Ho
This patch adds APM X-Gene SoC AHCI SATA host controller DTS entries. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Tuan Phan tp...@apm.com Signed-off-by: Suman Tripathi stripa...@apm.com --- arch/arm64/boot/dts/apm-storm.dtsi | 80 1 files changed, 80

[PATCH v18 3/4] ata: Add APM X-Gene SoC AHCI SATA host controller driver

2014-03-14 Thread Loc Ho
This patch adds support for the APM X-Gene SoC AHCI SATA host controller driver. It requires the corresponding APM X-Gene SoC PHY driver. This initial version only supports Gen3 speed. Signed-off-by: Loc Ho l...@apm.com Signed-off-by: Tuan Phan tp...@apm.com Signed-off-by: Suman Tripathi