Re: RFC: Immediate data support for SRP

2015-07-20 Thread Sagi Grimberg
On 7/20/2015 12:43 AM, Or Gerlitz wrote: On Sun, Jul 19, 2015 at 7:07 PM, Sagi Grimberg sa...@dev.mellanox.co.il wrote: On 7/16/2015 6:25 PM, Bart Van Assche wrote: I agree it would definitely help as the lack of immediate data emphasizes the additional latency of doing rdma reads. Sagi,

Re: [PATCH v1] core: Remove the ib_reg_phys_mr() and ib_rereg_phys_mr() verbs

2015-07-20 Thread Chuck Lever
Hi Doug- Are you comfortable ack’ing this one? If so, I can carry it in my nfs-rdma-for-4.3 series following the patch that removes the last ib_reg_phys_mr() call site. On Jul 14, 2015, at 4:11 PM, Chuck Lever chuck.le...@oracle.com wrote: The verbs are obsolete. The ib_rereg_phys_mr() verb

[PATCH v3 14/15] xprtrdma: Count RDMA_NOMSG type calls

2015-07-20 Thread Chuck Lever
RDMA_NOMSG type calls are less efficient than RDMA_MSG. Count NOMSG calls so administrators can tell if they happen to be used more than expected. Signed-off-by: Chuck Lever chuck.le...@oracle.com Tested-by: Devesh Sharma devesh.sha...@avagotech.com --- net/sunrpc/xprtrdma/rpc_rdma.c |1 +

[PATCH v3 11/15] xprtrdma: Fix XDR tail buffer marshalling

2015-07-20 Thread Chuck Lever
Currently xprtrdma appends an extra chunk element to the RPC/RDMA read chunk list of each NFSv4 WRITE compound. The extra element contains the final GETATTR operation in the compound. The result is an extra RDMA READ operation to transfer a very short piece of each NFS WRITE compound (typically

[PATCH v3 10/15] xprtrdma: Don't provide a reply chunk when expecting a short reply

2015-07-20 Thread Chuck Lever
Currently Linux always offers a reply chunk, even when the reply can be sent inline (ie. is smaller than 1KB). On the client, registering a memory region can be expensive. A server may choose not to use the reply chunk, wasting the cost of the registration. This is a change only for RPC replies

[PATCH v3 15/15] core: Remove the ib_reg_phys_mr() and ib_rereg_phys_mr() verbs

2015-07-20 Thread Chuck Lever
The verbs are obsolete. The ib_rereg_phys_mr() verb is not used by kernel ULPs, and the last ib_reg_phys_mr() call site in the kernel tree has now been removed. Two staging tree call sites remain in the Lustre client. The Lustre team has been notified of the deprecation of reg_phys_mr.

[PATCH RFC] svcrdma: Fix possible over population fast_reg_page_list

2015-07-20 Thread Sagi Grimberg
When accounting the needed_pages, we need to look into the page_list-max_page_list_len and not the global context xprt-sc_frmr_pg_list_len. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- net/sunrpc/xprtrdma/svc_rdma_recvfrom.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)

Re: [PATCH] mlx5: Fix missing device local_dma_lkey

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 12:54 PM, Sagi Grimberg sa...@mellanox.com wrote: The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY but does not set the the device local_dma_lkey. This breaks rpcrdma drivers. Query and set this lkey when creating the device resources. Wow. This

[PATCH v3 01/15] xprtrdma: Make xprt_setup_rdma() agnostic to family of server address

2015-07-20 Thread Chuck Lever
In particular, recognize when an IPv6 connection is bound. Signed-off-by: Chuck Lever chuck.le...@oracle.com Tested-by: Devesh Sharma devesh.sha...@avagotech.com --- net/sunrpc/xprtrdma/transport.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git

[PATCH v3 00/15] NFS/RDMA client side for Linux 4.3

