[PATCH] IB/mlx5: Fix signature rule constants according to FW specifications

2014-01-19 Thread Sagi Grimberg
Use DIF CRC INC with apptag escape (0x8) and update IP-CSUM entries. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/qp.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c

Re: linux rdma 3.14 merge plans

2014-01-19 Thread sagi grimberg
On 1/19/2014 5:42 AM, Nicholas A. Bellinger wrote: On Sat, 2014-01-18 at 13:42 -0800, Roland Dreier wrote: On Thu, Jan 16, 2014 at 1:14 PM, Nicholas A. Bellinger n...@linux-iscsi.org wrote: I've reviewed the API from the perspective of what's required for implementing protection support in

Re: [PATCH] IB/mlx5: Fix signature rule constants according to FW specifications

2014-01-19 Thread Sagi Grimberg
On 1/19/2014 12:37 PM, Sagi Grimberg wrote: Use DIF CRC INC with apptag escape (0x8) and update IP-CSUM entries. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/qp.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

Re: linux rdma 3.14 merge plans

2014-01-22 Thread Sagi Grimberg
On 1/22/2014 2:43 AM, Roland Dreier wrote: On Tue, Jan 21, 2014 at 2:00 PM, Or Gerlitz or.gerl...@gmail.com wrote: Roland, ping! the signature patches were posted three months ago. We deserve a response from the maintainer that goes beyond I need to think on that. Responsiveness was stated by

Re: linux rdma 3.14 merge plans

2014-01-29 Thread Sagi Grimberg
On 1/29/2014 4:13 PM, Bart Van Assche wrote: On 01/28/14 22:02, Or Gerlitz wrote: Roland, ping! the signature patches were posted three months ago. I have a question about RDMA and T10-DIF support. The Linux block layer, the Linux SCSI core, Linux filesystems and block drivers all support

[PATCH v1 05/12] Target/core: Remove prot_handover use for now

2014-02-16 Thread Sagi Grimberg
This is not going to be supported soon - so drop it. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c |1 - include/target/target_core_base.h |6 -- 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/target/target_core_sbc.c b

[PATCH v1 03/12] Target/file: place escape values for protection information format

2014-02-16 Thread Sagi Grimberg
No need to actually compute protection information when formatting Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_file.c | 40 + 1 files changed, 1 insertions(+), 39 deletions(-) diff --git a/drivers/target/target_core_file.c

[PATCH v1 01/12] Target/transport: Allocate protection sg if needed

2014-02-16 Thread Sagi Grimberg
In case protection information is involved, allocate protection SG-list for transport. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_transport.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/target

[PATCH v1 02/12] Target/sbc: Set protection operation and relevant checks

2014-02-16 Thread Sagi Grimberg
SBC-3 mandates the protection checks that must be performed in the rdprotect/wrprotect field. Use them. According to backstore device pi_attributes and cdb rdprotect/wrprotect. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c | 88

[PATCH v1 10/12] IB/isert: Initialize T10-PI resources

2014-02-16 Thread Sagi Grimberg
-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c | 104 +++ drivers/infiniband/ulp/isert/ib_isert.h | 23 ++- 2 files changed, 110 insertions(+), 17 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers

[PATCH v1 11/12] IB/isert: Accept RDMA_WRITE completions

2014-02-16 Thread Sagi Grimberg
In case of protected transactions, we will need to check the protection status of the transaction before sending SCSI response. So be ready for RDMA_WRITE completions. currently we don't ask for these completions, but for T10-PI we will. Signed-off-by: Sagi Grimberg sa...@mellanox.com

[PATCH v1 09/12] IB/isert: Introduce isert_map/unmap_data_buf

2014-02-16 Thread Sagi Grimberg
-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c | 238 +++ drivers/infiniband/ulp/isert/ib_isert.h | 14 ++- 2 files changed, 127 insertions(+), 125 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp

[PATCH v1 04/12] Target/sbc: don't return from sbc_check for non prot_sg

2014-02-16 Thread Sagi Grimberg
). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c |3 --- drivers/target/target_core_transport.c | 21 + 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target

[PATCH v1 07/12] Target/configfs: Expose iSCSI network portal group T10-PI support

