[Bug 60644] MPT2SAS drops all HDDs when under high I/O

2013-08-26 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=60644 Per Zetterlund changed: What|Removed |Added CC||p...@pz.se --- Comment #18 from Per Zett

[PATCH 18/29] qla2xxx: Remove handling of Shutdown Requested AEN from qlafx00_process_aen().

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index ae1d00c6..470f070 100644 --- a/driver

[PATCH 25/29] qla2xxx: Add a new interface to update versions.

2013-08-26 Thread Saurav Kashyap
From: Sawan Chandak On any Adapter when we flash through FC/FCoE without card reset option it still shows the Running FW version in Flashed FW version. This new interface will be used by API to instruct the driver to update its cache versions. Signed-off-by: Sawan Chandak Signed-off-by: Saurav

[PATCH 24/29] qla2xxx: Move queue depth ramp down message to i/o debug level.

2013-08-26 Thread Saurav Kashyap
From: Chad Dupuis Unless there is a need to observe them, the queue depth ramp up/down messages are a nuisance and may cause the system to become unresponsive so move it a non-default logging level. Signed-off-by: Chad Dupuis Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_os.c |

[PATCH 22/29] qla2xxx: Add loopback IDC-TIME-EXTEND aen handling support.

2013-08-26 Thread Saurav Kashyap
From: Santosh Vernekar Earlier IDC-TIME-EXTEND aen was a nop and ignored by driver. We now have to handle the aen so that other protocol drivers can use time extension during some loopback operations. Signed-off-by: Santosh Vernekar Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_b

[PATCH 06/29] qla2xxx: Perform warm reset every 2 minutes if firmware load fails for ISPFX00.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Acked-by: Srinivasa Rao Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index 7136bf5.

[PATCH 28/29] qla2xxx: print MAC via %pMR.

2013-08-26 Thread Saurav Kashyap
From: Andy Shevchenko Signed-off-by: Andy Shevchenko Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_attr.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index b1d32c4..5f174b8 100644 --

[PATCH 01/29] qla2xxx: Print some variables to hexadecimal string via %*phN format

2013-08-26 Thread Saurav Kashyap
From: Oleksandr Khoshaba The patch changes a specifier used to output some variables. Instead of using stack for each byte the '%*ph[CN]' allows to take a one pointer and prints entire buffer as a hexadecimal string with the separator ':' or ''. Signed-off-by: Oleksandr Khoshaba Signed-off-by:

[PATCH 21/29] qla2xxx: Set default critical temperature value in cases when ISPFX00 firmware doesn't provide it

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.c |4 +++- drivers/scsi/qla2xxx/qla_mr.h |3 +++ 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c i

[PATCH 23/29] qla2xxx: Select link initialization option bits from current operating mode.

2013-08-26 Thread Saurav Kashyap
From: Joe Carnuccio Signed-off-by: Joe Carnuccio Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mbx.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c index 1261884..c825d1d 100644 --- a/dr

[PATCH 08/29] qla2xxx: Remove QL_DEBUG_LEVEL_17 defines from qla_nx.c.

2013-08-26 Thread Saurav Kashyap
From: Chad Dupuis Signed-off-by: Chad Dupuis Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c |1 + drivers/scsi/qla2xxx/qla_nx.c | 14 -- 2 files changed, 1 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/ql

[PATCH 16/29] qla2xxx: Add changes in initialization for ISPFX00 cards with BIOS

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_def.h |1 + drivers/scsi/qla2xxx/qla_mr.c | 11 +++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/q

[PATCH 11/29] qla2xxx: Notify ISPFX00 firmware when driver is unloaded or system is shut down.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Acked-by: Srinivasa Rao Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_gbl.h |1 + drivers/scsi/qla2xxx/qla_mr.c |2 +- drivers/scsi/qla2xxx/qla_os.c |7 +++ 3 files changed, 9 insertions(+), 1 deletions(-) diff -

[PATCH 07/29] qla2xxx: Add ISPFX00 specific bus reset routine.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c |2 +- drivers/scsi/qla2xxx/qla_gbl.h |1 + drivers/scsi/qla2xxx/qla_mr.c | 23 +++ drivers/scsi/qla2xxx/qla_os.c |8 +--- 4 files changed,

[PATCH 12/29] qla2xxx: Add critical temperature handling for ISPFX00.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Acked-by: Srinivasa Rao Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c |6 +- drivers/scsi/qla2xxx/qla_def.h |1 + drivers/scsi/qla2xxx/qla_mr.c | 86 ++-- drivers/scsi/qla2xxx/ql

