[patch] [SCSI] mvsas: fix a sparse annotation

2013-04-17 Thread Dan Carpenter
It doesn't make sense to label a 22 bit bitfield as __le32. It just causes a Sparse error. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/scsi/mvsas/mv_94xx.h b/drivers/scsi/mvsas/mv_94xx.h index 487aa6f..b11f90d 100644 --- a/drivers/scsi/mvsas/mv_94xx.h +++

[patch] [SCSI] libosd: remover duplicate __bitwise annotation

2013-04-17 Thread Dan Carpenter
__be32 is already a __bitwise type so we don't need the second __bitwise here. It causes a Sparse error: include/scsi/osd_protocol.h:110:26: error: invalid modifier Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/include/scsi/osd_protocol.h b/include/scsi/osd_protocol.h index

Re: [osd-dev] [patch] [SCSI] libosd: remover duplicate __bitwise annotation

2013-04-17 Thread Benny Halevy
On 2013-04-17 10:19, Dan Carpenter wrote: __be32 is already a __bitwise type so we don't need the second __bitwise here. It causes a Sparse error: include/scsi/osd_protocol.h:110:26: error: invalid modifier Signed-off-by: Dan Carpenter dan.carpen...@oracle.com ACK diff --git

[PATCH 0/5] qla4xxx: Updates for scsi misc branch

2013-04-17 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com James, Please apply the following patches to the scsi tree at your earliest convenience. Adheer Chandravanshi (2): qla4xxx: Fix smatch warnings qla4xxx: Assign values using correct datatype Vikas Chaudhary (3): qla4xxx:

[PATCH 1/5] qla4xxx: Silence gcc warning

2013-04-17 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Fix followig gcc warning:- drivers/scsi/qla4xxx/ql4_os.c: In function ‘qla4xxx_sysfs_ddb_get_param’: drivers/scsi/qla4xxx/ql4_os.c:6279: warning: comparison is always true due to limited range of data type drivers/scsi/qla4xxx/ql4_os.c:6290:

[PATCH 3/5] qla4xxx: Fix smatch warnings

2013-04-17 Thread vikas . chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Fix following smatch warnings:- drivers/scsi/qla4xxx/ql4_os.c:6573 qla4xxx_sysfs_ddb_set_param() warn: possible memory leak of 'fw_ddb_entry' drivers/scsi/qla4xxx/ql4_os.c:6596 qla4xxx_sysfs_ddb_delete() warn: variable dereferenced before

[PATCH 5/5] qla4xxx: Update driver version to 5.03.00-k9

2013-04-17 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_version.h b/drivers/scsi/qla4xxx/ql4_version.h index

[PATCH 4/5] qla4xxx: Assign values using correct datatype

2013-04-17 Thread vikas . chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Assign values using correct datatype in function qla4xxx_copy_to_fwddb_param() Signed-off-by: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com ---

[PATCH 2/5] qla4xxx: Fix sparse warning for qla4xxx_sysfs_ddb_tgt_create

2013-04-17 Thread vikas . chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Fix following warning: drivers/scsi/qla4xxx/ql4_os.c:5507:5: warning: symbol 'qla4xxx_sysfs_ddb_tgt_create' was not declared. Should it be static? Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_os.c | 6

PING^4 aka The Jon Corbet Effect Re: [PATCH v2 00/14] Corrections and customization of the SG_IO command whitelist (CVE-2012-4542)

2013-04-17 Thread Paolo Bonzini
And a fourth ping comes... Jon, the next time I read it seems likely to be picked up fairly soon (http://lwn.net/Articles/535075/), I'll picture the author of the patch attempting open-heart surgery on a long-red-haired voodoo doll! Paolo Il 04/04/2013 20:18, Paolo Bonzini ha scritto: Il

[PATCH 1/1] ipr: Need to reset adapter after the 6th EEH error

2013-04-17 Thread wenxiong
Add reset adapter after the 6th EEH errors in ipr driver. This triggers the adapter reset via the PCI config space even when the slot is frozen. Signed-off-by: Wen Xiong wenxi...@linux.vnet.ibm.com --- drivers/scsi/ipr.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-)