2014-02-16 Thread Sagi Grimberg
User may enable T10-PI support per network portal group. any connection established on top of it, will be required to serve protected transactions. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/iscsi/iscsi_target_configfs.c |6 ++ drivers/target/iscsi

[PATCH v1 06/12] Target/iscsi: Add T10-PI indication for iscsi_portal_group

2014-02-16 Thread Sagi Grimberg
. This is a hook for the iscsi target layer to signal the transport at connection establishment that this connection will carry protected transactions. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/iscsi/iscsi_target_core.h |5 - drivers/target/iscsi/iscsi_target_tpg.c |2 ++ 2

Re: IB/srp: merge fixes from MLNX_OFED

2014-02-18 Thread Sagi Grimberg
On 2/18/2014 7:05 PM, Bart Van Assche wrote: On 02/18/14 17:47, Sebastian Riemer wrote: I've also noticed the added target locking around target-free_tx handling in srp_rport_reconnect(). There are cases e.g. in srp_queuecommand() where holding the rport mutex isn't enough to protect it. So for

[PATCH v2 01/12] Target/transport: Allocate protection sg if needed

2014-02-19 Thread Sagi Grimberg
In case protection information is involved, allocate protection SG-list for transport. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_transport.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/target

[PATCH v2 12/12] IB/isert: Support T10-PI protected transactions

2014-02-19 Thread Sagi Grimberg
completion check the signature status - if succeeded send good SCSI response - if failed send SCSI bad response with appropriate sense buffer Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c | 321 --- drivers/infiniband

[PATCH v2 10/12] IB/isert: Initialize T10-PI resources

2014-02-19 Thread Sagi Grimberg
-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c | 104 +++ drivers/infiniband/ulp/isert/ib_isert.h | 23 ++- 2 files changed, 110 insertions(+), 17 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers

[PATCH v2 05/12] Target/core: Remove prot_handover use for now

2014-02-19 Thread Sagi Grimberg
This is not going to be supported soon - so drop it. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c |1 - include/target/target_core_base.h |6 -- 2 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/target/target_core_sbc.c b

[PATCH v2 08/12] Target/sbc: add debug print

2014-02-19 Thread Sagi Grimberg
Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 33f3163..59fdc9f 100644 --- a/drivers/target/target_core_sbc.c

[PATCH v2 11/12] IB/isert: Accept RDMA_WRITE completions

2014-02-19 Thread Sagi Grimberg
In case of protected transactions, we will need to check the protection status of the transaction before sending SCSI response. So be ready for RDMA_WRITE completions. currently we don't ask for these completions, but for T10-PI we will. Signed-off-by: Sagi Grimberg sa...@mellanox.com

[PATCH v2 00/12] T10-DIF Initial support for iSER target

2014-02-19 Thread Sagi Grimberg
the amount of code in isert_reg_rdma. - Fixed print of DIF error (sector instead of offset). - Fix RDMA length for protection on wire domain. - Refactored reg_sig_mr to use helper routines. Sagi Grimberg (12): Target/transport: Allocate protection sg if needed Target/sbc: Set protection

[PATCH v2 06/12] Target/iscsi: Add T10-PI indication for iscsi_portal_group

2014-02-19 Thread Sagi Grimberg
. This is a hook for the iscsi target layer to signal the transport at connection establishment that this connection will carry protected transactions. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/iscsi/iscsi_target_core.h |5 - drivers/target/iscsi/iscsi_target_tpg.c |2 ++ 2

[PATCH v2 04/12] Target/sbc: don't return from sbc_check for non prot_sg

2014-02-19 Thread Sagi Grimberg
(writes are inserted and reads are stripped). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c |3 --- drivers/target/target_core_transport.c | 21 ++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/drivers/target

[PATCH v2 09/12] IB/isert: Introduce isert_map/unmap_data_buf

2014-02-19 Thread Sagi Grimberg
-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/isert/ib_isert.c | 238 +++ drivers/infiniband/ulp/isert/ib_isert.h | 14 ++- 2 files changed, 127 insertions(+), 125 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp

[PATCH v2 03/12] Target/file: place escape values for protection information format

2014-02-19 Thread Sagi Grimberg
No need to actually compute protection information when formatting Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_file.c | 40 + 1 files changed, 1 insertions(+), 39 deletions(-) diff --git a/drivers/target/target_core_file.c