[PATCH 15/29] qla2xxx: Add changes to support extended IOs for ISPFX00

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.c |5 ++--- drivers/scsi/qla2xxx/qla_mr.h |3 +++ drivers/scsi/qla2xxx/qla_os.c | 10 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/drivers/scsi

[PATCH 13/29] qla2xxx: Make log message that prints when a completion status requires a port down more readable.

2013-08-26 Thread Saurav Kashyap
From: Chad Dupuis Signed-off-by: Chad Dupuis Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_isr.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index b4fb8a6..4a9782c 100644 --- a/driver

[PATCH 03/29] qla2xxx: Fix incorrect test after list_for_each_entry() exits.

2013-08-26 Thread Saurav Kashyap
From: Joe Carnuccio list_for_each_entry() never leaves the iterator pointing to null. Signed-off-by: Joe Carnuccio Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_bsg.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/dri

[PATCH 09/29] qla2xxx: Add setting of driver version string for vendor application.

2013-08-26 Thread Saurav Kashyap
From: Joe Carnuccio Signed-off-by: Joe Carnuccio Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c |2 +- drivers/scsi/qla2xxx/qla_def.h |1 + drivers/scsi/qla2xxx/qla_gbl.h |6 ++ drivers/scsi/qla2xxx/qla_init.c |5 ++ drivers/scsi/qla2xxx/qla_mbx.c | 106 +

[PATCH 29/29] qla2xxx: Update the driver version to 8.06.00.08-k.

2013-08-26 Thread Saurav Kashyap
Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_version.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h index 6c66d22..a808e29 100644 --- a/drivers/s

[PATCH 10/29] qla2xxx: Reconfigure thermal temperature.

2013-08-26 Thread Saurav Kashyap
From: Joe Carnuccio For supported ISPS, Read asic temperature by calling the GET PARAMS (type C) mailbox command. Signed-off-by: Joe Carnuccio Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_attr.c |6 drivers/scsi/qla2xxx/qla_dbg.c |4 ++- drivers/scsi/qla2xxx/qla_de

[PATCH 05/29] qla2xxx: Set factory reset recovery timeout to 10 min. for ISPFX00.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Acked-by: Srinivasa Rao Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_def.h |1 + drivers/scsi/qla2xxx/qla_mr.c |3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/driver

[PATCH 20/29] qla2xxx: QLAFX00 make over temperature AEN handling informational, add log for normal temperature AEN

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c |2 +- drivers/scsi/qla2xxx/qla_mr.c | 14 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2x

[PATCH 19/29] qla2xxx: Correct Interrupt Register offset for ISPFX00

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.h b/drivers/scsi/qla2xxx/qla_mr.h index 772860b..7b33416 100644 --- a/drivers/s

[PATCH 17/29] qla2xxx: Send all AENs for ISPFx00 to above layers.

2013-08-26 Thread Saurav Kashyap
From: Armen Baloyan Signed-off-by: Armen Baloyan Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_mr.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mr.c b/drivers/scsi/qla2xxx/qla_mr.c index 85587de..ae1d00c6 100644 --- a/driv

[PATCH 14/29] qla2xxx: Add missing FCP statistics to sysfs interface.

2013-08-26 Thread Saurav Kashyap
From: Joe Carnuccio Add the missing FCP statistics to sysfs. Add reset FCP statistics functionality via sysfs. Signed-off-by: Joe Carnuccio Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_attr.c | 25 - drivers/scsi/qla2xxx/qla_def.h | 10 -- dr

[PATCH 04/29] qla2xxx: Correct multiqueue offset calculations.

2013-08-26 Thread Saurav Kashyap
From: Andrew Vasquez Signed-off-by: Andrew Vasquez Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c | 17 ++--- drivers/scsi/qla2xxx/qla_def.h |5 ++--- drivers/scsi/qla2xxx/qla_mbx.c | 18 -- drivers/scsi/qla2xxx/qla_mid.c |2 ++ 4 files

[PATCH 27/29] qla2xxx: Correction to message ids.

2013-08-26 Thread Saurav Kashyap
Signed-off-by: Giridhar Malavali Signed-off-by: Saurav Kashyap --- drivers/scsi/qla2xxx/qla_dbg.c | 12 drivers/scsi/qla2xxx/qla_mr.c |2 +- drivers/scsi/qla2xxx/qla_nx2.c | 10 +- drivers/scsi/qla2xxx/qla_sup.c |2 +- 4 files changed, 15 insertions(+), 11 delet

