[PATCH 1/4] target: ensure se_cmd-t_prot_sg is allocated when required

2015-04-20 Thread Akinobu Mita
Even if the device backend is initialized with protection info is enabled, some requests don't have the protection info attached for WRITE SAME command issued by block device helpers, WRITE command with WRPROTECT=0 by SG_IO ioctl, etc. So when TCM loopback fabric module is used, se_cmd-t_prot_sg

[PATCH 0/4] target: Fix several problems related to T10-PI support

2015-04-20 Thread Akinobu Mita
This patchset aims to fix several problems related to T10-PI support. These patches can be applied on top of Sagi's [v1] Simlify dif_verify routines and fixup fileio protection information code patchset. Akinobu Mita (4): target: ensure se_cmd-t_prot_sg is allocated when required target:

[PATCH 2/4] target: Abandon odd SG mapping for data transfer memory

2015-04-20 Thread Akinobu Mita
sbc_dif_generate() and sbc_dif_verify() assume that each SG element for data transfer memory doesn't straddle the block size boundary. However, when using SG_IO ioctl, we can choose the data transfer memory which doesn't satisfy that alignment requirement. This change detects such cases and

[PATCH 4/4] target/file: enable WRITE SAME when protection info is enabled

2015-04-20 Thread Akinobu Mita
Now we can generate correct PI for WRITE SAME command, so it is unnecessary to disallow WRITE SAME when protection info is enabled. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Nicholas Bellinger n...@linux-iscsi.org Cc: Sagi Grimberg sa...@mellanox.com Cc: Martin K. Petersen

[PATCH 3/4] target: Fix sbc_dif_generate() for WRITE SAME

2015-04-20 Thread Akinobu Mita
For WRITE SAME, data transfer memory only contains a single block but protection information is required for all blocks that are written by the command. This makes sbc_dif_generate() work for WRITE_SAME. Signed-off-by: Akinobu Mita akinobu.m...@gmail.com Cc: Nicholas Bellinger

[PATCH 1/1] SCSI: add 1024 max sectors black list flag

2015-04-20 Thread michaelc
From: Mike Christie micha...@cs.wisc.edu This works around a issue with qnap iscsi targets not handling large IOs very well. The target returns: VPD INQUIRY: Block limits page (SBC) Maximum compare and write length: 1 blocks Optimal transfer length granularity: 1 blocks Maximum transfer

Re: BUG: unable to handle kernel NULL pointer deref, bisected to 746650160

2015-04-20 Thread Torsten Luettgert
On Sun, 19 Apr 2015 18:58:41 +0200 Christoph Hellwig h...@lst.de wrote: This looks like a long standing bug in all three 3ware drivers to me, that the taking the host lock around the host_busy manipulation was hiding. Can you test the patch below? I'm running it right now and keeping my

[PATCH RESEND 0/18] megaraid_sas : Description Patch

2015-04-20 Thread Sumit.Saxena
This patch series for megaraid_sas driver is resent with splitting one patch in to 5 different patches(patch #1 to patch #5) along with few extra sparse warnings fixes (patch#10 to patch #18). These sparse warnings fixes are also not first time submitted but resent(earlier sent by Christoph

[PATCH RESEND 13/18] megaraid_sas : add endianess conversions for all ones

2015-04-20 Thread Sumit.Saxena
Add noop conversions for all ones to make sparse happy. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- drivers/scsi/megaraid/megaraid_sas_fp.c |7 --- drivers/scsi/megaraid/megaraid_sas_fusion.c |9 + 3 files

[PATCH RESEND 12/18] megaraid_sas : add endianess annotations

2015-04-20 Thread Sumit.Saxena
This adds endianness annotations to all data structures, and a few variables directly referencing them. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas.h| 302 +- drivers/scsi/megaraid/megaraid_sas_base.c |2 +-

[PATCH RESEND 5/18] megaraid_sas : Enhanced few prints

2015-04-20 Thread Sumit.Saxena
This patch will update few prints. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 49 ++--- 1 files changed, 24 insertions(+), 25 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH RESEND 2/18] megaraid_sas : Add separate function for refiring MFI commands