[PATCH v2 02/12] Target/sbc: Set protection operation and relevant checks

2014-02-19 Thread Sagi Grimberg
SBC-3 mandates the protection checks that must be performed in the rdprotect/wrprotect field. Use them. According to backstore device pi_attributes and cdb rdprotect/wrprotect field. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/target_core_sbc.c | 86

[PATCH v2 07/12] Target/configfs: Expose iSCSI network portal group T10-PI support

2014-02-19 Thread Sagi Grimberg
User may enable T10-PI support per network portal group. any connection established on top of it, will be required to serve protected transactions. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/target/iscsi/iscsi_target_configfs.c |6 ++ drivers/target/iscsi

Re: [PATCH v2 00/12] T10-DIF Initial support for iSER target

2014-02-20 Thread Sagi Grimberg
On 2/20/2014 1:14 AM, Nicholas A. Bellinger wrote: On Wed, 2014-02-19 at 17:50 +0200, Sagi Grimberg wrote: Hey Nic, I addressed your comments in the this set. I'll try to send the initiator code for review in the next couple of days. This patchset introduces target side T10-PI offload support

[PATCH v5 10/10] IB/mlx5: Publish support in signature feature

2014-02-23 Thread Sagi Grimberg
Currently support only T10-DIF types of signature handover operations (typs 1|2|3). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/main.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers

[PATCH v5 05/10] IB/mlx5: Break wqe handling to begin finish routines

2014-02-23 Thread Sagi Grimberg
As a preliminary step for signature feature which will reuqire posting multiple (3) WQEs for a single WR, we break post_send routine WQE indexing into begin and finish routines. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband

[PATCH v5 02/10] IB/core: Introduce Signature Verbs API

2014-02-23 Thread Sagi Grimberg
that the actual data transfer has finished. issue: 333508 Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/core/verbs.c |8 ++ include/rdma/ib_verbs.h | 149 ++- 2 files changed, 156 insertions(+), 1 deletions(-) diff --git

[PATCH v5 00/10] Introduce Signature feature

2014-02-23 Thread Sagi Grimberg
: Changed signature error processing via MR radix lookup. Sagi Grimberg (10): IB/core: Introduce protected memory regions IB/core: Introduce Signature Verbs API IB/mlx5, mlx5_core: Support for create_mr and destroy_mr IB/mlx5: Initialize mlx5_ib_qp signature related IB/mlx5: Break wqe handling

[PATCH v5 07/10] IB/mlx5: Keep mlx5 MRs in a radix tree under device

2014-02-23 Thread Sagi Grimberg
This will be useful when processing signature errors on a specific key. The mlx5 driver will lookup the matching mlx5 memory region structure and mark it as dirty (contains signature errors). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/net/ethernet/mellanox/mlx5/core/main.c

[PATCH v5 06/10] IB/mlx5: remove MTT access mode from umr flags helper function

2014-02-23 Thread Sagi Grimberg
get_umr_flags helper function might be used for types of access modes other than ACCESS_MODE_MTT, such as ACCESS_MODE_KLM. so remove it from helper and caller will add it's own access mode flag. This commit does not add/change functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com

[PATCH v5 04/10] IB/mlx5: Initialize mlx5_ib_qp signature related

2014-02-23 Thread Sagi Grimberg
-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/mlx5_ib.h |3 +++ drivers/infiniband/hw/mlx5/qp.c | 12 +--- include/linux/mlx5/qp.h |1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b

[PATCH v5 01/10] IB/core: Introduce protected memory regions

2014-02-23 Thread Sagi Grimberg
will be applicable for a new REG_SIG_MR work request introduced later in this patchset. In the future these routines may replace or implement current memory regions creation routines existing today: - ib_reg_user_mr - ib_alloc_fast_reg_mr - ib_get_dma_mr - ib_dereg_mr Signed-off-by: Sagi Grimberg sa

[PATCH v5 03/10] IB/mlx5, mlx5_core: Support for create_mr and destroy_mr

2014-02-23 Thread Sagi Grimberg
, that will mean that the created ib_mr may be attached with signature attributes (BSF, PSVs). Currently we only allow direct/indirect registration modes. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/main.c|2 + drivers/infiniband/hw/mlx5/mlx5_ib.h