[PATCH 00/29] Update driver to 8.06.00.08-k

2013-08-26 Thread Saurav Kashyap
Hi James, Please apply the following patches to the scsi tree, misc branch at your earliest convenience. Thanks, ~Saurav Andrew Vasquez (1): qla2xxx: Correct multiqueue offset calculations. Andy Shevchenko (1): qla2xxx: print MAC via %pMR. Armen Baloyan (12): qla2xxx: Set factory reset

[PATCH V2 0/3] scsi: ufs: Add support for clock and regulator initializaiton

2013-08-26 Thread Sujit Reddy Thumma
UFS HCI specificaiton allows the hardware vendors to have vendor specific configurations using a dedicated register space. Most of these register configurations are unique to each controller. The generic UFSHCD exports a set of useful vendor operations that can be used to configure the host control

[PATCH V2 1/3] scsi: ufs: Allow vendor specific initialization

2013-08-26 Thread Sujit Reddy Thumma
Some vendor specific controller versions might need to configure vendor specific - registers, clocks, voltage regulators etc. to initialize the host controller UTP layer and Uni-Pro stack. Provide some common initialization operations that can be used to configure vendor specifics. The methods can

[PATCH V2 3/3] scsi: ufs: Add clock initialization support

2013-08-26 Thread Sujit Reddy Thumma
Add generic clock initialization support for UFSHCD platform driver. The clock info is read from device tree using standard clock bindings. A generic max-clock-frequency-hz property is defined to save information on maximum operating clock frequency the h/w supports. Signed-off-by: Sujit Reddy Thu

[PATCH V2 2/3] scsi: ufs: Add regulator enable support

2013-08-26 Thread Sujit Reddy Thumma
UFS devices are powered by at most three external power supplies - - VCC - The flash memory core power supply, 2.7V to 3.6V or 1.70V to 1.95V - VCCQ - The controller and I/O power supply, 1.1V to 1.3V - VCCQ2 - Secondary controller and/or I/O power supply, 1.65V to 1.95V For some devices VCCQ or V

Re: [PATCH-v2 0/9] target: Add support for EXTENDED_COPY (VAAI) offload emulation

2013-08-26 Thread Nicholas A. Bellinger
On Mon, 2013-08-26 at 15:46 -0700, Zach Brown wrote: > On Mon, Aug 26, 2013 at 10:02:59PM +, Nicholas A. Bellinger wrote: > > From: Nicholas Bellinger > > > > Hi folks, > > > > This -v2 series adds support to target-core for generic EXTENDED_COPY > > offload > > emulation as defined by SPC-

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Martin K. Petersen
> "Sumit" == Saxena, Sumit writes: Sumit> LSI has megaraid_sas driver with big endian support for driver Sumit> version "06.506.00.00". But to add big endian support for latest Sumit> upstream megaraid_sas driver (06.600.18.00), we need to make some Sumit> more changes. There are a few very

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Martin K. Petersen
> "Sumit" == Saxena, Sumit writes: >> I realize that the big-endian patch from Martin isn't complete for >> fusion, but it is for other cards. Correct. I had no interest in Fury/Invader and no access to those boards. Sumit> Martin's patch does not have few changes needed in function Sumit

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Ben Collins
> We have done a code review of what has been proposed and we believe it is > incomplete. We don't think that in its current state it will serve Linux as > well as we all want it to. I fully appreciate you're intent, but I can't imagine how you can think that it wont serve Linux in it's curre

Re: [PATCH-v2 0/9] target: Add support for EXTENDED_COPY (VAAI) offload emulation

2013-08-26 Thread Zach Brown
On Mon, Aug 26, 2013 at 10:02:59PM +, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > Hi folks, > > This -v2 series adds support to target-core for generic EXTENDED_COPY offload > emulation as defined by SPC-4 using virtual (IBLOCK, FILEIO, RAMDISK) > backends. Cool, thanks for

RE: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Maloy, Joe
Chris and company, There is a reason for the delay. We have done a code review of what has been proposed and we believe it is incomplete. We don't think that in its current state it will serve Linux as well as we all want it to. My team has the ability to address this enhancement fully, but

[PATCH-v2 3/9] target: Make helpers non static for EXTENDED_COPY command setup

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Both target_alloc_sgl() and transport_generic_map_mem_to_cmd() are required by EXTENDED_COPY logic when setting up internally dispatched command descriptors, so go ahead and make both of these non static. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen C