2015-04-20 Thread Sumit.Saxena
This patch will add separate function for refiring MFI commands in Fusion adapters's OCR code. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 80 +-- 1

[PATCH RESEND 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-20 Thread Sumit.Saxena
This patch will create separate functions for sysPD IOs and non Read/Write LDIOs. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h| 10 +- drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH RESEND 7/18] megaraid_sas : Modify driver's meta data to reflect Avago

2015-04-20 Thread Sumit.Saxena
This patch will update module parameters and driver name inside SCSI host template to reflect Avago. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH RESEND 1/18] megaraid_sas : Add separate function for setting up IRQs

2015-04-20 Thread Sumit.Saxena
This patch will create separate function for setting up IRQs and enable interrupts after adapter's initialization. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 201

Darlehen bieten AT 1,5% ZINS

2015-04-20 Thread DIAMOND SWISS LOAN COMPANY
-- Guten Tag Dies ist DIAMOMD Schweizer LOAN COMPANY Darlehen Angebot. DIAMOMD Schweizer LOAN COMPANY bietet flexible und kostengünstige Kredite für jeden Zweck, Ihnen beim Erreichen Ihrer Ziele zu helfen. Wir Darlehen zu niedrigen Zinssatz von 1,5 %. Hier sind einige wichtige Merkmale des

RE: [PATCH 1/5] megaraid_sas : Code optimization and refactoring

2015-04-20 Thread Sumit Saxena
-Original Message- From: Christoph Hellwig [mailto:h...@infradead.org] Sent: Tuesday, April 14, 2015 11:27 AM To: Martin K. Petersen Cc: Sumit Saxena; linux-scsi@vger.kernel.org; the...@redhat.com; h...@infradead.org; jbottom...@parallels.com; Kashyap Desai Subject: Re: [PATCH 1/5]

[PATCH RESEND 6/18] megaraid_sas : Use Block layer tag support for internal command indexing

2015-04-20 Thread Sumit.Saxena
megaraid_sas driver will use block layer provided tag for indexing internal MPT frames to get any unique MPT frame tied with tag. Each IO request submitted from SCSI mid layer will get associated MPT frame from MPT framepool (retrieved and return back using spinlock inside megaraid_sas driver's

[PATCH RESEND 4/18] megaraid_sas : Move controller's queue depth calculation in adapter specific function

2015-04-20 Thread Sumit.Saxena
This patch will move controller's queue depth calculation in adapter specific functions. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas_base.c | 39 ++

[PATCH RESEND 16/18] megaraid_sas : add missing byte swaps to the sriov code

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c | 46 +++- 1 files changed, 25 insertions(+), 21 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index

[Bug 96921] New: NULL pointer dereference in lpfc_bus_reset_handler+0xd4/0x240

2015-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=96921 Bug ID: 96921 Summary: NULL pointer dereference in lpfc_bus_reset_handler+0xd4/0x240 Product: SCSI Drivers Version: 2.5 Kernel Version: 3.11.10 Hardware: x86-64

[PATCH RESEND 18/18] megaraid_sas : swap whole register in megasas_register_aen

2015-04-20 Thread Sumit.Saxena
Swap the whole 32 bits we read from the hardware instead of swapping just the 16bits we care about in place later. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 04/14] lpfc: Correct reference counting of rport

2015-04-20 Thread James Smart
Correct reference counting of rport Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_disc.h| 4 +- drivers/scsi/lpfc/lpfc_els.c | 12 +++- drivers/scsi/lpfc/lpfc_hbadisc.c | 144

[PATCH 14/14] lpfc: Update driver version for upstream patch set 10.6.0.1.

2015-04-20 Thread James Smart
Update driver version for upstream patch set 10.6.0.1. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_version.h

[PATCH RESEND 10/18] megaraid_sas : megasas_complete_outstanding_ioctls() can be static

