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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 945D6C56202 for ; Thu, 26 Nov 2020 00:00:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 315E420B1F for ; Thu, 26 Nov 2020 00:00:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="UttOmsa4" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728202AbgKZAAJ (ORCPT ); Wed, 25 Nov 2020 19:00:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbgKZAAI (ORCPT ); Wed, 25 Nov 2020 19:00:08 -0500 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C207BC0613D4 for ; Wed, 25 Nov 2020 16:00:08 -0800 (PST) Received: by mail-qk1-x743.google.com with SMTP id b144so123423qkc.13 for ; Wed, 25 Nov 2020 16:00:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=aKREM2LgpMemUitVe/ytv0SNKTIU13b/oPWuoX/JrCo=; b=UttOmsa4CIydIMlhmsf+mpL72ekN6XdJOKccupwa26yJabJffqzdKBszOdiAbyFnGb ycNvKmzKgO/6k7UOTismxzLPG6MKyJbVL5m2nXz60k8IZs91HAkIMmU1uydZP7woxuG7 l4OEfrFRVONn5MZPaTjaF20xCPoTqyDOzK6n/GUx/cSR5CQfkIyFr/upm3oAOylDx5JM l/zDPZx6C2KT3uUV9+zFmcgPMSRoOloe9DmysxoEzrKgEo+s++Kc0svlJbDfURC4v+Cq ub/7SuADkb1ureevd8MfjBism6Dar2B6r6YV25fT8w2YFI83MHU4Dz+EbP9ZWRIaRAa/ sjXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=aKREM2LgpMemUitVe/ytv0SNKTIU13b/oPWuoX/JrCo=; b=hksZ2CZ7EmPAIIIM6xYsVcileygQ7pG+nmGEvsUfY29rQHPYL8O7hsz2aX26NBLbpO C5K66MiCmIOS5DelvHbLyZlM73u27wTMnUjKCbC/+fa/TI+XDm+YA3n+5r0M4wmYbEyr qiL9dMNawLrgUf2r15wMUW13jOg20C4f9Ov2ow/p0TA/W//ru9qlYCKLLeYk4hxGgX+M jm6Mc5O1crw947g9C+EEBu7B/izsnbanG5HAi9sJAwjQo0eGliiB8YuomGMEG08s9RBJ LzDEhPTeRkt33plsBNJubr7TsVsllwXTCV5GNSrCv1lKupjKlfVlsSosY1HL9xeqf9am ROqQ== X-Gm-Message-State: AOAM533u3kr7lxMilorPaSpAOgu2ZNhR524HczThRntnZmnjVp10U/Y+ QMPGIjZ3fkfD7QPxagzFhApVxQ== X-Google-Smtp-Source: ABdhPJy1oVswPNBIIEJRUXD9FYrqhWOv9OYbhoFw/mv9TlO+58lJs34Ve3mm23XrkxmRLPwP8foi1g== X-Received: by 2002:a37:65d2:: with SMTP id z201mr565748qkb.403.1606348808101; Wed, 25 Nov 2020 16:00:08 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id m62sm889145qkb.91.2020.11.25.16.00.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 16:00:07 -0800 (PST) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1ki4hi-001QF8-L6; Wed, 25 Nov 2020 20:00:06 -0400 Date: Wed, 25 Nov 2020 20:00:06 -0400 From: Jason Gunthorpe To: "Xiong, Jianxin" Cc: Daniel Vetter , Leon Romanovsky , "linux-rdma@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Doug Ledford , "Vetter, Daniel" , Christian Koenig Subject: Re: [PATCH rdma-core 3/5] pyverbs: Add dma-buf based MR support Message-ID: <20201126000006.GS5487@ziepe.ca> References: <1606153984-104583-1-git-send-email-jianxin.xiong@intel.com> <1606153984-104583-4-git-send-email-jianxin.xiong@intel.com> <20201123180504.GA244516@ziepe.ca> <20201124151658.GT401619@phenom.ffwll.local> <20201125105041.GX401619@phenom.ffwll.local> <20201125121456.GM5487@ziepe.ca> 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 Wed, Nov 25, 2020 at 07:27:07PM +0000, Xiong, Jianxin wrote: > > From: Jason Gunthorpe > > Sent: Wednesday, November 25, 2020 4:15 AM > > To: Daniel Vetter > > Cc: Xiong, Jianxin ; Leon Romanovsky ; linux-rdma@vger.kernel.org; dri- > > devel@lists.freedesktop.org; Doug Ledford ; Vetter, Daniel ; Christian Koenig > > > > Subject: Re: [PATCH rdma-core 3/5] pyverbs: Add dma-buf based MR support > > > > On Wed, Nov 25, 2020 at 11:50:41AM +0100, Daniel Vetter wrote: > > > > > Yeah imo makes sense. It's a bunch more code for you to make it work > > > on > > > i915 and amd, but it's not terrible. And avoids the dependencies, and > > > also avoids the abuse of card* and dumb buffers. Plus not really more > > > complex, you just need a table or something to match from the drm > > > driver name to the driver-specific buffer create function. Everything > > > else stays the same. > > > > If it is going to get more complicated please write it in C then. We haven't done it yet, but you can link a C function through cython to the > > python test script > > > > If you struggle here I can probably work out the build system bits, but it should not be too terrible > > Thanks Daniel and Jason. I have started working in this direction. There should be no > technical obstacle here. Just to be clear I mean write some 'get dma buf fd' function in C, not the whole test Jason