From: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Sagi Grimberg <sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Chuck Lever <chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH rdma-rc v2 0/4] Remove mlx5 support for IB_DEVICE_LOCAL_DMA_LKEY
Date: Fri, 25 Sep 2015 10:52:30 -0400 [thread overview]
Message-ID: <56055FAE.5000906@redhat.com> (raw)
In-Reply-To: <1443080064-28760-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3158 bytes --]
On 09/24/2015 03:34 AM, Sagi Grimberg wrote:
> The Connect-IB device has a specific issue with memory registration using
> the reserved lkey (device global_dma_lkey). This caused user-space memory
> registration which usually uses cached pre-registered memory keys to fail
> due to a device access error during registration. kernel-space memory
> registrations used an internal instance a physical memory key allocated with
> the private pd context, so this error didn't happen there.
>
> Since the reserved lkey is not fully functional, remove the support for
> it altogether. Jason's patches commit 96249d70dd70 ("IB/core: Guarantee
> that a local_dma_lkey is available") address consumers by allocating a physical
> lkey per PD in the core layer. It also allows mlx5 driver to get rid of it's
> private physical lkey (patch #2).
>
> The ConnectX-4 device should have this issue fixed so the capability will be
> restored depending on a FW query information.
>
> Also, fix NFS client to use the PD local_dma_lkey instead of the device
> local_dma_lkey (which requires a missing check of the device capability in
> frwr mode). And, fix iser initiator which encountered some issues when
> registering a signature capable memory region with an indirect dma_lkey
> area. The fix covers a larger ground as it does not allow using a global MR
> with remote access (long standing issue) but on the way makes the specific
> registration issue go away.
>
> Thanks to Haggai for catching this early enough.
>
> Many thanks for the reviews.
>
> Changes from v1:
> - Fixed changelog of patch #3 (comments from OrG)
>
> Changes from v0:
> - Replace xprtrdma patch to Chuck's one
> - Fixed typo in iser modparam description
>
> Chuck Lever (1):
> xprtrdma: Replace global lkey with lkey local to PD
>
> Sagi Grimberg (3):
> IB/iser: Add module parameter for always register memory
> IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY
> IB/mlx5: Remove pa_lkey usages
>
> drivers/infiniband/hw/mlx5/main.c | 67 +---------------------------
> drivers/infiniband/hw/mlx5/mlx5_ib.h | 2 -
> drivers/infiniband/hw/mlx5/qp.c | 4 +-
> drivers/infiniband/ulp/iser/iscsi_iser.c | 5 +++
> drivers/infiniband/ulp/iser/iscsi_iser.h | 1 +
> drivers/infiniband/ulp/iser/iser_memory.c | 18 +++++---
> drivers/infiniband/ulp/iser/iser_verbs.c | 21 +++++----
> drivers/net/ethernet/mellanox/mlx5/core/fw.c | 22 ---------
> include/linux/mlx5/device.h | 11 -----
> include/linux/mlx5/driver.h | 1 -
> net/sunrpc/xprtrdma/fmr_ops.c | 19 --------
> net/sunrpc/xprtrdma/frwr_ops.c | 5 ---
> net/sunrpc/xprtrdma/physical_ops.c | 10 +----
> net/sunrpc/xprtrdma/verbs.c | 2 +-
> net/sunrpc/xprtrdma/xprt_rdma.h | 1 -
> 15 files changed, 35 insertions(+), 154 deletions(-)
>
Hi Sagi,
I've applied this for 4.3-rc. Thanks!
--
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
GPG KeyID: 0E572FDD
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 884 bytes --]
prev parent reply other threads:[~2015-09-25 14:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-24 7:34 [PATCH rdma-rc v2 0/4] Remove mlx5 support for IB_DEVICE_LOCAL_DMA_LKEY Sagi Grimberg
[not found] ` <1443080064-28760-1-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-09-24 7:34 ` [PATCH rdma-rc v2 1/4] xprtrdma: Replace global lkey with lkey local to PD Sagi Grimberg
[not found] ` <1443080064-28760-2-git-send-email-sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-09-24 12:57 ` Anna Schumaker
[not found] ` <5603F34F.3050505-ZwjVKphTwtPQT0dZR+AlfA@public.gmane.org>
2015-09-24 13:04 ` Sagi Grimberg
2015-09-24 7:34 ` [PATCH rdma-rc v2 2/4] IB/iser: Add module parameter for always register memory Sagi Grimberg
2015-09-24 7:34 ` [PATCH rdma-rc v2 3/4] IB/mlx5: Remove support for IB_DEVICE_LOCAL_DMA_LKEY Sagi Grimberg
2015-09-24 7:34 ` [PATCH rdma-rc v2 4/4] IB/mlx5: Remove pa_lkey usages Sagi Grimberg
2015-09-25 14:52 ` Doug Ledford [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56055FAE.5000906@redhat.com \
--to=dledford-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=chuck.lever-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sagig-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).