Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3820172pxj; Mon, 21 Jun 2021 07:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/8iqdwxR9fy9eg6RZ/yQanb9M1bGSI+JOB43ZSD89AYDNcFwFkV2qc/GLHerbJ4ZjTgsD X-Received: by 2002:a17:906:b11:: with SMTP id u17mr21801757ejg.124.1624285169926; Mon, 21 Jun 2021 07:19:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624285169; cv=none; d=google.com; s=arc-20160816; b=RjWK2/gUej+Z+GDjtgiUMuEgdsavrEv/Z6M2T8tgTigTvIG4SYjeaDxs0wAMp4N0gm v9E94aAF6gQhw1WZUMwYj66HQsHHs7fGoJYYc3fDtxfMyewL4kW9ZNmTZ220v3axWDDY PkUuSsea/sXS6JeFhEUYtYKYSB8q+8xZ2XIKE2c+TXdDAcElzH2Sc861W3rMoz64VEDX NPjuTrBqXjQmE6++ACSWidW9gJO5mfvFJyRIXLwCHVG3j0FGZSpw0gDx1pBNJueWKpxP DK6ATSzjJlFELevDOkhi9/guiLZXM2UTnrq3pbfnpniNmwXB4TpGn/icLWHxcFxZw7hR drrQ== 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=f5JgZDeoCfa2i8b2+lJPyccTDGeyU3UeQJEKpYqzmGw=; b=E8jLYefte8xzFyMOrAK2s40SLU7zN53sKf0ts09pBosy2fLM5gl1cyYDBoiDejVF1R dYk1E5yYTtymZx/cR0WhQmCBGEsNRJDKXicvdrC2MpdYZ9eP/I4Zb61aNsvVYaQK62Q5 iSJ5V3gIomnhY4lgNXiCh2oYDBcx5Wa0QfT2FmNUB0WIAxOOVq0eVrFrtM90I9GQdbh5 WFzfxau3CL9h+xJMnh7J0BAX+LpE9gigRVpgBUe3kRwpMEbgfvNCyPumO9NZZPFKS90f NAtosOcXeWUFyo+OQJANDAtXaUo7mppK4slDD/OPOy7FFgLLhNd0j3oET32DWot9Se7Q WD/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="iW/qNwvj"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz1si10294084ejb.461.2021.06.21.07.19.06; Mon, 21 Jun 2021 07:19:29 -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=@ziepe.ca header.s=google header.b="iW/qNwvj"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbhFUOUP (ORCPT + 99 others); Mon, 21 Jun 2021 10:20:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbhFUOUO (ORCPT ); Mon, 21 Jun 2021 10:20:14 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 151BEC06175F for ; Mon, 21 Jun 2021 07:17:59 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id t9so13477714qtw.7 for ; Mon, 21 Jun 2021 07:17:59 -0700 (PDT) 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=f5JgZDeoCfa2i8b2+lJPyccTDGeyU3UeQJEKpYqzmGw=; b=iW/qNwvjUN60qOdsm7Tc/2UgFmrbPL7i3tcOoqV4K4nAE5p++VtMzaD7tQUmZY5aS/ 08eVJcFISGR01jyo6CIqviQAi8/x8nwo8NCY7YrYTVakAPQRX4ny9mcq8xMudYSJADOQ h+yKiUXxtEnGjWiqtTAEO+fkAVZBXqOEiFWJnEcxmy2hkR14/qsVhyet4cLlhORAQjbS 5b3b0Ub6MVs3bJel4J0zd7N6pAGiflA4WAmb2m/748JAvI/uviYVvmmbpTnenWCmngzg /0zm6jCnZ052zu8m26gQyrxVJtmvIX29vAGvfAg8myajT6QOMOcUsreOn1mLyatblaTF 2yQA== 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=f5JgZDeoCfa2i8b2+lJPyccTDGeyU3UeQJEKpYqzmGw=; b=HhK2sqGG0Yt7PjZwRbTf74wCXIJhvig7HoFRUoZHxkQiOah2g0ciZXx2sjPoMHGHAy 3hEVqLTZFRYdqiOkNCSOV/UT/THDcGlPVXVi8AAhtekIPlzFyDi/DAQ4b8bghu9hkNTu 0ZWFDuZM21xK6zkMCqJ0MVdZBQHi7hhvY7GOZOU4wOQqQVrd4a9lSVXIX2IV9iyd1Yp5 iYrJ7yjWRBmVf4XOZ5puF6Xl9nhZxgJEIHED9ENWdEBlUpn4SQj+gIf6SlFJIewO+6R0 EMfTRWYBs7zgCcgCbtIzc6xO5bjM9F7UCFTpONiEyib2bNkhiGzJs6OzvTY48fnNxb7G mWJw== X-Gm-Message-State: AOAM531Nf0nHgFSIEXgRNg7mik3Jg16UNFrnB6JFnIWeETE/KiWOzJiZ a5ybGyEcu8V1Jt81wW/QLdLalA== X-Received: by 2002:ac8:44ca:: with SMTP id b10mr24067709qto.224.1624285077981; Mon, 21 Jun 2021 07:17:57 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-47-55-113-94.dhcp-dynamic.fibreop.ns.bellaliant.net. [47.55.113.94]) by smtp.gmail.com with ESMTPSA id y15sm10797034qto.90.2021.06.21.07.17.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 07:17:57 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lvKkO-009WjS-US; Mon, 21 Jun 2021 11:17:56 -0300 Date: Mon, 21 Jun 2021 11:17:56 -0300 From: Jason Gunthorpe To: Daniel Vetter Cc: Oded Gabbay , Christoph Hellwig , linux-rdma , "open list:DMA BUFFER SHARING FRAMEWORK" , Doug Ledford , "airlied@gmail.com" , Linux Kernel Mailing List , Greg KH , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , Gal Pressman , sleybo@amazon.com, dri-devel , Tomer Tayar , "moderated list:DMA BUFFER SHARING FRAMEWORK" , amd-gfx list , Alex Deucher , Leon Romanovsky Subject: Re: [PATCH v3 1/2] habanalabs: define uAPI to export FD for DMA-BUF Message-ID: <20210621141756.GF1096940@ziepe.ca> References: <20210618123615.11456-1-ogabbay@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-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 02:28:48PM +0200, Daniel Vetter wrote: > Mission acomplished, we've gone full circle, and the totally-not-a-gpu > driver is now trying to use gpu infrastructure. And seems to have > gained vram meanwhile too. Next up is going to be synchronization > using dma_fence so you can pass buffers back&forth without stalls > among drivers. Well, we can't even see the other side of this so who knows This is a new uAPI, where is the userspace? In RDMA at least I require to see the new userspace and test suite before changes to include/uapi/rdma can go ahead. > Doug/Jason from infiniband: Should we add linux-rdma to the dma-buf > wildcard match so that you can catch these next time around too? At > least when people use scripts/get_maintainers.pl correctly. All the > other subsystems using dma-buf are on there already (dri-devel, > linux-media and linaro-mm-sig for android/arm embedded stuff). My bigger concern is this doesn't seem to be implementing PCI P2P DMA correctly. This is following the same hacky NULL page approach that Christoph Hellwig already NAK'd for AMD. This should not be allowed to proliferate. I would be much happier seeing this be done using the approach of Logan's series here: https://lore.kernel.org/linux-block/20210513223203.5542-1-logang@deltatee.com/ Jason