2015-04-20 Thread Sumit.Saxena
drivers/scsi/megaraid/megaraid_sas_base.c:1701:6: sparse: symbol 'megasas_complete_outstanding_ioctls' was not declared. Should it be static? Signed-off-by: Fengguang Wu fengguang...@intel.com --- drivers/scsi/megaraid/megaraid_sas_base.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH RESEND v2 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-20 Thread Sumit.Saxena
This patch will create separate functions for sysPD IOs and non Read/Write LDIOs. Signed-off-by: Kashyap Desai kashyap.de...@avagotech.com Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com --- drivers/scsi/megaraid/megaraid_sas.h| 10 +- drivers/scsi/megaraid/megaraid_sas_base.c

[Bug 96921] NULL pointer dereference in lpfc_bus_reset_handler+0xd4/0x240

2015-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=96921 --- Comment #1 from James Smart james.sm...@emulex.com --- This is a rather old kernel, thus old driver. Lots of changes since the driver was put out in 3.11. I recommend pulling down the source kits for RHEL7 (3.10 kernel):

[PATCH RESEND 15/18] megaraid_sas : bytewise or should be done on native endian variables

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_fusion.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 7d34fe8..17ec153 100644 ---

Re: [Bug 96921] New: NULL pointer dereference in lpfc_bus_reset_handler+0xd4/0x240

2015-04-20 Thread James Smart
This is a rather old kernel, thus old driver. Lots of changes since the driver was put out in 3.11. I recommend pulling down the source kits for RHEL7 (3.10 kernel): http://www.emulex.com/downloads/emulex/drivers/linux/rhel-7-centos-7/drivers/ Under FC/FCoE driver and install script - Source

[PATCH 01/14] lpfc: The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence

2015-04-20 Thread James Smart
The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_hbadisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 12/14] lpfc: Fix incorrect log message reported for empty FCF record.

2015-04-20 Thread James Smart
Fix incorrect log message reported for empty FCF record. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_hbadisc.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 06/14] lpfc: Add support for RDP ELS command.

2015-04-20 Thread James Smart
Add support for RDP ELS command. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc.h | 1 + drivers/scsi/lpfc/lpfc_crtn.h | 2 + drivers/scsi/lpfc/lpfc_els.c | 415 ++

[PATCH 07/14] lpfc: Correct reporting of vport state on fdisc command failure.

2015-04-20 Thread James Smart
Correct reporting of vport state on fdisc command failure. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_els.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_els.c

[PATCH 11/14] lpfc: Correct loss of RSCNs during array takeaway/giveback testing.

2015-04-20 Thread James Smart
Correct loss of RSCNs during array takeaway/giveback testing. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_els.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

[PATCH 05/14] lpfc: Fix ABORTs WQ selection in terminate_rport_io

2015-04-20 Thread James Smart
Fix ABORTs WQ selection in terminate_rport_io Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_sli.c | 32 +--- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git

[PATCH 02/14] lpfc: Correct loss of target discovery after cable swap.

2015-04-20 Thread James Smart
Correct loss of target discovery after cable swap. Fix incorrect reference counting Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 08/14] lpfc: Fix discovery issue when changing from Pt2Pt to Fabric.

2015-04-20 Thread James Smart
Fix discovery issue when changing from Pt2Pt to Fabric. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_hbadisc.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git

[PATCH 00/14] lpfc: Update lpfc driver to revision 10.6.0.1

2015-04-20 Thread James Smart
This patch set updates the lpfc driver to revision 10.6.0.1 The patches were cut against scsi-misc -- james s James Smart (14): The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence Correct loss of target discovery after cable swap. Add support for ELS LCB.

[PATCH 03/14] lpfc: Add support for ELS LCB.

2015-04-20 Thread James Smart
Add support for ELS LCB. Also has a little whitespace fixing. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc.h | 1 + drivers/scsi/lpfc/lpfc_els.c | 239 +-

[PATCH 13/14] lpfc: Change buffer pool empty message to miscellaneous category

2015-04-20 Thread James Smart
Change buffer pool empty message to miscellaneous category Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c