[PATCH v5 08/10] IB/mlx5: Support IB_WR_REG_SIG_MR

2014-02-23 Thread Sagi Grimberg
. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/qp.c | 422 +++ include/linux/mlx5/qp.h | 61 ++ 2 files changed, 483 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband

[PATCH v5 09/10] IB/mlx5: Collect signature error completion

2014-02-23 Thread Sagi Grimberg
, it will not be allowed to use the memory region for another signature operation (REG_SIG_MR work request will fail). Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/cq.c | 63 ++ drivers/infiniband/hw/mlx5/main.c|1 + drivers/infiniband/hw

[PATCH 3/3] IB/srp: Protect free_tx iu list from concurrent flows

2014-02-23 Thread Sagi Grimberg
). This may introduces corruption in free_tx IUs list and IU itself Signed-off-by: Vu Pham vuhu...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/ulp/srp

[PATCH 02/11] IB/iser: Push the desicion what memory key to use into fast_reg_mr routine

2014-02-23 Thread Sagi Grimberg
of repeating the logic of which key to use. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser/iser_memory.c | 101 + 1 files changed, 59 insertions(+), 42 deletions(-) diff --git a/drivers

[PATCH 00/11] T10-PI Initial support for iSER initiator

2014-02-23 Thread Sagi Grimberg
support to SCSI midlayer according to IB device capabilities. Sagi Grimberg (11): IB/iser: Avoid FRWR notation, use fastreg instead IB/iser: Push the desicion what memory key to use into fast_reg_mr routine IB/iser: Move fast_reg_descriptor initialization to a function IB/iser: Keep IB

[PATCH 01/11] IB/iser: Avoid FRWR notation, use fastreg instead

2014-02-23 Thread Sagi Grimberg
FRWR stands for fast registration work request. We want to avoid calling the fastreg pool with that name, instead we name it fastreg which stands for fast registration. This pool will include more elements in the future, so it is a good idea to generalize the name. Signed-off-by: Sagi Grimberg

[PATCH 2/3] IB/srp: Check ib_query_gid return value

2014-02-23 Thread Sagi Grimberg
Detected by Coverity. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 0e20bfb..b615135 100644

[PATCH 05/11] IB/iser: Replace fastreg descriptor valid bool with indicators container

2014-02-23 Thread Sagi Grimberg
In T10-PI support we will have memory keys for protection buffers and signature transactions. We prefer to compact indicators rather than keeping multiple bools. This commit does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser

[PATCH 04/11] IB/iser: Keep IB device attributes under iser_device

2014-02-23 Thread Sagi Grimberg
For T10-PI offload support, we will need to know the device signature offload capability upon every connection establishment. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.h |1 + drivers/infiniband

[PATCH 0/3] SRP initiator fixes for kernel 3.15

2014-02-23 Thread Sagi Grimberg
Hey Bart, Here are three more fixes for kernel 3.15. These are the patches Sebastian was referring to. Sagi Grimberg (2): IB/srp: Fix crash when unmapping data loop IB/srp: Check ib_query_gid return value Vu Pham (1): IB/srp: Protect free_tx iu list from concurrent flows drivers

[PATCH 1/3] IB/srp: Fix crash when unmapping data loop

2014-02-23 Thread Sagi Grimberg
were used on this request) and only increment when needed. This crash is easily reproduceable with SRIOV OR Connect-IB (where FMRs are not supported) Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |5 - 1 files changed, 4 insertions(+), 1 deletions

[PATCH 10/11] IB/iser: Implement check_protection

2014-02-23 Thread Sagi Grimberg
Once the iSCSI transaction is completed we must imeplement check_protection in order to notify on DIF errors that may have occured. The routine boils down to calling ib_check_mr_status to get the signature status of the transaction. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers

[PATCH 06/11] IB/iser: Introduce pi_enable, pi_guard module parameters

2014-02-23 Thread Sagi Grimberg
phase, it is worth considering passing these parameters from iscsid via nlmsg. This will allow these parameters to be connection based rather than global. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.c |8 drivers/infiniband/ulp/iser

[PATCH 03/11] IB/iser: Move fast_reg_descriptor initialization to a function

2014-02-23 Thread Sagi Grimberg
fastreg descriptor will include protection information context. In order to place the logic in one place we introduce iser_create_fr_desc function. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser/iser_verbs.c | 58