[PATCH 0/1] ipr: Need to reset adapter after the 6th EEH error

2013-04-17 Thread wenxiong
After errinjct the 6th EEH error on adapter, disk configuration not restore. This patch fixes ths issue. Thanks, Wendy -- -- 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

Re: [PATCH 1/1] ipr: Need to reset adapter after the 6th EEH error

2013-04-17 Thread Brian King
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

Re: [PATCH 4/4] Simple correctness and speed test for CRCT10DIF hash

2013-04-17 Thread Jussi Kivilinna
On 16.04.2013 19:20, Tim Chen wrote: These are simple tests to do sanity check of CRC T10 DIF hash. The correctness of the transform can be checked with the command modprobe tcrypt mode=47 The speed of the transform can be evaluated with the command modprobe tcrypt mode=320

Re: [PATCH 4/4] Simple correctness and speed test for CRCT10DIF hash

2013-04-17 Thread Tim Chen
On Wed, 2013-04-17 at 20:58 +0300, Jussi Kivilinna wrote: On 16.04.2013 19:20, Tim Chen wrote: These are simple tests to do sanity check of CRC T10 DIF hash. The correctness of the transform can be checked with the command modprobe tcrypt mode=47 The speed of the transform can be

Re: [PATCH 2/4] Accelerated CRC T10 DIF computation with PCLMULQDQ instruction

2013-04-17 Thread Tim Chen
On Wed, 2013-04-17 at 20:58 +0300, Jussi Kivilinna wrote: On 16.04.2013 19:20, Tim Chen wrote: This is the x86_64 CRC T10 DIF transform accelerated with the PCLMULQDQ instructions. Details discussing the implementation can be found in the paper: Fast CRC Computation for Generic

Re: [Patch 1/1] cciss: bug fix, prevent cciss from loading in kdump kernel

2013-04-17 Thread Andrew Morton
On Mon, 15 Apr 2013 12:59:06 -0500 Mike Miller mike.mil...@hp.com wrote: Patch 1/1 If hpsa is selected as the Smart Array driver cciss may try to load in the kdump kernel. When this happens kdump fails and a core file cannot be created. This patch prevents cciss from trying to load in this

[PATCH v2 0/4] Patchset to use PCLMULQDQ to accelerate CRC-T10DIF checksum computation

2013-04-17 Thread Tim Chen
Currently the CRC-T10DIF checksum is computed using a generic table lookup algorithm. By switching the checksum to PCLMULQDQ based computation, we can speedup the computation by 8x for checksumming 512 bytes and even more for larger buffer size. This will improve performance of SCSI drivers

[PATCH v2 1/4] Wrap crc_t10dif function all to use crypto transform framework

2013-04-17 Thread Tim Chen
When CRC T10 DIF is calculated using the crypto transform framework, we wrap the crc_t10dif function call to utilize it. This allows us to take advantage of any accelerated CRC T10 DIF transform that is plugged into the crypto framework. Signed-off-by: Tim Chen tim.c.c...@linux.intel.com ---

[PATCH v2 3/4] Glue code to cast accelerated CRCT10DIF assembly as a crypto transform

2013-04-17 Thread Tim Chen
Glue code that plugs the PCLMULQDQ accelerated CRC T10 DIF hash into the crypto framework. The config CRYPTO_CRCT10DIF_PCLMUL should be turned on to enable the feature. The crc_t10dif crypto library function will use this faster algorithm when crct10dif_pclmul module is loaded. Signed-off-by:

[PATCH v2 2/4] Accelerated CRC T10 DIF computation with PCLMULQDQ instruction

2013-04-17 Thread Tim Chen
This is the x86_64 CRC T10 DIF transform accelerated with the PCLMULQDQ instructions. Details discussing the implementation can be found in the paper: Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction

[PATCH v2 4/4] Simple correctness and speed test for CRCT10DIF hash

2013-04-17 Thread Tim Chen
These are simple tests to do sanity check of CRC T10 DIF hash. The correctness of the transform can be checked with the command modprobe tcrypt mode=47 The speed of the transform can be evaluated with the command modprobe tcrypt mode=320 Set the cpu frequency to constant and turn