[PATCH 09/14] lpfc: Fix to remove IRQF_SHARED flag for MSI/MSI-X vectors.

2015-04-20 Thread James Smart
Fix to remove IRQF_SHARED flag for MSI/MSI-X vectors. Signed-off-by: Dick Kennedy dick.kenn...@emulex.com Signed-off-by: James Smart james.sm...@emulex.com --- drivers/scsi/lpfc/lpfc_init.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH RESEND 14/18] megaraid_sas : move endianess conversion into caller of megasas_get_seq_num

2015-04-20 Thread Sumit.Saxena
Converting structure fields in place is always a bad idea, and in this case by moving it into the only caller we also only have to do a single byte swap as most fields of this structure are never used. Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas_base.c |

RE: [PATCH RESEND 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs

2015-04-20 Thread Sumit Saxena
Please ignore only this patch of the series, this is based on a bit old repo(sent mistakenly old patch). I am sending patch the right patch(rebased against latest repo) with subject line- [PATCH RESEND v2 3/18] megaraid_sas : Add separate functions for building sysPD IOs and non RW LDIOs. Rest of

[Bug 90601] panic on write to 3ware raid array

2015-04-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=90601 --- Comment #26 from Justin Keogh kernel@v6y.net --- Created attachment 174581 -- https://bugzilla.kernel.org/attachment.cgi?id=174581action=edit dmesg for the commit that git bisect landed on, with IOMMU disabled -- You are receiving this

Re: [PATCH, RFC] scsi: use host wide tags by default

2015-04-20 Thread James Bottomley
On Fri, 2015-04-17 at 16:40 -0600, Jens Axboe wrote: On 04/17/2015 04:20 PM, James Bottomley wrote: On Fri, 2015-04-17 at 16:07 -0600, Jens Axboe wrote: On 04/17/2015 03:57 PM, James Bottomley wrote: On Fri, 2015-04-17 at 15:47 -0600, Jens Axboe wrote: On 04/17/2015 03:46 PM, James

Re: [PATCH RESEND 13/18] megaraid_sas : add endianess conversions for all ones

2015-04-20 Thread James Bottomley
On Mon, 2015-04-20 at 18:04 +0530, sumit.sax...@avagotech.com wrote: Add noop conversions for all ones to make sparse happy. Signed-off-by: Christoph Hellwig h...@lst.de This isn't the right way to resend someone else's patch: it needs a From: Christoph Hellwig h...@lst.de At the top and a

[PATCH RESEND 8/18] megaraid_sas : Add release date and update driver version

2015-04-20 Thread Sumit.Saxena
This patch will upgrade the driver version and add back the release date and sysfs hook for the same. Some internal applications uses sysfs parameter for release date, so they were broken because of removal of release date from sysfs. Signed-off-by: Sumit Saxena sumit.sax...@avagotech.com ---

[PATCH RESEND 9/18] megaraid_sas : Support for Avago's Single server High Availability product

2015-04-20 Thread Sumit.Saxena
This patch will add support for Single Server High Availability(SSHA) cluster support. Here is the short decsription of changes done to add support for SSHA- 1) Host will send system's Unique ID based on DMI_PRODUCT_UUID to firmware. 2) Toggle the devhandle in LDIO path for Remote LDs.

[PATCH RESEND 11/18] megaraid_sas : add missing __iomem annotations

2015-04-20 Thread Sumit.Saxena
Signed-off-by: Christoph Hellwig h...@lst.de --- drivers/scsi/megaraid/megaraid_sas.h |2 +- drivers/scsi/megaraid/megaraid_sas_base.c |9 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h

[PATCH RESEND 17/18] megaraid_sas : fix megasas_fire_cmd_fusion calling convention

2015-04-20 Thread Sumit.Saxena
The fusion HBAs don't really use the instance template like the other variants, as it branches off at a much higher level. So instead of trying to squeeze megasas_fire_cmd_fusion into the wrong calling convention call it locally with argument data types that match what is passed. Signed-off-by: