Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp294294pxj; Wed, 23 Jun 2021 22:35:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyB8eQ4Fnp0sXdh/yNtgjKBp51WB6002RL3hVpkBz7FmwITH03eyhCaJuPnqbRO4hMt7Rfz X-Received: by 2002:a17:906:d54b:: with SMTP id cr11mr3507522ejc.98.1624512937394; Wed, 23 Jun 2021 22:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624512937; cv=none; d=google.com; s=arc-20160816; b=mawuCa45rZwTEQrhPHDYPjP1MbdgqKSfEq9s0pAnRFASdjWk1KePVt1aBHJaWdIbU1 jOI2vv3SsildYSkl+b/E7l8UlBmUHKlS/Q4yNQ/Z13BGA7JSqbfdfC55ZgUmDVYgEckk T4KklF2jQA7kQLeuFuLfsyNE9uXzSxjesxwHMw3mz6UIkQBaEQikjiqJEr/zSOvf0My+ ZyphtyaurvodQV5t+fQtaJBO8T6Imke33/wrP7+VUkIAGTjIpcfC0K938fgbZ3piOTLM Y30aBF2vv4/RYJ9IHtNdpkGNNv0NvIby3v+OsPNhOMVJGa+l45SX8H2R/GYnTh54HE1O wrtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lCKJ3/XknHHAf/GmiD7U245s15yzIatFGu2su9j5ix8=; b=0DX8KpepOkL5/8VzRUotQl6SIHkytG9BiIbRJxqdk3h/oHH5BoJxKctJ4Rwf9lCu59 u4P7Jk65+qqBbH1JOsRhw2BaDHfdgR1YjGRwnpzZLIk+q6zibgSJxapSfxu6h+YYh+J0 3mKOK1yE7HLiqvGEQUDTzglaG/aYcAR0ODo1K5Kvl0yFsCQibPH9/C19SCVLrUiDaJ31 pBYrJxEqxGZfkzw2ufOEyko8VArdJqQ1AIYzbXljN8OiICskAod+oAKxCAZYEKewEMZ1 laWu/dmI1eCAKGWFfnD48y2ortt8jdYalnX8tXsTDXP4UXOMt6beCItR1tkxyMwMB7tl nDVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 k16si1984427edv.498.2021.06.23.22.35.14; Wed, 23 Jun 2021 22:35:37 -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; 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 S230136AbhFXFgo (ORCPT + 99 others); Thu, 24 Jun 2021 01:36:44 -0400 Received: from verein.lst.de ([213.95.11.211]:53067 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbhFXFgn (ORCPT ); Thu, 24 Jun 2021 01:36:43 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 02FF167373; Thu, 24 Jun 2021 07:34:22 +0200 (CEST) Date: Thu, 24 Jun 2021 07:34:21 +0200 From: Christoph Hellwig To: Oded Gabbay Cc: Jason Gunthorpe , Christian =?iso-8859-1?Q?K=F6nig?= , Christian =?iso-8859-1?Q?K=F6nig?= , Gal Pressman , sleybo@amazon.com, linux-rdma , Oded Gabbay , Christoph Hellwig , Linux Kernel Mailing List , dri-devel , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Doug Ledford , Tomer Tayar , amd-gfx list , Greg KH , Alex Deucher , Leon Romanovsky , "open list:DMA BUFFER SHARING FRAMEWORK" Subject: Re: [Linaro-mm-sig] [PATCH v3 1/2] habanalabs: define uAPI to export FD for DMA-BUF Message-ID: <20210624053421.GA25165@lst.de> References: <20210622152343.GO1096940@ziepe.ca> <3fabe8b7-7174-bf49-5ffe-26db30968a27@amd.com> <20210622154027.GS1096940@ziepe.ca> <09df4a03-d99c-3949-05b2-8b49c71a109e@amd.com> <20210622160538.GT1096940@ziepe.ca> <20210623182435.GX1096940@ziepe.ca> <20210623185045.GY1096940@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 10:00:29PM +0300, Oded Gabbay wrote: > I understand the argument and I agree that for the generic case, the > top of the stack can't assume anything. > Having said that, in this case the SGL is encapsulated inside a dma-buf object. But the scatterlist is defined to have a valid page. If in dma-bufs you can't do that dmabufs are completely broken. Apparently the gpu folks can somehow live with that and deal with the pitfals, but for dma-buf users outside of their little fiefdom were they arbitrarily break rules it simply is not acceptable.