[PATCH] [SCSI] mvumi: fix error return code in mvumi_io_attach()

2013-04-17 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as returned elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/scsi/mvumi.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 0/22] lpfc 8.3.39: Update lpfc to revision 8.3.39

2013-04-17 Thread James Smart
This patch set updates the lpfc driver to revision 8.3.39 The patches for 8.3.39 contain: - - Fixed VPI allocation issues after firmware dump is performed - Fixed BlockGuard error reporting - Remove driver dependency on HZ - Fixed pt2pt and loop discovery problems on topology changes. - Fix

[PATCH 1/22] lpfc 8.3.39: Fixed VPI allocation issues after firmware dump is performed

2013-04-17 Thread James Smart
Fixed VPI allocation issues after firmware dump is performed Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_hbadisc.c | 14 +- lpfc_init.c| 12 +++- lpfc_sli.c |2 ++ lpfc_vport.c | 25 - lpfc_vport.h |1 + 5

[PATCH 2/22] lpfc 8.3.39: Fixed BlockGuard error reporting

2013-04-17 Thread James Smart
Fixed BlockGuard error reporting Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_logmsg.h |1 lpfc_scsi.c | 279 -- 2 files changed, 255 insertions(+), 25 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_logmsg.h

[PATCH 3/22] lpfc 8.3.39: Remove driver dependency on HZ

2013-04-17 Thread James Smart
Remove driver dependency on HZ Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |6 -- lpfc_bsg.c |6 -- lpfc_ct.c|3 ++- lpfc_els.c | 10 ++ lpfc_hbadisc.c |5 +++-- lpfc_init.c | 45

[PATCH 4/22] lpfc 8.3.39: Fixed pt2pt and loop discovery problems on topology changes.

2013-04-17 Thread James Smart
Fixed pt2pt and loop discovery problems on topology changes. Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |1 lpfc_attr.c |2 + lpfc_els.c | 93 +++ lpfc_hbadisc.c | 55

[PATCH 5/22] lpfc 8.3.39: Fix driver issues with large lpfc_sg_seg_cnt values

2013-04-17 Thread James Smart
Fix driver issues with large lpfc_sg_seg_cnt values Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |3 +++ lpfc_init.c | 31 +-- 2 files changed, 16 insertions(+), 18 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc.h

[PATCH 6/22] lpfc 8.3.39: Fix driver issues with large s/g lists for BlockGuard

2013-04-17 Thread James Smart
Fix driver issues with large s/g lists for BlockGuard Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |7 + lpfc_attr.c | 15 ++- lpfc_init.c | 132 -- lpfc_mem.c | 14 ++- lpfc_scsi.c | 229

[PATCH 7/22] lpfc 8.3.39: Doorbell formation information logged in dual-chute mode WQ and RQ setup

2013-04-17 Thread James Smart
Doorbell formation information logged in dual-chute mode WQ and RQ setup Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_sli.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c ---

[PATCH 8/22] lpfc 8.3.39: Fix driver issues with SCSI Host reset

2013-04-17 Thread James Smart
Fix driver issues with SCSI Host reset Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_attr.c |7 ++- lpfc_hw4.h |2 +- lpfc_init.c |7 ++- 3 files changed, 13 insertions(+), 3 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_attr.c

[PATCH 9/22] lpfc 8.3.39: Fix lpfc_fcp_look_ahead module parameter

2013-04-17 Thread James Smart
Fix lpfc_fcp_look_ahead module parameter Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_attr.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c --- a/drivers/scsi/lpfc/lpfc_attr.c

[PATCH 10/22] lpfc 8.3.39: Fixed crash when processing bsg's sg list with high memory pages

2013-04-17 Thread James Smart
Fixed crash when processing bsg's sg list with high memory pages Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_bsg.c | 33 +++-- lpfc_sli.c |3 +-- 2 files changed, 24 insertions(+), 12 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_bsg.c

[PATCH 11/22] lpfc 8.3.39: Reduced spinlock contention on SCSI buffer list

