Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4207221pxj; Mon, 21 Jun 2021 16:30:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkFR3uNdcm8TQVd8Ouj2C0qHatluxJ5piLMe2/XXLb/aBppJ9Wb82dsDr+BZZ1+pIVY3+L X-Received: by 2002:a17:906:6d15:: with SMTP id m21mr635481ejr.354.1624318249368; Mon, 21 Jun 2021 16:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624318249; cv=none; d=google.com; s=arc-20160816; b=qDFj/UyzUlpwM4p5DYuRYWmjqM2Cv3EhKR5587VxMsacWy7CrYx/cpZihTHrW2X5vt gadXp/dhPbdcqUDzUpFxyB0JLKPKROYCili2ocUWjdrl4M0bzLNgN+zFpP3GMvWq6BlT GQq8ZzD2+OcqD09wmFTrQWlQCRaXBiZkM7JDfETktcDDKwn14IIHhwsg43ipmBGPaUvI KMr7P1QdFXU15i1dbHSZ2gkvXul0O2a8nVKwEy83x6jWidL2IsIdQvh7CU0EgfvYknta gNfM+NSwStGbIAzMa7VMusb55+m8BRUfpH3Har2Soqe4itKIZH6/TTR+0vrVgr2M8TXN YsiA== 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=WGIQy0LtKLkIE/rK0/0LmxIf0Yhw3y7s+bpYX0ZTb4E=; b=JDRy6nD2sj2QKiZQAfxpZLY1bl87qEGX8DGYSiO6UKU0+lB9UaXulUb3dgkQw0vSQq tZX4RYBaIG1vdmNP4qDlREz8675U91V73IG/CJoT4QLRnJKM5218vMm+hYrqu4r9GpMt SVsVPnuoFPkZtgdtHClrp6XeT7c66XH7beaMM2pYlzuB0pU2bsxGht9OKMm6MCtuKyeR EhooF3VOio+IhUR4e1xH/2MGuIcQfT516d+WWwFdWhGEEU5EUWYil1K3t5HYQ+SQmmBY edDphN0MQ09A7UmQX1ni2F8pRz7R6RclAb1k24d7JUIlm0/FFBnCDLe6nxkRdh1DAa1/ saZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=XkURmaeB; 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 y23si2353090ejk.380.2021.06.21.16.30.25; Mon, 21 Jun 2021 16:30:49 -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=XkURmaeB; 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 S231268AbhFUXbd (ORCPT + 99 others); Mon, 21 Jun 2021 19:31:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231566AbhFUXba (ORCPT ); Mon, 21 Jun 2021 19:31:30 -0400 Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAF8BC06175F for ; Mon, 21 Jun 2021 16:29:14 -0700 (PDT) Received: by mail-qv1-xf30.google.com with SMTP id m15so2467553qvc.9 for ; Mon, 21 Jun 2021 16:29:14 -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=WGIQy0LtKLkIE/rK0/0LmxIf0Yhw3y7s+bpYX0ZTb4E=; b=XkURmaeBNxY2KNIu+e3I7r7c8Mw2wNE/2QAVf2JLvg6H3Ao6a1CHuNZ3vZ9RBTFdKx H3HDY9NRafLjynlaVkG4PxqZXZk/v2PZSf4FNAtjAaDZ+6ONvHcsFIGONwVDeOf17HrF h4Z5tocnUYIAKpC3IQtgBEC1vGg2T8esb9cF9sxkRyXpR+nn2OjKipQdc2qiNBCYtMp5 8yt3ntQEIkDMB6fEEsB9d5jku+rDz/qbvQ2tZqk6+/0aRqBqq05Onc+pKKb0R8HJo8Ai 55y54osBIrECu/xwViWlwG2EaBg82LCP+kuA9VXzH9FS9l7AMz909JQzyaOkpt0gKptG 0naA== 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=WGIQy0LtKLkIE/rK0/0LmxIf0Yhw3y7s+bpYX0ZTb4E=; b=Qh2ZygxpO5m6PtmPxGD8cVRVTmZTZiKdDcB+V4figZQ6AalTefJ7ew2UmK8xiYKeVL SdFzO0XFpzV93cPBG6h6/Kbvx41hLn8FpnhhtnWmVCyd1L01ETwWrlRrzXERVmXiqFAs 9XjjP/I2pET03fBArvdgyeloh715srh5j8WsvDACbIaLAeITaL4A3xtSYHAZNlBVcqI7 QfdnnSzjCN/SyDrTmwzoR4zmEjO5mVv3iXFt9Y1d4xKzGjYMknEXwE3e9vX62jcRzkQW dmke0wnPjRI/arH5qixtd3kWMK1rSicFN8k7jqpOWd/Gj9ejogOcZgrpfHBpsZMeXzHK xf6A== X-Gm-Message-State: AOAM533NTA53zK+MwEo89IAEfbWOlgZrTEwCzDrUOxj5UthVKe/CDHwB mtu6TAfbFIKS+QEJwR/NSG31eg== X-Received: by 2002:a0c:fd44:: with SMTP id j4mr22797061qvs.12.1624318153681; Mon, 21 Jun 2021 16:29:13 -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 t30sm10969084qkm.11.2021.06.21.16.29.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 16:29:13 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1lvTLs-009tun-DJ; Mon, 21 Jun 2021 20:29:12 -0300 Date: Mon, 21 Jun 2021 20:29:12 -0300 From: Jason Gunthorpe To: Oded Gabbay Cc: Daniel Vetter , Greg KH , Oded Gabbay , linux-rdma , "open list:DMA BUFFER SHARING FRAMEWORK" , Doug Ledford , "airlied@gmail.com" , Linux Kernel Mailing List , 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 , Christoph Hellwig Subject: Re: [PATCH v3 1/2] habanalabs: define uAPI to export FD for DMA-BUF Message-ID: <20210621232912.GK1096940@ziepe.ca> References: <20210618123615.11456-1-ogabbay@kernel.org> <20210621141217.GE1096940@ziepe.ca> <20210621175511.GI1096940@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-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 10:24:16PM +0300, Oded Gabbay wrote: > Another thing I want to emphasize is that we are doing p2p only > through the export/import of the FD. We do *not* allow the user to > mmap the dma-buf as we do not support direct IO. So there is no access > to these pages through the userspace. Arguably mmaping the memory is a better choice, and is the direction that Logan's series goes in. Here the use of DMABUF was specifically designed to allow hitless revokation of the memory, which this isn't even using. So you are taking the hit of very limited hardware support and reduced performance just to squeeze into DMABUF.. Jason