From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 693B3C433EF for ; Wed, 8 Sep 2021 06:16:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 453F560EFE for ; Wed, 8 Sep 2021 06:16:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347697AbhIHGRr (ORCPT ); Wed, 8 Sep 2021 02:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232146AbhIHGRp (ORCPT ); Wed, 8 Sep 2021 02:17:45 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4748EC061575 for ; Tue, 7 Sep 2021 23:16:38 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id n4so638523plh.9 for ; Tue, 07 Sep 2021 23:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IBHRTJis02t5NHbVpsn7FcWLrdPlDkUd3aly8ckXp2A=; b=uGZYOkMQ0oxoXFAXwN4WsRVYxvsIpE+F6t/rBD436q5dPKy8+KpJNqyAAN1GEVpuE6 Q8ATFiodGWQ2tko+LaU/MhMq1lESZyoQrx8gHqN21fGp3Fm4RUoUPvQOe1EYLUxg3Ma0 SuhQoekfUoqhWtLvxVl9jGLhLsZtu5O0Qu6wzKFq6OUgN4O+8D4pFBBHUehHUgk/qLrk UnxjJOUlyNrTOch8MNNjVZwEhk7rXhFP/Ls1xE9FDhs7wH8U/WwTVklJujOJC9zAGwC2 XcgICIRdl7qruXGQ+pJgTKlTgBOwJkcGouJdMYlYq9eoQ6HFUaWYyIeXoLUwwvwm7pdy hnCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IBHRTJis02t5NHbVpsn7FcWLrdPlDkUd3aly8ckXp2A=; b=bQFkzz6LUQ71gCfbJf1wT6m6m/sw64K8ZqLcGm1bOY4LKYo3uhaMkWfKVF+8h+8TX+ +oYioUkqqYpSwKZYB+4hGkfcW4K/piOpfNXTpy0a8/Dr+1edi3fbo0Qv0JWVRrMXOZtT 6mqJkDNuhB2vin0oNSMrFXp7sUp8U/XpzttfCYILObIfKCeNPT8R1u7zBkmqEe/1frUd 5p5eZxsAPx1IQHXSDM6QKPThpfE0QKSWuq0osu6HOkW6WIFgiG4pPovgGB+XmmvhJx7Q ez8NODo1Qxa0hJ5DwC241IXoFS8VCm6LSGFAZpGGKqap0OBpwTdk3yVo1JocJo/a087Z FBew== X-Gm-Message-State: AOAM532eeVcf+43Mout1WaLf+arKchTJuODY4SOeTS+8RTN+OZe7NMKd Js8ayTA9G9ZWoT7abPgLfZo83QGyiHpZaovg X-Google-Smtp-Source: ABdhPJxETxzi0g5gl3RUyFq2zu9ocPPeVjaau0w3XyrUMBpoPDhfEKgmgY7/b1kMTYZjj0muVDHQOw== X-Received: by 2002:a17:90a:d596:: with SMTP id v22mr2395580pju.51.1631081797744; Tue, 07 Sep 2021 23:16:37 -0700 (PDT) Received: from tyrell.hq.igel.co.jp (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id n1sm971730pfv.209.2021.09.07.23.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 23:16:37 -0700 (PDT) From: Shunsuke Mie To: Zhu Yanjun Cc: Shunsuke Mie , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Daniel Vetter , Doug Ledford , Jason Gunthorpe , Jianxin Xiong , Leon Romanovsky , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, dhobsong@igel.co.jp, taki@igel.co.jp, etom@igel.co.jp Subject: [RFC PATCH 0/3] RDMA/rxe: Add dma-buf support Date: Wed, 8 Sep 2021 15:16:08 +0900 Message-Id: <20210908061611.69823-1-mie@igel.co.jp> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series add a 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 To enable to use the memories in rxe rdma device, add some changes and implementation in this patch series. This series consists of three patches. The first patch changes the IB core to support for rdma drivers that have not real dma device. The second patch extracts a memory mapping process of rxe as a common function to use a dma-buf support. The third patch adds the dma-buf support to rxe driver. Related user space RDMA library changes are provided as a separate patch. Shunsuke Mie (3): RDMA/umem: Change for rdma devices has not dma device RDMA/rxe: Extract a mapping process into a function RDMA/rxe: Support dma-buf as memory region drivers/infiniband/core/umem_dmabuf.c | 2 +- drivers/infiniband/sw/rxe/rxe_loc.h | 3 + drivers/infiniband/sw/rxe/rxe_mr.c | 186 +++++++++++++++++++++----- drivers/infiniband/sw/rxe/rxe_verbs.c | 36 +++++ 4 files changed, 193 insertions(+), 34 deletions(-) -- 2.17.1