2013-04-17 Thread James Smart
Reduced spinlock contention on SCSI buffer list Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |6 ++- lpfc_init.c | 54 -- lpfc_scsi.c | 93 ++-- 3 files changed, 102

[PATCH 12/22] lpfc 8.3.39: Fixed BlockGuard to take advantage of rdprotect/wrprotect info when available

2013-04-17 Thread James Smart
Fixed BlockGuard to take advantage of rdprotect/wrprotect info when available Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_hw.h |1 lpfc_scsi.c | 181 ++-- 2 files changed, 116 insertions(+), 66 deletions(-) diff

[PATCH 13/22] lpfc 8.3.39: Fixed deadlock between hbalock and nlp_lock use

2013-04-17 Thread James Smart
Fixed deadlock between hbalock and nlp_lock use. Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_hbadisc.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -upNr a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c ---

[PATCH 14/22] lpfc 8.3.39: Fixed bad book keeping in posting els sgls to port

2013-04-17 Thread James Smart
Fixed bad book keeping in posting els sgls to port Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_sli.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c ---

[PATCH 15/22] lpfc 8.3.39: Fixed not returning FAILED status when SCSI invoking host reset handler failed

2013-04-17 Thread James Smart
Fixed not returning FAILED status when SCSI invoking host reset handler failed Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_crtn.h |1 + lpfc_init.c |2 +- lpfc_scsi.c | 14 +++--- 3 files changed, 13 insertions(+), 4 deletions(-) diff -upNr

[PATCH 16/22] lpfc 8.3.39: Fixed system panic during EEH recovery due to midlayer acting on outstanding I/O

2013-04-17 Thread James Smart
Fixed system panic during EEH recovery due to midlayer acting on outstanding I/O Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_init.c | 12 ++-- lpfc_sli.c |4 2 files changed, 10 insertions(+), 6 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_init.c

[PATCH 17/22] lpfc 8.3.39: Fixed iocb flags not being reset for scsi commands

2013-04-17 Thread James Smart
Fixed iocb flags not being reset for scsi commands. Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_scsi.c |2 ++ 1 file changed, 2 insertions(+) diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c --- a/drivers/scsi/lpfc/lpfc_scsi.c 2013-04-15

[PATCH 18/22] lpfc 8.3.39: Fixed driver vector mapping to CPU affinity

2013-04-17 Thread James Smart
Fixed driver vector mapping to CPU affinity Signed-off-by: James Smart james.sm...@emulex.com --- lpfc.h |1 lpfc_attr.c | 137 + lpfc_hw4.h |5 lpfc_init.c | 322 ++-- lpfc_sli.c | 22 ++--

[PATCH 19/22] lpfc 8.3.39: Add log message when completes with clean address bit set to zero

2013-04-17 Thread James Smart
Add log message when completes with clean address bit set to zero Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_els.c |3 +++ 1 file changed, 3 insertions(+) diff -upNr a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c --- a/drivers/scsi/lpfc/lpfc_els.c

[PATCH 20/22] lpfc 8.3.39: Reduced tmo value set to FLOGI WQE for quick recovery from FLOGI sequence timeout

2013-04-17 Thread James Smart
Reduced tmo value set to FLOGI WQE for quick recovery from FLOGI sequence timeout Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_els.c |9 ++--- lpfc_hbadisc.c |7 +-- lpfc_sli.c | 11 ++- 3 files changed, 17 insertions(+), 10 deletions(-)

[PATCH 21/22] lpfc 8.3.39: Fixed driver handling of CLEAR_LA with NPIV enabled causing SID=0 frames out

2013-04-17 Thread James Smart
Fixed driver handling of CLEAR_LA with NPIV enabled causing SID=0 frames out Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_hbadisc.c |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff -upNr a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c

[PATCH 22/22] lpfc 8.3.39: Update lpfc version for 8.3.39 driver release

2013-04-17 Thread James Smart
Update lpfc version for 8.3.39 driver release Signed-off-by: James Smart james.sm...@emulex.com --- lpfc_version.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -upNr a/drivers/scsi/lpfc/lpfc_version.h b/drivers/scsi/lpfc/lpfc_version.h ---