Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4038055pxf; Tue, 6 Apr 2021 06:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybpxslN3BXx+XYat0rRZv8oFvcLRlquecKijP6mlXvEYzaPgl7SQTRxElJ2JFz7ULNLFgq X-Received: by 2002:aa7:d599:: with SMTP id r25mr1408893edq.68.1617716219569; Tue, 06 Apr 2021 06:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617716219; cv=none; d=google.com; s=arc-20160816; b=ZeV29D53dPnm4x1FCsLwqMdmVX9V18iQ2Vp01VANqrrE5OFbDh85bwlcekHhDpKxaK uv9JYzcqgwtECZUjw/S9Q1JPuafgigrZI+Go4kRgm1g6Tk/EAJRlq1NxzUw7shIF66bV Qdm4iL+ap2jLhanj/MHYgLlmglpI8IPwtrVSZrCXaAsPvlIkIOid5V79Gg7XZ/YsMK5G OI6pZYuUm2eJ/AvFRA1cO9Jak0I3EClqsN+6JyJNGgqygi1Ba9br0jyKYnb6bas1gbLM HJLmbJJmRVeBaFEyoVD7NQg/CSUtePKzSTciZi5QYzJCSiMjpjkBIveBoGBiirh7Qb4W e5PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nA7rPvS6Kjv6enGLIxujJpDCOq70yhpgEHclGFPdrys=; b=K5neS1FgcPdYCfXXCH1gKPe/U1yudSEa11x0atURyn+OiLnrEEYucMnpA9gginWfT7 zkWQkGvYDTzsRIMA3KHAZcg4lTi0OHyfV/NT/ivsbH1sH8iwy9YLXeVhbMYr0mp3YJjq L5LBzZK/eKMQVqET/PcK3/JIgAaAaAl7hX2m6C05grC2BRcIzrH5sl5A2xbTa5dF8ctd KdaeQOZT5uwoWqDWYI2p2SJRp2cbVxwDobtz2bdVwLZn56iN/r3cQLy170hch5DPX6Np tUaVOuq8n7EYjnzbAfsTfOaYU+Q7aCDA0WXZ8Lbo7YXBJ7qbqcwalJbYVffTNxnIhpWX w9sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i+8SC5R9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si15845121ejg.664.2021.04.06.06.36.34; Tue, 06 Apr 2021 06:36:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i+8SC5R9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238367AbhDFG27 (ORCPT + 99 others); Tue, 6 Apr 2021 02:28:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:44028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237859AbhDFG26 (ORCPT ); Tue, 6 Apr 2021 02:28:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE35D61165; Tue, 6 Apr 2021 06:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617690530; bh=6qxictHF+/YqQWcR0awtfiLtRYlib8mn/Dx9axjfKg4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=i+8SC5R9QYYvQwgkzuDT4QnqR/LHddWxuZum0T0C3kxd6raLjcbfF1cvFl2Cec8Xm KhScYX6h4r8XG5j8aUB+B2/jprzuuPXY9FqnyK2nKPB+vdLVfp9goj46Wy4uHK+0Ra PZddOiDso6XZJeBYLq1uIw9rM48AGuy05sSGnzMZFNrnyCjZMGJCv51xn7hMBg++CF +dca19jOJJKcipn2OWRYvnKC9ngkedpdr+ZBuojGR6Bu10dtubDRP/koLNLtLoA/lF akfcfAruTov/1lG+Q+agKfPbZvwxlR1hCjO5x/uMyewyKscMUk4082lcCbzP0vJ/16 lfXW6Ibhc0a6A== Date: Tue, 6 Apr 2021 09:28:46 +0300 From: Leon Romanovsky To: Tom Talpey Cc: Doug Ledford , Jason Gunthorpe , Avihai Horon , Adit Ranadive , Anna Schumaker , Ariel Elior , Bart Van Assche , Bernard Metzler , Christoph Hellwig , Chuck Lever , "David S. Miller" , Dennis Dalessandro , Devesh Sharma , Faisal Latif , Jack Wang , Jakub Kicinski , "J. Bruce Fields" , Jens Axboe , Karsten Graul , Keith Busch , Lijun Ou , linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, Max Gurtovoy , Max Gurtovoy , "Md. Haris Iqbal" , Michael Guralnik , Michal Kalderon , Mike Marciniszyn , Naresh Kumar PBS , netdev@vger.kernel.org, Potnuri Bharat Teja , rds-devel@oss.oracle.com, Sagi Grimberg , samba-technical@lists.samba.org, Santosh Shilimkar , Selvin Xavier , Shiraz Saleem , Somnath Kotur , Sriharsha Basavapatna , Steve French , Trond Myklebust , VMware PV-Drivers , Weihang Li , Yishai Hadas , Zhu Yanjun Subject: Re: [PATCH rdma-next 02/10] RDMA/core: Enable Relaxed Ordering in __ib_alloc_pd() Message-ID: References: <20210405052404.213889-1-leon@kernel.org> <20210405052404.213889-3-leon@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Apr 05, 2021 at 02:01:16PM -0400, Tom Talpey wrote: > On 4/5/2021 1:23 AM, Leon Romanovsky wrote: > > From: Avihai Horon > > > > Enable Relaxed Ordering in __ib_alloc_pd() allocation of the > > local_dma_lkey. > > > > This will take effect only for devices that don't pre-allocate the lkey > > but allocate it per PD allocation. > > > > Signed-off-by: Avihai Horon > > Reviewed-by: Michael Guralnik > > Signed-off-by: Leon Romanovsky > > --- > > drivers/infiniband/core/verbs.c | 3 ++- > > drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.c | 1 + > > 2 files changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c > > index a1782f8a6ca0..9b719f7d6fd5 100644 > > --- a/drivers/infiniband/core/verbs.c > > +++ b/drivers/infiniband/core/verbs.c > > @@ -287,7 +287,8 @@ struct ib_pd *__ib_alloc_pd(struct ib_device *device, unsigned int flags, > > if (device->attrs.device_cap_flags & IB_DEVICE_LOCAL_DMA_LKEY) > > pd->local_dma_lkey = device->local_dma_lkey; > > else > > - mr_access_flags |= IB_ACCESS_LOCAL_WRITE; > > + mr_access_flags |= > > + IB_ACCESS_LOCAL_WRITE | IB_ACCESS_RELAXED_ORDERING; > > So, do local_dma_lkey's get relaxed ordering unconditionally? Yes, in mlx5, this lkey is created on the fly. Thanks