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=-6.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 086A2C07E95 for ; Tue, 13 Jul 2021 08:30:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E6F5C61249 for ; Tue, 13 Jul 2021 08:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234618AbhGMIdp (ORCPT ); Tue, 13 Jul 2021 04:33:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:45592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234157AbhGMIdn (ORCPT ); Tue, 13 Jul 2021 04:33:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4E0FA611C0; Tue, 13 Jul 2021 08:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626165053; bh=GUJSY4jiCkUPxGAqM9aAcpi+Hi+h4ylWFG+oSaC6FBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pkfyQXMfFkfXTWb1gXY+8Cz+ulc2+PrGNzb4p/mKiRpM68i6JnihJDj7QbrAfq/Uk nvustT/PtQz3OpF3PhtsH5tkjRFVJaWwz9ldv46mtf85DCGBj9Mbw62rhul5cyh8Y2 AuNbLlz6aYLsoxpe9cyVH1LukJ7XatkMv5BM5BKHD3nUceUwyDJg37iYMz8x/+2rpk +dI1uwB1HiGKv+f3OA5WsV4467b5FTMcb76x/UiqGyf7Og6s11ZZgNsRbN73LWYhML qjLoLpI9sikJD7buqNjmHvcV4j5VfEq+jEyLuUelIWVSz82UHZVJMmBSRWJuTB5m78 SsQeVNXLriXMA== Date: Tue, 13 Jul 2021 11:30:50 +0300 From: Leon Romanovsky To: Shunsuke Mie Cc: linux-rdma@vger.kernel.org, Takanari Hayama Subject: Re: [RFC] RDMA with Continuous Memory Allocator Message-ID: References: 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-rdma@vger.kernel.org On Tue, Jul 13, 2021 at 03:57:53PM +0900, Shunsuke Mie wrote: > Hi Leon, > Thank you for your reply. > > > Sorry for my question, but why do you need it? > I'd like to write data to the buffer, prepared by DRM (gpu) driver as > a frame buffer, using RDMA. > There is a similar project as follows. > https://www.openfabrics.org/wp-content/uploads/2020-workshop-presentations/303.-OFI-GPU-DMA-BUF-OFA2020v2.pdf > They prepare a mechanism to share a dmabuf fd between DRM driver and > RDMA driver, in order to update frame buffer using RDMA. I'm trying to > develop that in userland. > > Some DRM drivers use CMA to allocate the buffer. I met the problem in > an environment that CMA used. In some flows, dma-buf pins memory under the hood. Anyway, for regular umem, you can try to use mlx5 that supports on demand paging (ODP). That feature allows you to create umem without need to pin pages. Thanks