Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp712956pxb; Sun, 10 Oct 2021 09:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/dGhD9T055LHekGgaPilKYV/8IrX9zXfPu5Hlu5Rp7ODAdWLbgGQMfRZwKbyz1gtKW26/ X-Received: by 2002:a05:6402:21ef:: with SMTP id ce15mr32935371edb.19.1633882816896; Sun, 10 Oct 2021 09:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633882816; cv=none; d=google.com; s=arc-20160816; b=sCe8/6GMz5eA9roABxVxc+r32plvYo6dpSLPz6SyEgL1Ndfjs2qMR2ux/dKJ354ytu ebxsafz/+Sa1mSx2VFPjB2v4o+O1fimU8UKbxz2uPAvaUCOMwUHu+4qbjyDsVXFw0mFC 45no4WYtrqokPA007npw/xVcQpCB7tU4wgr0PidPTKQiunGqyaA8mQRUM4i45hv0Wj+r GQUo/JMNV5uuXlejQ9KKiUiNrBovzAWTzcDjNygPKdbeQdSmz+OHNY2SUU2hDtcsCouy Ai9iuQQJf44BDJXixS3Oa+YcdgdDmoS3ihthOdhictB/HzhGfFgjkf7yNQKMTx6s6xv5 pudw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=1rpdPrFDqjSDlQM4/xeyql1J912iBebRnv6liKAQE0g=; b=hA59KDmZFlKspFEbe7xVlEeSaZZPXdq6MKuto5EdgNaxZUA5utX4dC2jt5cnDL7ab9 KJgB5Dxa5fKLjKWMIpUnsD/OLQ2tbZnwCf+6R9lTPxM/Azl0fNZuOohjx0Ld7sHO/Tdh nnb7x6ueZ62zG8CsHfY2rmlatV1J84RT5L9L8VUNzwVHTBjg0q7HxnBZ1/s/hp4OthYh vQ9op0IMeJ6luXUinT31OqpXejvhDY4kQQtTtzEbiUwf7nr96Xb0A6nGjlsTP2TWeOg5 nekH0s8p6yKrdk9DMjYWGSGipRhRnJbNjEfYeJRlyp/mrGpd0eT6t+O7Hwbtw9UluDFQ wqxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=j6iQjh1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y72si5094882ede.233.2021.10.10.09.19.52; Sun, 10 Oct 2021 09:20:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@gmail.com header.s=20210112 header.b=j6iQjh1t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232836AbhJJPeS (ORCPT + 99 others); Sun, 10 Oct 2021 11:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbhJJPeM (ORCPT ); Sun, 10 Oct 2021 11:34:12 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 038C6C061570; Sun, 10 Oct 2021 08:32:12 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id x27so62566181lfu.5; Sun, 10 Oct 2021 08:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1rpdPrFDqjSDlQM4/xeyql1J912iBebRnv6liKAQE0g=; b=j6iQjh1tToVrzJtt7fH1P0Ms8/WhjifKtfcvmZ9+CgCIbQq/8NeHwRceEEKa1uhbqs n9ls8nIxVPVjmoweNSTdwEMD1cH9ppZYtIAoLDxqxBZUCczX3kjfHE8GO+gQ0nGi4ysp xZ1iGRAYTjKEfimvl8BYJVXwndQHhHUk1ZPbdK3lRgE4W664gerwwxY6939vg+QvlnEy Q7AzUKIRgcd1E05hReiExfiV/nSialR3/u69MRpUij4F7r2JFS5AMg813S5nK1KfEUL0 y5xGdjU6SDULP4cvDSoxEuEw1VkZJ4xMq+eZsXR4PUWYRkPDmf4Ge6bTlkezlNg5duUU EENQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1rpdPrFDqjSDlQM4/xeyql1J912iBebRnv6liKAQE0g=; b=RfxmmX7LEULjjx/hO0Te6Dx9mjgQgsOHVshdgg7uj09ZNKFm7gz7JdjagQe4qJt2r7 UGIyBNUZCUz5hBnz/V6ocxQDo8dsg70/gTabT6tH8xA0Ja+UOnO3RAoMEduQ3XVJAZQU BkROPajZEBUo4KN5/p81x/BlX5hCgkDbm2KOes821iu7dbsANyLwWPofgtI9h9YEkZL3 7vo9tbWdC+P+T9bFYI4Qp9W9jrFZerIz/St58DyLJOytbmtiSNJh5Lha0T/tlYp9pTDt myrW3glhNpxnXS8ZX7RXKWKuecFW8XPaKi0q9oz7REWxLlApK3cCuOW5cTmJrXid4pHW Argg== X-Gm-Message-State: AOAM532k3x6fScCoCUxnqaYHWJlQ125HQzh0ZQuhHqm2+t/Cm9R3xz3A OZhD3Cn8HMEayt8Q8gUYut5PSVFzp4NJ4ceF1jQ= X-Received: by 2002:a05:651c:230e:: with SMTP id bi14mr15752888ljb.467.1633879930288; Sun, 10 Oct 2021 08:32:10 -0700 (PDT) MIME-Version: 1.0 References: <20210929041905.126454-1-mie@igel.co.jp> In-Reply-To: <20210929041905.126454-1-mie@igel.co.jp> From: Zhu Yanjun Date: Sun, 10 Oct 2021 23:31:58 +0800 Message-ID: Subject: Re: [RFC PATCH v2 0/2] RDMA/rxe: Add dma-buf support To: Shunsuke Mie Cc: =?UTF-8?Q?Christian_K=C3=B6nig?= , Alex Deucher , Daniel Vetter , Doug Ledford , Jason Gunthorpe , Jianxin Xiong , Leon Romanovsky , Maor Gottlieb , Sean Hefty , Sumit Semwal , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-media@vger.kernel.org, LKML , RDMA mailing list , Damian Hobson-Garcia , Takanari Hayama , Tomohito Esaki Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 12:19 PM Shunsuke Mie wrote: > > This patch series add a dma-buf support for rxe driver. > > A dma-buf based memory registering has beed introduced to use the memory > region that lack of associated page structures (e.g. device memory and CMA > managed memory) [1]. However, to use the dma-buf based memory, each rdma > device drivers require add some implementation. The rxe driver has not > support yet. > > [1] https://www.spinics.net/lists/linux-rdma/msg98592.html It seems that dma-buf is in discussion. We will focus on this discussion. After dma-buf is accepted, we will check this dma-buf on rxe. Zhu Yanjun > > To enable to use the dma-buf memory in rxe rdma device, add some changes > and implementation in this patch series. > > This series consists of two patches. The first patch changes the IB core > to support for rdma drivers that has not dma device. The secound patch adds > the dma-buf support to rxe driver. > > Related user space RDMA library changes are provided as a separate patch. > > v2: > * Rebase to the latest linux-rdma 'for-next' branch (5.15.0-rc1+) > * Instead of using a dummy dma_device to attach dma-buf, just store > dma-buf to use software RDMA driver > * Use dma-buf vmap() interface > * Check to pass tests of rdma-core > v1: https://www.spinics.net/lists/linux-rdma/msg105376.html > * The initial patch set > * Use ib_device as dma_device. > * Use dma-buf dynamic attach interface > * Add dma-buf support to rxe device > > Shunsuke Mie (2): > RDMA/umem: Change for rdma devices has not dma device > RDMA/rxe: Add dma-buf support > > drivers/infiniband/core/umem_dmabuf.c | 20 ++++- > drivers/infiniband/sw/rxe/rxe_loc.h | 2 + > drivers/infiniband/sw/rxe/rxe_mr.c | 118 ++++++++++++++++++++++++++ > drivers/infiniband/sw/rxe/rxe_verbs.c | 34 ++++++++ > drivers/infiniband/sw/rxe/rxe_verbs.h | 2 + > include/rdma/ib_umem.h | 1 + > 6 files changed, 173 insertions(+), 4 deletions(-) > > -- > 2.17.1 >