2015-07-20 Thread Chuck Lever
Several important client-side performance and scalability improvements are made in this series, proposed for the 4.3 kernel, including: - Increase maximum RPC/RDMA credits to 128 - Increase maximum NFS/RDMA r/wsize to one megabyte - Prefer inline rather than reply chunk replies And these fixes:

[PATCH v3 02/15] xprtrdma: Raise maximum payload size to one megabyte

2015-07-20 Thread Chuck Lever
The point of larger rsize and wsize is to reduce the per-byte cost of memory registration and deregistration. Modern HCAs can typically handle a megabyte or more with a single registration operation. Signed-off-by: Chuck Lever chuck.le...@oracle.com Reviewed-by: Devesh Sharma

[PATCH v3 12/15] xprtrdma: Fix large NFS SYMLINK calls

2015-07-20 Thread Chuck Lever
Repair how rpcrdma_marshal_req() chooses which RDMA message type to use for large non-WRITE operations so that it picks RDMA_NOMSG in the correct situations, and sets up the marshaling logic to SEND only the RPC/RDMA header. Large NFSv2 SYMLINK requests now use RDMA_NOMSG calls. The Linux NFS

[PATCH v3 13/15] xprtrdma: Clean up xprt_rdma_print_stats()

2015-07-20 Thread Chuck Lever
checkpatch.pl complained about the seq_printf() format string split across lines and the use of %Lu. Signed-off-by: Chuck Lever chuck.le...@oracle.com Tested-by: Devesh Sharma devesh.sha...@avagotech.com --- net/sunrpc/xprtrdma/transport.c | 48 +++ 1 file

Re: [PATCH v1] core: Remove the ib_reg_phys_mr() and ib_rereg_phys_mr() verbs

2015-07-20 Thread Doug Ledford
On Jul 20, 2015, at 2:31 PM, Chuck Lever chuck.le...@oracle.com wrote: Hi Doug- Are you comfortable ack’ing this one? If so, I can carry it in my nfs-rdma-for-4.3 series following the patch that removes the last ib_reg_phys_mr() call site. Yes. Acked-by: Doug Ledford

[PATCH v3 06/15] xprtrdma: Clean up rpcrdma_ia_open()

2015-07-20 Thread Chuck Lever
Untangle the end of rpcrdma_ia_open() by moving DMA MR set-up, which is different for each registration method, to the .ro_open functions. This is refactoring only. No behavior change is expected. Signed-off-by: Chuck Lever chuck.le...@oracle.com Tested-by: Devesh Sharma

[PATCH v3 08/15] xprtrdma: Account for RPC/RDMA header size when deciding to inline

2015-07-20 Thread Chuck Lever
When the size of the RPC message is near the inline threshold (1KB), the client would allow messages to be sent that were a few bytes too large. When marshaling RPC/RDMA requests, ensure the combined size of RPC/RDMA header and RPC header do not exceed the inline threshold. Endpoints typically

[PATCH v3 07/15] xprtrdma: Remove logic that constructs RDMA_MSGP type calls

2015-07-20 Thread Chuck Lever
RDMA_MSGP type calls insert a zero pad in the middle of the RPC message to align the RPC request's data payload to the server's alignment preferences. A server can then page flip the payload into place to avoid a data copy in certain circumstances. However: 1. The client has to have a priori

[PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will either grab the device's local_dma_key if one is available, or it will call ib_get_dma_mr() which is a 100% guaranteed fallback. There is never any need to use the ib_reg_phys_mr() code path in

[PATCH v3 04/15] xprtrdma: Don't fall back to PHYSICAL memory registration

2015-07-20 Thread Chuck Lever
PHYSICAL memory registration uses a single rkey for all of the client's memory, thus is insecure. It is still useful in some cases for testing. Retain the ability to select PHYSICAL memory registration capability via /proc/sys/sunrpc/rdma_memreg_strategy, but don't fall back to it if the HCA does

[PATCH v3 09/15] xprtrdma: Always provide a write list when sending NFS READ

2015-07-20 Thread Chuck Lever
The client has been setting up a reply chunk for NFS READs that are smaller than the inline threshold. This is not efficient: both the server and client CPUs have to copy the reply's data payload into and out of the memory region that is then transferred via RDMA. Using the write list, the data

[PATCH v3 03/15] xprtrdma: Increase default credit limit

2015-07-20 Thread Chuck Lever
In preparation for similar increases on NFS/RDMA servers, bump the advertised credit limit for RPC/RDMA to 128. This allocates some extra resources, but the client will continue to allow only the number of RPCs in flight that the server requests via its advertised credit limit. Signed-off-by:

Re: [RESEND PATCH v2 1/2] x86/mm/pat, drivers/infiniband/ipath: replace WARN() with pr_warn()

2015-07-20 Thread Doug Ledford
On Jul 17, 2015, at 5:07 PM, Luis R. Rodriguez mcg...@do-not-panic.com wrote: From: Luis R. Rodriguez mcg...@suse.com WARN() may confuse users, fix that. ipath_init_one() is part the device's probe so this would only be triggered if a corresponding device was found. Signed-off-by:

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Jason Gunthorpe
On Sun, Jul 19, 2015 at 08:33:24AM +0300, Sagi Grimberg wrote: I was thinking that the user won't explicitly say which key it registers and it will be decided from the registration itself. Meaning, the registration code will do: Please don't.. if (access | (IB_ACCESS_REMOTE_READ |

Re: [PATCH RFC] svcrdma: Fix possible over population fast_reg_page_list

2015-07-20 Thread Sagi Grimberg
On 7/20/2015 8:13 PM, Chuck Lever wrote: On Jul 20, 2015, at 1:00 PM, Sagi Grimberg sa...@mellanox.com wrote: When accounting the needed_pages, we need to look into the page_list-max_page_list_len and not the global context xprt-sc_frmr_pg_list_len. Signed-off-by: Sagi Grimberg

RE: [PATCH RFC] svcrdma: Fix possible over population fast_reg_page_list

2015-07-20 Thread Steve Wise
-Original Message- From: linux-nfs-ow...@vger.kernel.org [mailto:linux-nfs-ow...@vger.kernel.org] On Behalf Of Sagi Grimberg Sent: Monday, July 20, 2015 12:00 PM To: linux-...@vger.kernel.org; linux-rdma@vger.kernel.org Cc: Chuck Lever; Steve Wise Subject: [PATCH RFC] svcrdma:

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 07:27:52PM +0300, Sagi Grimberg wrote: I'm thinking now that this should have an input argument of block_size. Maybe in the future ULPs would want to register huge pages, it will be a shame to map it into PAGE_SIZE chunks... Why wouldn't it just transparently support

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Jason Gunthorpe
On Sun, Jul 19, 2015 at 08:45:26AM +0300, Sagi Grimberg wrote: /** * ib_mr_set_sg() - populate memory region buffers * array from a SG list * @mr: memory region * @sg: sg list * @sg_nents:number of elements in the sg * * Can fail if the HW

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Sagi Grimberg
On 7/20/2015 7:23 PM, Jason Gunthorpe wrote: On Sun, Jul 19, 2015 at 08:33:24AM +0300, Sagi Grimberg wrote: I was thinking that the user won't explicitly say which key it registers and it will be decided from the registration itself. Meaning, the registration code will do: Please don't.. if

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Sagi Grimberg
On 7/20/2015 8:00 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2015 at 07:27:52PM +0300, Sagi Grimberg wrote: I'm thinking now that this should have an input argument of block_size. Maybe in the future ULPs would want to register huge pages, it will be a shame to map it into PAGE_SIZE chunks...

Re: [PATCH RFC] svcrdma: Fix possible over population fast_reg_page_list

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 1:00 PM, Sagi Grimberg sa...@mellanox.com wrote: When accounting the needed_pages, we need to look into the page_list-max_page_list_len and not the global context xprt-sc_frmr_pg_list_len. Signed-off-by: Sagi Grimberg sa...@mellanox.com ---

Re: RFC: Immediate data support for SRP

2015-07-20 Thread Or Gerlitz
On 7/20/2015 12:44 PM, Sagi Grimberg wrote: On 7/20/2015 12:43 AM, Or Gerlitz wrote: On Sun, Jul 19, 2015 at 7:07 PM, Sagi Grimberg sa...@dev.mellanox.co.il wrote: On 7/16/2015 6:25 PM, Bart Van Assche wrote: I agree it would definitely help as the lack of immediate data emphasizes the

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Sagi Grimberg
I'm thinking now that this should have an input argument of block_size. Maybe in the future ULPs would want to register huge pages, it will be a shame to map it into PAGE_SIZE chunks... Why wouldn't it just transparently support huge pages? sg seems to have enough information. I'm not sure I

Re: [BUG] mellanox IB driver fails to load on large config

2015-07-20 Thread Alex Thorlton
On Thu, Jul 16, 2015 at 09:25:37AM +0300, Or Gerlitz wrote: On 7/14/2015 11:28 PM, Alex Thorlton wrote: We see the same exact messages on 4.1-rc8. does this solves the problem? diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index ad31e47..c8ae3b9 100644 ---

RE: nes_store_flash_data() bugged?

2015-07-20 Thread Latif, Faisal
Hi Alexey, You are right and the flash code is with 0[xX] and not starting with xX and p[0] checks are useless on marked line. This is from early development and did not get changed. Thanks Faisal -Original Message- From: Alexey Dobriyan [mailto:adobri...@gmail.com] Sent: Friday, July

[PATCH] mlx5: Fix missing device local_dma_lkey

2015-07-20 Thread Sagi Grimberg
The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY but does not set the the device local_dma_lkey. This breaks rpcrdma drivers. Query and set this lkey when creating the device resources. Signed-off-by: Sagi Grimberg sa...@mellanox.com --- drivers/infiniband/hw/mlx5/main.c

Re: [PATCH] mlx5: Fix missing device local_dma_lkey

2015-07-20 Thread Sagi Grimberg
On 7/20/2015 8:08 PM, Chuck Lever wrote: On Jul 20, 2015, at 12:54 PM, Sagi Grimberg sa...@mellanox.com wrote: The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY but does not set the the device local_dma_lkey. This breaks rpcrdma drivers. Query and set this lkey when creating

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
-Original Message- From: Steve Wise [mailto:sw...@opengridcomputing.com] Sent: Monday, July 20, 2015 4:34 PM To: 'Jason Gunthorpe'; 'Tom Talpey' Cc: 'Chuck Lever'; 'linux-rdma@vger.kernel.org'; 'linux-...@vger.kernel.org' Subject: RE: [PATCH v3 05/15] xprtrdma: Remove last

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 1:55 PM, Chuck Lever wrote: On Jul 20, 2015, at 4:34 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will either grab the device's local_dma_key if one is available, or it will

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 5:55 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 1:55 PM, Chuck Lever wrote: On Jul 20, 2015, at 4:34 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
Hi Tom- On Jul 20, 2015, at 4:34 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will either grab the device's local_dma_key if one is available, or it will call ib_get_dma_mr() which is a

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
-Original Message- From: linux-nfs-ow...@vger.kernel.org [mailto:linux-nfs-ow...@vger.kernel.org] On Behalf Of Jason Gunthorpe Sent: Monday, July 20, 2015 4:06 PM To: Tom Talpey; Steve Wise Cc: Chuck Lever; linux-rdma@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 2:16 PM, Steve Wise wrote: -Original Message- From: linux-nfs-ow...@vger.kernel.org [mailto:linux-nfs-ow...@vger.kernel.org] On Behalf Of Jason Gunthorpe Sent: Monday, July 20, 2015 4:06 PM To: Tom Talpey; Steve Wise Cc: Chuck Lever; linux-rdma@vger.kernel.org;

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 01:34:16PM -0700, Tom Talpey wrote: On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will either grab the device's local_dma_key if one is available, or it will call ib_get_dma_mr() which is a 100%

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
Based on that, should we remove the cxgb3 driver as well? Or at least can you fix it up to at least fail get_dma_mr if there is too much ram? I would like to keep cxgb3 around. I can add code to fail if the memory is 32b. Do you know how I get the amount of available ram?

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 04:37:15PM -0500, Steve Wise wrote: From: Steve Wise [mailto:sw...@opengridcomputing.com] Sent: Monday, July 20, 2015 4:34 PM To: 'Jason Gunthorpe'; 'Tom Talpey' Cc: 'Chuck Lever'; 'linux-rdma@vger.kernel.org'; 'linux-...@vger.kernel.org' Subject: RE: [PATCH

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 03:04:21PM -0700, Tom Talpey wrote: B) why bother to check? Are machines with 4GB interesting, and worth supporting a special optimization? mainline drivers shouldn't silently malfunction. Jason -- To unsubscribe from this list: send the line unsubscribe linux-rdma in

Re: Kernel fast memory registration API proposal [RFC]

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 08:07:00PM +0300, Sagi Grimberg wrote: On 7/20/2015 8:00 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2015 at 07:27:52PM +0300, Sagi Grimberg wrote: I'm thinking now that this should have an input argument of block_size. Maybe in the future ULPs would want to register

Re: [PATCH] mlx5: Fix missing device local_dma_lkey

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 08:09:57PM +0300, Sagi Grimberg wrote: On 7/20/2015 8:08 PM, Chuck Lever wrote: On Jul 20, 2015, at 12:54 PM, Sagi Grimberg sa...@mellanox.com wrote: The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY but does not set the the device local_dma_lkey.

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an ib_get_dma_mr() verb. Thus rpcrdma_ia_open() will either grab the device's local_dma_key if one is available, or it will call ib_get_dma_mr() which is a 100% guaranteed fallback. I recall that in the past, some providers did

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 3:17 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2015 at 03:04:21PM -0700, Tom Talpey wrote: B) why bother to check? Are machines with 4GB interesting, and worth supporting a special optimization? mainline drivers shouldn't silently malfunction. I meant why bother to check, just

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
-Original Message- From: Tom Talpey [mailto:t...@talpey.com] Sent: Monday, July 20, 2015 5:04 PM To: Steve Wise; 'Jason Gunthorpe' Cc: 'Chuck Lever'; linux-rdma@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
-Original Message- From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] Sent: Monday, July 20, 2015 5:54 PM To: Steve Wise Cc: 'Tom Talpey'; 'Chuck Lever'; linux-rdma@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH v3 05/15] xprtrdma: Remove last

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 05:43:34PM -0500, Steve Wise wrote: Yah, that seems much better.. With the patch set I am working on this will mean all ULPs will fail to create a kernel PD on cxgb3 if the above triggers. If our error handling works that should just make it unuable from kernel

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 6:41 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 06:31:11PM -0400, Chuck Lever wrote: On Jul 20, 2015, at 6:26 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 03:03:11PM -0400, Chuck Lever

Re: RFC: Immediate data support for SRP

2015-07-20 Thread Bart Van Assche
On 07/19/2015 02:25 PM, Vasiliy Tolstov wrote: On 7/16/2015 6:25 PM, Bart Van Assche wrote: it is easy to add to the SRP initiator and target drivers. Implementations exist in the ib_srp-backport initiator driver and the SCST SRP target driver (see also

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 8:11 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 4:36 PM, Chuck Lever wrote: On Jul 20, 2015, at 6:41 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 06:31:11PM -0400, Chuck Lever wrote: On Jul 20, 2015, at 6:26 PM, Jason

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 5:34 PM, Chuck Lever wrote: On Jul 20, 2015, at 8:11 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 4:36 PM, Chuck Lever wrote: On Jul 20, 2015, at 6:41 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 06:31:11PM -0400, Chuck Lever

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 03:03:11PM -0400, Chuck Lever wrote: + iov-length = size; + iov-lkey = ia-ri_have_dma_lkey ? + ia-ri_dma_lkey : ia-ri_bind_mem-lkey; + rb-rg_size = size; + rb-rg_owner = NULL; return rb; There is something odd looking

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Chuck Lever
On Jul 20, 2015, at 6:26 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 03:03:11PM -0400, Chuck Lever wrote: +iov-length = size; +iov-lkey = ia-ri_have_dma_lkey ? +ia-ri_dma_lkey : ia-ri_bind_mem-lkey; +rb-rg_size

RE: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Steve Wise
-Original Message- From: Jason Gunthorpe [mailto:jguntho...@obsidianresearch.com] Sent: Monday, July 20, 2015 5:14 PM To: Steve Wise Cc: 'Tom Talpey'; 'Chuck Lever'; linux-rdma@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH v3 05/15] xprtrdma: Remove last

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 06:31:11PM -0400, Chuck Lever wrote: On Jul 20, 2015, at 6:26 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 03:03:11PM -0400, Chuck Lever wrote: + iov-length = size; + iov-lkey = ia-ri_have_dma_lkey ? +

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Jason Gunthorpe
On Mon, Jul 20, 2015 at 05:41:27PM -0500, Steve Wise wrote: B) why bother to check? Are machines with 4GB interesting, and worth supporting a special optimization? No, but cxgb3 is still interesting to user applications, and perhaps NFSRDMA using FRMRs. Doesn't look like the NFS client

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 3:21 PM, Chuck Lever wrote: On Jul 20, 2015, at 5:55 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 1:55 PM, Chuck Lever wrote: On Jul 20, 2015, at 4:34 PM, Tom Talpey t...@talpey.com wrote: On 7/20/2015 12:03 PM, Chuck Lever wrote: All HCA providers have an

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 4:36 PM, Chuck Lever wrote: On Jul 20, 2015, at 6:41 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20, 2015 at 06:31:11PM -0400, Chuck Lever wrote: On Jul 20, 2015, at 6:26 PM, Jason Gunthorpe jguntho...@obsidianresearch.com wrote: On Mon, Jul 20,

Re: [PATCH v3 05/15] xprtrdma: Remove last ib_reg_phys_mr() call site

2015-07-20 Thread Tom Talpey
On 7/20/2015 3:41 PM, Steve Wise wrote: -Original Message- From: Tom Talpey [mailto:t...@talpey.com] Sent: Monday, July 20, 2015 5:04 PM To: Steve Wise; 'Jason Gunthorpe' Cc: 'Chuck Lever'; linux-rdma@vger.kernel.org; linux-...@vger.kernel.org Subject: Re: [PATCH v3 05/15] xprtrdma:

Re: RFC: Immediate data support for SRP

2015-07-20 Thread Bart Van Assche
On 07/19/2015 09:07 AM, Sagi Grimberg wrote: On 7/16/2015 6:25 PM, Bart Van Assche wrote: As you probably know for write requests immediate data means sending the data in the same packet as the write command instead of sending it as a separate packet. This approach improves performance and

Re: [BUG] mellanox IB driver fails to load on large config

2015-07-20 Thread Alex Thorlton
On Mon, Jul 20, 2015 at 11:28:03AM -0500, Alex Thorlton wrote: I've got some time on the large machine later today. I'll give this a try then. I ran a boot with this patch applied: diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 83e80ab..c84aea0 100644 ---

Re: [PATCH 0/2] update ocrdma to dual license

2015-07-20 Thread Doug Ledford
On Jul 16, 2015, at 3:52 AM, Devesh Sharma devesh.sha...@avagotech.com wrote: We have received appropriate permissions from the code authors and would like to resubmit the patches to change to a dual-licensed driver. Thank-you. Please resubmit your patch. Include nothing but the