[PATCH-v2 2/9] target: Make spc_parse_naa_6h_vendor_specific non static

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch makes spc_parse_naa_6h_vendor_specific() available to other target code, which is required by EXTENDED_COPY when comparing the received NAA WWN device identifer for locating the associated se_device backend. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Mart

[PATCH-v2 1/9] target: Make target_core_subsystem defined as non static

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch makes the top-level target_core_subsystem array available to other target code, which is required by EXTENDED_COPY to pin the backend se_device using configfs_depend_item(), in order to ensure it can't be removed for the duration of a EXTENDED_COPY operation.

[PATCH-v2 7/9] target: Enable EXTENDED_COPY setup in spc_parse_cdb

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Setup up the se_cmd->execute_cmd() pointers for EXTENDED_COPY and RECEIVE_COPY_RESULTS handling within spc_parse_cdb() Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: Roland Dreier Cc: Zach Brown Cc: James Bottomley Cc: Nicholas B

[PATCH-v2 5/9] target: Avoid non-existent tg_pt_gp_mem in target_alua_state_check

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds an check for a non-existent port->sep_alua_tg_pt_gp_mem within target_alua_state_check(), which is not present for internally dispatched EXTENDED_COPY WRITE I/O to the destination target port. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Peterse

[PATCH-v2 4/9] target: Add global device list for EXTENDED_COPY

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger EXTENDED_COPY needs to be able to search a global list of devices based on NAA WWN device identifiers, so add a simple g_device_list protected by g_device_mutex. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: Roland Dreier Cc: Zach

[PATCH-v2 9/9] target: Enable global EXTENDED_COPY setup/release

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Add calls to target_xcopy_setup_pt() + target_xcopy_release_pt() to target_core_init_configfs() and target_core_exit_configfs() respectively. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: Roland Dreier Cc: Zach Brown Cc: James Bo

[PATCH-v2 6/9] target: Add support for EXTENDED_COPY copy offload emulation

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds support for EXTENDED_COPY emulation from SPC-3, that enables full copy offload target support within both a single virtual backend device, and across multiple virtual backend devices. It also functions independent of target fabric, and supports copy offlo

[PATCH-v2 8/9] target: Add Third Party Copy (3PC) bit in INQUIRY response

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds the Third Party Copy (3PC) bit to signal support for EXTENDED_COPY within standard inquiry response data. Also add emulate_3pc device attribute in configfs (enabled by default) to allow the exposure of this bit to be disabled, if necessary. Cc: Christoph

[PATCH-v2 0/9] target: Add support for EXTENDED_COPY (VAAI) offload emulation

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi folks, This -v2 series adds support to target-core for generic EXTENDED_COPY offload emulation as defined by SPC-4 using virtual (IBLOCK, FILEIO, RAMDISK) backends. EXTENDED_COPY is a VMWare ESX VAAI primative that is used to perform copy offload, that allows a targe

[PATCH-v3 01/13] scsi: Add CDB definition for COMPARE_AND_WRITE

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: James Bottomley Cc: Nicholas Bellinger Signed-off-by: Nicholas Bellinger --- include/scsi/scsi.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/inc

[PATCH-v3 02/13] target: Add return for se_cmd->transport_complete_callback

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a sense_reason_t return to ->transport_complete_callback(), and updates target_complete_ok_work() to invoke the call if necessary to transport_send_check_condition_and_sense() during the failure case. Also update xdreadwrite_callback() to use this return

[PATCH-v3 04/13] target: Allow sbc_ops->execute_rw() to accept SGLs + data_direction

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger COMPARE_AND_WRITE expects to be able to send down a DMA_FROM_DEVICE to obtain the necessary READ payload for comparision against the first half of the WRITE payload containing the verify user data. Currently virtual backends expect to internally reference SGLs, SGL nents

[PATCH-v3 09/13] target: Make __target_execute_cmd() available as extern

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Required by COMPARE_AND_WRITE for write instance user-data submission, in order to bypass target_execute_cmd() checks. Reported-by: Christoph Hellwig Cc: Roland Dreier Cc: Nicholas Bellinger Signed-off-by: Nicholas Bellinger --- drivers/target/target_core_transport.

[PATCH-v3 05/13] target: Convert se_cmd->t_bidi_data_sg checks to use SCF_BIDI

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Stop keying off se_cmd->t_bidi_data_sg within transport_complete_qf() + target_complete_ok_work(), and just use SCF_BIDI instead. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc: James Bottomley Cc: Nicholas Bellinger Signed-off-by:

[PATCH-v3 06/13] target: Refactor transport_generic_get_mem to target_alloc_sgl

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch refactors transport_generic_get_mem() to target_alloc_sgl() for accepting **sgl, *nents, length and zero_page as function parameters in order to be used for both se_cmd->t_data_sg + se_cmd->t_bidi_data_sg allocations. Reported-by: Christoph Hellwig Cc: Christ

[PATCH-v3 03/13] target: Add TCM_MISCOMPARE_VERIFY sense handling

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds TCM_MISCOMPARE_VERIFY (ASC=0x1d, ASCQ=0x00) sense handling to transport_send_check_condition_and_sense(), which is required for a COMPARE_AND_WRITE comparision failure. Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Martin Petersen Cc: Chris Mason Cc:

[PATCH-v3 08/13] target: Add transport_reset_sgl_orig() for COMPARE_AND_WRITE

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger After COMPARE_AND_WRITE completes it's comparision, the WRITE payload SGLs head expect to be updated to point from the verify instance of user data, to the write instance of user data. So for this special case, add transport_reset_sgl_orig() usage within transport_free_p

[PATCH-v3 11/13] target: Add support for COMPARE_AND_WRITE emulation

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds support for COMPARE_AND_WRITE emulation on a per block basis. This logic is used as an atomic test and set primative currently used by VMWare ESX VAAI for performing array side locking of individual VMFS extent ownership. This includes the COMPARE_AND_WR

[PATCH-v3 12/13] target: Add compare_and_write_post() completion callback fall through

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch changes target_complete_ok_work() to fall through after calling the se_cmd->transport_complete_callback() -> compare_and_write_post() callback, by keying off the existance of SCF_COMPARE_AND_WRITE_POST. This is necessary because once SCF_COMPARE_AND_WRITE_POST

[PATCH-v3 10/13] target: Add MAXIMUM COMPARE AND WRITE LENGTH in Block Limits VPD

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds the MAXIMUM COMPARE AND WRITE LENGTH bit, currently hardcoded to a single logical block (NoLB=1) within the Block Limits VPD in spc_emulate_evpd_b0(). Also add emulate_caw device attribute in configfs (enabled by default) to allow the exposure of this bit

[PATCH-v3 13/13] target: Release COMPARE_AND_WRITE mutex in generic failure path

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch adds a extra check for SCF_COMPARE_AND_WRITE within transport_generic_request_failure() to invoke the callback for compare_and_write_callback() or compare_and_write_done(), in order to release se_dev->caw_mutex from the generic failure path. It also adds to ch

[PATCH-v3 07/13] target: Do memory allocation for bidi commands using target_alloc_sgl

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch updates transport_generic_new_cmd() to call target_alloc_sgl() for SGL + page memory allocation for se_cmd->t_bidi_data_sg. It also adds the special case for SCF_COMPARE_AND_WRITE to calculate a different bidi_length based upon se_cmd->t_task_nolb. Reported-b

[PATCH-v3 00/13] target: Add support for COMPARE_AND_WRITE (VAAI) emulation