[PATCH 09/11] SCSI/libiscsi: Add check_protection callback for transports

2014-02-23 Thread Sagi Grimberg
: APPTAG_CHECK_FAILED - 0x3: REFTAG_CHECK_FAILED Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/scsi/libiscsi.c | 32 include/scsi/libiscsi.h |4 include/scsi/scsi_transport_iscsi.h |1 + 3 files changed, 37

[PATCH 11/11] IB/iser: Publish T10-PI support to SCSI midlayer

2014-02-23 Thread Sagi Grimberg
After allocating a scsi_host we set protection types and guard type supported. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.c | 23 ++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/ulp/iser

Re: [PATCH v5 04/10] IB/mlx5: Initialize mlx5_ib_qp signature related

2014-02-24 Thread Sagi Grimberg
On 2/24/2014 8:46 AM, Nicholas A. Bellinger wrote: On Sun, 2014-02-23 at 14:19 +0200, Sagi Grimberg wrote: If user requested signature enable we Initialize relevant mlx5_ib_qp members. we mark the qp as sig_enable and we increase the effective SQ size, but still limit the user max_send_wr

Re: [PATCH v5 00/10] Introduce Signature feature

2014-02-24 Thread Sagi Grimberg
On 2/24/2014 9:01 AM, Nicholas A. Bellinger wrote: On Sun, 2014-02-23 at 14:19 +0200, Sagi Grimberg wrote: This patchset Introduces Verbs level support for signature handover feature. Siganture is intended to implement end-to-end data integrity on a transactional basis in a completely offloaded

Re: [PATCH 05/11] IB/iser: Replace fastreg descriptor valid bool with indicators container

2014-02-24 Thread Sagi Grimberg
On 2/24/2014 9:30 AM, Nicholas A. Bellinger wrote: On Sun, 2014-02-23 at 22:53 -0800, Nicholas A. Bellinger wrote: On Sun, 2014-02-23 at 14:19 +0200, Sagi Grimberg wrote: In T10-PI support we will have memory keys for protection buffers and signature transactions. We prefer to compact

[PATCH v1 0/3] SRP initiator fixes for kernel 3.15

2014-02-24 Thread Sagi Grimberg
Hey Bart, Here are three more fixes for kernel 3.15. These are the patches Sebastian was referring to. Changes from v0: - Fix typos in commit message Sagi Grimberg (2): IB/srp: Fix crash when unmapping data loop IB/srp: Check ib_query_gid return value Vu Pham (1): IB/srp: Protect free_tx

[PATCH v1 1/3] IB/srp: Fix crash when unmapping data loop

2014-02-24 Thread Sagi Grimberg
means that FMRs were used on this request) and only increment when needed. This crash is easily reproduceable with ConnectX VFs OR Connect-IB (where FMRs are not supported) Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |5 - 1 files changed, 4

[PATCH v1 2/3] IB/srp: Check ib_query_gid return value

2014-02-24 Thread Sagi Grimberg
Detected by Coverity. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 0e20bfb..b615135 100644

[PATCH v1 3/3] IB/srp: Protect free_tx iu list from concurrent flows

2014-02-24 Thread Sagi Grimberg
). This may introduces corruption in free_tx IUs list and IU itself Signed-off-by: Vu Pham vuhu...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/srp/ib_srp.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/ulp/srp

[PATCH v1 04/13] IB/iser: Keep IB device attributes under iser_device

2014-02-27 Thread Sagi Grimberg
For T10-PI offload support, we will need to know the device signature offload capability upon every connection establishment. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp

[PATCH v1 02/13] IB/iser: Push the desicion what memory key to use into fast_reg_mr routine

2014-02-27 Thread Sagi Grimberg
of repeating the logic of which key to use. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp/iser/iser_memory.c | 101 + 1 files changed, 59

[PATCH v1 06/13] IB/iser: Generalize iser_unmap_task_data and finalize_rdma_unaligned_sg

2014-02-27 Thread Sagi Grimberg
This routines operates on data buffers and may also work with protection infomation buffers. So we generalize them to handle an iser_data_buf which can be the command data or command protection information. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa

[PATCH v1 12/13] IB/iser: Implement check_protection

2014-02-27 Thread Sagi Grimberg
Once the iSCSI transaction is completed we must imeplement check_protection in order to notify on DIF errors that may have occured. The routine boils down to calling ib_check_mr_status to get the signature status of the transaction. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off

[PATCH v1 03/13] IB/iser: Move fast_reg_descriptor initialization to a function

2014-02-27 Thread Sagi Grimberg
fastreg descriptor will include protection information context. In order to place the logic in one place we introduce iser_create_fr_desc function. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com

[PATCH v1 08/13] IB/iser: Introduce pi_enable, pi_guard module parameters

2014-02-27 Thread Sagi Grimberg
the wire, only CRC is allowed. In the next phase, it is worth considering passing these parameters from iscsid via nlmsg. This will allow these parameters to be connection based rather than global. Signed-off-by: Alex Tabachnik al...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com

[PATCH v1 05/13] IB/iser: Replace fastreg descriptor valid bool with indicators container

2014-02-27 Thread Sagi Grimberg
In T10-PI support we will have memory keys for protection buffers and signature transactions. We prefer to compact indicators rather than keeping multiple bools. This commit does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al

[PATCH v1 10/13] IB/iser: Support T10-PI operations

2014-02-27 Thread Sagi Grimberg
. In addition Introduce iser_reg_sig_mr which performs fast registration work-request for a signature enabled memory region (IB_WR_REG_SIG_MR). In this routine we set all the protection relevants for the device to offload protection data-transfer and verification. Signed-off-by: Sagi Grimberg sa

[PATCH v1 11/13] SCSI/libiscsi: Add check_protection callback for transports

2014-02-27 Thread Sagi Grimberg
: APPTAG_CHECK_FAILED - 0x3: REFTAG_CHECK_FAILED Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/scsi/libiscsi.c | 32 include/scsi/libiscsi.h |4 include/scsi

[PATCH v1 07/13] IB/iser: Generalize fall_to_bounce_buf routine

2014-02-27 Thread Sagi Grimberg
Unaligned SG-lists may also happen for protection information. Genrelize bounce buffer routine to handle any iser_data_buf which may be data and/or protection. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser

[PATCH v1 00/13] T10-PI support for iSER initiator

2014-02-27 Thread Sagi Grimberg
Tabachnik (2): IB/iser: Introduce pi_enable, pi_guard module parameters IB/iser: Initialize T10-PI resources Sagi Grimberg (11): IB/iser: Avoid FRWR notation, use fastreg instead IB/iser: Push the desicion what memory key to use into fast_reg_mr routine IB/iser: Move fast_reg_descriptor

[PATCH v1 09/13] IB/iser: Initialize T10-PI resources

2014-02-27 Thread Sagi Grimberg
From: Alex Tabachnik al...@mellanox.com During connection establishment we also initiatlize T10-PI resources (QP, PI contexts) in order to support SCSI's protection operations. Signed-off-by: Alex Tabachnik al...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers

[PATCH v1 13/13] IB/iser: Publish T10-PI support to SCSI midlayer

2014-02-27 Thread Sagi Grimberg
After allocating a scsi_host we set protection types and guard type supported. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.c | 23 ++- 1 files changed, 22 insertions(+), 1

[PATCH v1 01/13] IB/iser: Avoid FRWR notation, use fastreg instead

2014-02-27 Thread Sagi Grimberg
FRWR stands for fast registration work request. We want to avoid calling the fastreg pool with that name, instead we name it fastreg which stands for fast registration. This pool will include more elements in the future, so it is a good idea to generalize the name. Signed-off-by: Sagi Grimberg

Re: [PATCH v1 1/3] IB/srp: Fix crash when unmapping data loop

2014-02-27 Thread Sagi Grimberg
On 2/24/2014 5:24 PM, Bart Van Assche wrote: On 02/24/14 15:30, Sagi Grimberg wrote: When unmapping request data, it is unsafe automatically decrement req-nfmr regardless of it's value. This may happen since IO and reconnect flow may run concurrently resulting in req-nfmr = -1 and falsely call

Re: [PATCH v1 3/3] IB/srp: Protect free_tx iu list from concurrent flows