2013-08-26 Thread Nicholas A. Bellinger
From: Nicholas Bellinger Hi folks, This series -v3 adds support to target-core for generic COMPARE_AND_WRITE emulation as defined by SBC-3 using virtual (IBLOCK, FILEIO, RAMDISK) backends. COMPARE_AND_WRITE is a VMWare ESX VAAI primitive that is currently used by VMFS to perform array side lock

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Christoph Hellwig
On Mon, Aug 26, 2013 at 04:26:30PM -0400, Ben Collins wrote: > Historically, waiting on commercial upstream to deliver what the community > has already done is wasted time. Likewise, historically, allowing patches > that partially implement things (in this respect, support one generation of > ca

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Christoph Hellwig
On Mon, Aug 26, 2013 at 02:15:42PM -0600, Maloy, Joe wrote: > > Chris, > > I would appreciate you toning down your rhetoric. Please keep it > professional. If the b word is not in your business dictionary I have no idea how you get any work done, and I really don't care if you feel offended or

Re: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Ben Collins
On Aug 26, 2013, at 4:15 PM, "Maloy, Joe" wrote: > Chris, > > I would appreciate you toning down your rhetoric. Please keep it > professional. > > What Sumit reported is correct. We are polling our Marketing and Product > management organizations to see if we want to productize this type of

Re: [PATCH] scsi disk: Use its own buffer for the vpd request

2013-08-26 Thread Bernd Schubert
Martin, sorry for my late reply, I entirely lost track of this (customer issues, vacation, lots of main work, ...). On 08/02/2013 05:00 AM, Martin K. Petersen wrote: >> "Bernd" == Bernd Schubert writes: > > Bernd, > > Bernd> Once I noticed that scsi_get_vpd_page() works fine from other > B

RE: State of big-endian for MegaRAID SAS driver

2013-08-26 Thread Maloy, Joe
Chris, I would appreciate you toning down your rhetoric. Please keep it professional. What Sumit reported is correct. We are polling our Marketing and Product management organizations to see if we want to productize this type of support in our MR Linux drivers. We would not submit upstream c

Re: [TRIVIAL PATCH 0/2] Fix warnings in kernel build

2013-08-26 Thread James Bottomley
On Mon, 2013-08-26 at 13:06 -0400, Ewan D. Milne wrote: > From: "Ewan D. Milne" > > The patch to add uevents for certain Unit Attention codes > had a couple of problems which were found by a kbuild test robot. > Sorry about that, I will be more careful next time. I already did both of these base

[TRIVIAL PATCH 0/2] Fix warnings in kernel build

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" The patch to add uevents for certain Unit Attention codes had a couple of problems which were found by a kbuild test robot. Sorry about that, I will be more careful next time. Ewan D. Milne (2): scsi: Add missing @sdev parameter description to scsi_report_sense() scsi:

[TRIVIAL PATCH 1/2] scsi: Add missing @sdev parameter description to scsi_report_sense()

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_error.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 598afd9..cf6fd20 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -241,6 +241

[TRIVIAL PATCH 2/2] scsi: Remove unused variable "flags" from scsi_report_sense()

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_error.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index cf6fd20..7f95236 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -248,7 +248,

"WRITE SAME failed. Manually zeroing" with mptsas driver

2013-08-26 Thread Florian Westphal
Hi. I get repeated "WRITE SAME" failed errors with "SAS1064ET" Controller (mptsas driver). Excerpt: [ 5898.784829] Sense Key : 0x5 [current] [ 5898.784833] sd 6:1:0:0: [sda] [ 5898.784835] ASC=0x0 ASCQ=0x0 [ 5898.784837] sd 6:1:0:0: [sda] CDB: [ 5898.784838] cdb[0]=0x41: 41 00 07 4f db 12 00 00

[PATCH 5/5] scsi: Rename scsi_evt_thread() to scsi_evt_work()

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" The scsi_evt_thread() function is not actually a thread, it is a work function. So it should be named scsi_evt_work() instead. Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_lib.c | 4 ++-- drivers/scsi/scsi_priv.h | 1 + drivers/scsi/scsi_scan.c | 3 +-- 3 files ch

[PATCH 3/5] scsi: Add missing newline to scsi_sysfs.c

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" show_iostat_counterbits() is obviously missing a newline in the function declaration. Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c ind

[PATCH 2/5] scsi: Correct size of envp[]

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" The envp[] array in scsi_evt_emit() only needs to have 2 entries. Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index f6499db..6585049 100644 -

[PATCH 4/5] scsi: Change to use list_for_each_entry_safe

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" scsi_device_dev_release_usercontext() should be using "list_for_each_entry_safe" instead of "list_for_each_safe". Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_sysfs.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/scsi_sysfs.

[PATCH 1/5] scsi: Fix incorrect function name in comment

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" The function name is "scsi_evt_emit", not "sdev_evt_emit". Signed-off-by: Ewan D. Milne --- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 6dfb978..f6499db 100644 --- a/dr

[PATCH 0/5] Patches to clean up SCSI code

2013-08-26 Thread Ewan D. Milne
From: "Ewan D. Milne" This is a set of 5 patches to clean up the SCSI code. They consist of various things found during development and review of some changes for Unit Attention handling (which was submitted as a separate patch). Ewan D. Milne (5): scsi: Fix incorrect function name in comment

[PATCH v3 5/6] scsi: ufs: add operation for the uic power mode change

2013-08-26 Thread Seungwon Jeon
Setting PA_PWRMode using DME_SET triggers the power mode change. And then the result will be given by the HCS.UPMCRS. This operation should be done atomically. Signed-off-by: Seungwon Jeon --- drivers/scsi/ufs/ufshcd.c | 84 ++-- drivers/scsi/ufs/ufshcd.

[PATCH v3 1/6] scsi: ufs: find out sense data over scsi status values

2013-08-26 Thread Seungwon Jeon
Unlike 'GOOD' and 'CHECK CONDITION', other status values in Response UPIU may or may not contain sense data. That is returning sense data isn't obvious. So, in this case the Data Segment Length field should be checked. If a non-zero value, it means that UPIU has Sense Data in the Data Segment area.

[PATCH v3 3/6] scsi: ufs: add dme configuration primitives

2013-08-26 Thread Seungwon Jeon
Implements to support GET and SET operations of the DME. These operations are used to configure the behavior of the UNIPRO. Along with basic operation, {Peer/AttrSetType} can be mixed. Signed-off-by: Seungwon Jeon Reviewed-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 88 ++

[PATCH v3 0/6] scsi: ufs: some fixes and updates

2013-08-26 Thread Seungwon Jeon
This path series contain driver's fixes and updates. Changes in v3: - Rebased with scsi-next Changes in v2: - [scsi: ufs: amend the ocs handling with fatal error] is excluded. Host behavior needs to be defined clearly in UFSHCI specification. - Some minor changes are applied with comments fro

[PATCH v3 6/6] scsi: ufs: configure the attribute for power mode

2013-08-26 Thread Seungwon Jeon
UIC attributes can be set with using DME_SET command for power mode change. For configuration the link capability attributes are used, which is updated after successful link startup. Signed-off-by: Seungwon Jeon Reviewed-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 66

[PATCH v3 2/6] scsi: ufs: fix the setting interrupt aggregation counter

2013-08-26 Thread Seungwon Jeon
IACTH(Interrupt aggregation counter threshold) value is allowed up to 0x1F and current setting value is the maximum. This value is related with NUTRS(max:0x20) of HCI's capability. Considering HCI controller doesn't support the maximum, IACTH setting should be adjusted with possible value. For that

[PATCH v3 4/6] scsi: ufs: add unipro attribute IDs

2013-08-26 Thread Seungwon Jeon
'drivers/scsi/ufs/unipro.h' is added. Attributes in the layers of the UNIPRO stack can be read and written via the DME. Signed-off-by: Seungwon Jeon Reviewed-by: Subhash Jadavani --- drivers/scsi/ufs/unipro.h | 130 + 1 files changed, 130 insertions(

[PATCH 2/2] scsi: replace the deprecated flush_work_sync

2013-08-26 Thread Seungwon Jeon
flush_work_sync is replaced by flush_work with commit 4382973(workqueue: deprecate flush[_delayed]_work_sync()). Signed-off-by: Seungwon Jeon --- drivers/scsi/arcmsr/arcmsr_hba.c |4 ++-- drivers/scsi/ufs/ufshcd.c|2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/2] scsi: fix warning with unused variable

2013-08-26 Thread Seungwon Jeon
drivers/scsi/scsi_error.c:246:16: warning: unused variable 'flags' [-Wunused-variable] Signed-off-by: Seungwon Jeon --- drivers/scsi/scsi_error.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index f16d1a6..83e591b

[PATCH 0/2] scsi_debug: bug fixes for certain module parameters

2013-08-26 Thread Akinobu Mita
Hi James, Please consider to apply these patches to your tree. These patches are subset of the patch set I sent before: http://marc.info/?l=linux-scsi&m=137388918402750&w=2 I'm sending the patches which have been acked by the appropriate reviewers. The rest of the patches need some rework, and I'

[PATCH 1/2] scsi_debug: fix endianness bug in sdebug_build_parts()

2013-08-26 Thread Akinobu Mita
With module parameter num_parts > 0, partition table is built on the ramdisk storage when loading the driver. Unfortunately, there is an endianness bug in sdebug_build_parts(). So the partition table is not correctly initialized on big-endian systems. Signed-off-by: Akinobu Mita Acked-by: Marti

[PATCH 2/2] scsi_debug: fix logical block provisioning support when unmap_alignment != 0

2013-08-26 Thread Akinobu Mita
Commit b90ebc3d5c41c9164ae04efd2e4f8204c2a186f1 ("[SCSI] scsi_debug: fix logical block provisioning support") fixed several issues with logical block provisioning support, but it still doesn't properly fix the cases when unmap_alignment > 0. For example, load scsi_debug module with the following m

Re: [PATCH 1/3] arcmsr: Support Areca new SATA Raid Adapter ARC1214/1224/1264/1284

2013-08-26 Thread Tomas Henzl
On 08/26/2013 06:14 AM, 黃清隆 wrote: > From: Ching > > Support Areca new SATA Raid adapter ARC1214/1224/1264/1284. > Modify maximum outstanding command number, notify command complete with auto > request sense > Signed-off-by: Ching Hi Ching, +static bool +arcmsr_hbaD_get_config(struct AdapterCo

Re: [PATCH 1/3] hpsa: remove unneeded loop

2013-08-26 Thread Tomas Henzl
Hi James, I've gotten mail that you have accepted patches 2/3 and 3/3 from this series. This one has been accepted by Steve also, so please consider taking also this 1/3. Thanks, Tomas On 08/01/2013 03:11 PM, Tomas Henzl wrote: > From: Tomas Henzl > > The cmd_pool_bits is protected everywhe

RE: [PATCH 0/2] mpt{2,3}sas remove disconnected phys on topology change

2013-08-26 Thread Reddy, Sreekanth
Hi James, This patch set seem to be fine. Please consider this patch set. Regards, Sreekanth >-Original Message- >From: Jan Vesely [mailto:jves...@redhat.com] >Sent: Thursday, August 01, 2013 3:31 PM >To: linux-scsi@vger.kernel.org; linux-ker...@vger.kernel.org >Cc: Jan Vesely; Nandigama

Re: [PATCH 3/3] arcmsr: Fix bug of updating adapter firmware through ioctl(ARCHTTP) interface

2013-08-26 Thread James Bottomley
On Mon, 2013-08-26 at 12:28 +0800, 黃清隆 wrote: > From: Ching > > Fix bug of updating adapter firmware through ioctl(ARCHTTP) interface. > Signed-off-by: Ching > --- This one has a set of nasty checkpatch errors: WARNING: please, no spaces at the start of a line #31: FILE: drivers/scsi/arcmsr/ar

Re: [PATCH 1/3] arcmsr: Support Areca new SATA Raid Adapter ARC1214/1224/1264/1284

2013-08-26 Thread James Bottomley
On Mon, 2013-08-26 at 12:14 +0800, 黃清隆 wrote: > From: Ching > > Support Areca new SATA Raid adapter ARC1214/1224/1264/1284. > Modify maximum outstanding command number, notify command complete with auto > request sense > Signed-off-by: Ching Checkpatch really doesn't like this: total: 1 erro

Re: [RFC PATCH] scsi: Add failfast mode to avoid infinite retry loop

2013-08-26 Thread Eiichi Tsukata
(2013/08/23 21:26), Ric Wheeler wrote: On 08/23/2013 05:10 AM, Eiichi Tsukata wrote: (2013/08/21 3:09), Ewan Milne wrote: On Tue, 2013-08-20 at 16:13 +0900, Eiichi Tsukata wrote: (2013/08/19 23:30), James Bottomley wrote: On Mon, 2013-08-19 at 18:39 +0900, Eiichi Tsukata wrote: Hello, This

Re: [PATCH v4 00/10] SCSI: esas2r: ATTO Technology ExpressSAS 6G SAS/SATA RAID Adapter Driver

2013-08-26 Thread James Bottomley
On Fri, 2013-08-23 at 10:35 -0400, Bradley Grove wrote: > This is a new driver for ATTO Technology's ExpressSAS series of > hardware RAID > adapters. It supports the following adapters: > > - ExpressSAS R60F > - ExpressSAS R680 > - ExpressSAS R608 > - ExpressSAS R644 OK, I put t

Re: [RFC PATCH] scsi: Add failfast mode to avoid infinite retry loop

2013-08-26 Thread Eiichi Tsukata
(2013/08/24 4:36), Ewan Milne wrote: On Fri, 2013-08-23 at 06:19 -0700, James Bottomley wrote: On Fri, 2013-08-23 at 18:10 +0900, Eiichi Tsukata wrote: Yes, basically the device should be offlined on error detection. Just offlining the disk is enough when an error occurs on "not" os-installed s

Re: [RFC PATCH] scsi: Add failfast mode to avoid infinite retry loop

2013-08-26 Thread Eiichi Tsukata
(2013/08/23 22:19), James Bottomley wrote: On Fri, 2013-08-23 at 18:10 +0900, Eiichi Tsukata wrote: (2013/08/21 3:09), Ewan Milne wrote: On Tue, 2013-08-20 at 16:13 +0900, Eiichi Tsukata wrote: (2013/08/19 23:30), James Bottomley wrote: On Mon, 2013-08-19 at 18:39 +0900, Eiichi Tsukata wrote:

  1   2   >