2014-02-27 Thread Sagi Grimberg
On 2/24/2014 5:38 PM, Bart Van Assche wrote: On 02/24/14 15:30, Sagi Grimberg wrote: From: Vu Pham vuhu...@mellanox.com srp_reconnect_rport() serializes calls of srp_rport_reconnect() with srp_queuecommand(), srp_abort(), srp_reset_device(), srp_reset_host() via rport-mutex and also blocks

Re: [PATCH v1 11/13] SCSI/libiscsi: Add check_protection callback for transports

2014-03-03 Thread Sagi Grimberg
On 3/3/2014 6:41 AM, Mike Christie wrote: On 02/27/2014 05:13 AM, Sagi Grimberg wrote: diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 4046241..a58a6bb 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -395,6 +395,10 @@ static int iscsi_prep_scsi_cmd_pdu

Re: [PATCH v1 10/13] IB/iser: Support T10-PI operations

2014-03-03 Thread Sagi Grimberg
On 3/3/2014 6:44 AM, Mike Christie wrote: On 02/27/2014 05:13 AM, Sagi Grimberg wrote: diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c index 58e14c7..7fd95fe 100644 --- a/drivers/infiniband/ulp/iser/iser_initiator.c +++ b/drivers

Re: [PATCH 4/6] iser-target: Fix post_send_buf_count for RDMA READ/WRITE

2014-03-04 Thread Sagi Grimberg
On 3/4/2014 9:49 AM, Or Gerlitz wrote: On 04/03/2014 02:01, Nicholas A. Bellinger wrote: This is necessary because even though IB_SEND_SIGNALED is not set for RDMA WRITEs + READs, during a QP failure event the work requests will be returned with exception status from the TX completion queue.

Re: [PATCH v1 10/13] IB/iser: Support T10-PI operations

2014-03-04 Thread Sagi Grimberg
On 3/4/2014 11:38 AM, Or Gerlitz wrote: On 03/03/2014 06:44, Mike Christie wrote: The xmit_task callout does handle failures like EINVAL. If the above map calls fail then you would get infinite retries. You would currently want to do the mapping in the init_task callout instead. If it makes it

Re: [PATCH v1 10/13] IB/iser: Support T10-PI operations

2014-03-04 Thread Sagi Grimberg
On 3/4/2014 1:25 PM, Or Gerlitz wrote: On 04/03/2014 11:59, Sagi Grimberg wrote: On 3/4/2014 11:38 AM, Or Gerlitz wrote: On 03/03/2014 06:44, Mike Christie wrote: The xmit_task callout does handle failures like EINVAL. If the above map calls fail then you would get infinite retries. You would

Re: [PATCH 5/6] iser-target: Ignore completions for FRWRs in isert_cq_tx_work

2014-03-04 Thread Sagi Grimberg
. This is necessary because even though IB_SEND_SIGNALED is not set for either work request, during a QP failure event the work requests will be returned with exception status from the TX completion queue. Cc: Sagi Grimberg sa...@mellanox.com Cc: Or Gerlitz ogerl...@mellanox.com Signed-off-by: Nicholas

Re: [PATCH 0/6] iser-target: Fix active I/O shutdown related issues

2014-03-04 Thread Sagi Grimberg
On 3/4/2014 2:00 AM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Hi Or Sagi, This series addresses a number of active I/O shutdown related issues in iser-target code that have come up recently during stress testing. Note there is still a seperate iser-target

Re: [PATCH v1 10/13] IB/iser: Support T10-PI operations

2014-03-04 Thread Sagi Grimberg
On 3/4/2014 6:16 PM, Or Gerlitz wrote: On 04/03/2014 16:44, Sagi Grimberg wrote: @@ -1707,10 +1707,17 @@ int iscsi_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc) goto prepd_fault

Re: [PATCH 0/6] iser-target: Fix active I/O shutdown related issues

2014-03-05 Thread Sagi Grimberg
On 3/5/2014 2:06 AM, Nicholas A. Bellinger wrote: On Tue, 2014-03-04 at 17:17 +0200, Sagi Grimberg wrote: On 3/4/2014 2:00 AM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Hi Or Sagi, This series addresses a number of active I/O shutdown related issues in iser

[PATCH v2 07/13] IB/iser: Generalize fall_to_bounce_buf routine

2014-03-05 Thread Sagi Grimberg
Unaligned SG-lists may also happen for protection information. Genrelize bounce buffer routine to handle any iser_data_buf which may be data and/or protection. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/ulp/iser

[PATCH v2 00/13] T10-PI support for iSER initiator

2014-03-05 Thread Sagi Grimberg
the block layer merges bios. - Don't fail connections on devices without DIF support - warn and continue without DIF. - reword FR - FastReg Alex Tabachnik (2): IB/iser: Introduce pi_enable, pi_guard module parameters IB/iser: Initialize T10-PI resources Sagi Grimberg (11): IB/iser: Avoid FRWR

[PATCH v2 12/13] IB/iser: Implement check_protection

2014-03-05 Thread Sagi Grimberg
Once the iSCSI transaction is completed we must imeplement check_protection in order to notify on DIF errors that may have occured. The routine boils down to calling ib_check_mr_status to get the signature status of the transaction. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off

[PATCH v2 05/13] IB/iser: Replace fastreg descriptor valid bool with indicators container

2014-03-05 Thread Sagi Grimberg
In T10-PI support we will have memory keys for protection buffers and signature transactions. We prefer to compact indicators rather than keeping multiple bools. This commit does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al

[PATCH v2 01/13] IB/iser: Avoid FRWR notation, use fastreg instead

2014-03-05 Thread Sagi Grimberg
FRWR stands for fast registration work request. We want to avoid calling the fastreg pool with that name, instead we name it fastreg which stands for fast registration. This pool will include more elements in the future, so it is a good idea to generalize the name. Signed-off-by: Sagi Grimberg

[PATCH v2 02/13] IB/iser: Push the decision what memory key to use into fast_reg_mr routine

2014-03-05 Thread Sagi Grimberg
of repeating the logic of which key to use. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp/iser/iser_memory.c | 101 + 1 files changed, 59

[PATCH v2 11/13] SCSI/libiscsi: Add check_protection callback for transports

2014-03-05 Thread Sagi Grimberg
: APPTAG_CHECK_FAILED - 0x3: REFTAG_CHECK_FAILED Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/scsi/libiscsi.c | 32 include/scsi/libiscsi.h |4 include/scsi

[PATCH v2 09/13] IB/iser: Initialize T10-PI resources

2014-03-05 Thread Sagi Grimberg
From: Alex Tabachnik al...@mellanox.com During connection establishment we also initiatlize T10-PI resources (QP, PI contexts) in order to support SCSI's protection operations. Signed-off-by: Alex Tabachnik al...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers

[PATCH v2 03/13] IB/iser: Move fast_reg_descriptor initialization to a function

2014-03-05 Thread Sagi Grimberg
fastreg descriptor will include protection information context. In order to place the logic in one place we introduce iser_create_fr_desc function. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com

[PATCH v2 04/13] IB/iser: Keep IB device attributes under iser_device

2014-03-05 Thread Sagi Grimberg
For T10-PI offload support, we will need to know the device signature offload capability upon every connection establishment. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp

[PATCH v2 13/13] IB/iser: Publish T10-PI support to SCSI midlayer

2014-03-05 Thread Sagi Grimberg
After allocating a scsi_host we set protection types and guard type supported. Signed-off-by: Sagi Grimberg sa...@mellanox.com Signed-off-by: Alex Tabachnik al...@mellanox.com --- drivers/infiniband/ulp/iser/iscsi_iser.c | 23 ++- 1 files changed, 22 insertions(+), 1

[PATCH v2 06/13] IB/iser: Generalize iser_unmap_task_data and finalize_rdma_unaligned_sg

2014-03-05 Thread Sagi Grimberg
This routines operates on data buffers and may also work with protection infomation buffers. So we generalize them to handle an iser_data_buf which can be the command data or command protection information. This patch does not change any functionality. Signed-off-by: Sagi Grimberg sa

[PATCH v2 08/13] IB/iser: Introduce pi_enable, pi_guard module parameters

2014-03-05 Thread Sagi Grimberg
the wire, only CRC is allowed. In the next phase, it is worth considering passing these parameters from iscsid via nlmsg. This will allow these parameters to be connection based rather than global. Signed-off-by: Alex Tabachnik al...@mellanox.com Signed-off-by: Sagi Grimberg sa...@mellanox.com

<    1   2   3   4   5   6   7   8   9   10   >