Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6679274imu; Mon, 21 Jan 2019 13:33:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN42G0E/L5Nnz/DjXF8BJpNmJxKQuIPxTviXiLZyaQYJN6sWUT7BIO8PsM/3Jp+t8o/V/PLb X-Received: by 2002:a17:902:ba89:: with SMTP id k9mr32069436pls.189.1548106390283; Mon, 21 Jan 2019 13:33:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548106390; cv=none; d=google.com; s=arc-20160816; b=U96PnzywCCbOSc1uSHQ5ByHAcI1AMnBz1g5Zd6kwLkzzXZStrYPAL6vYKE0LAfK/XU WvYIHNm4zI8C60nofp2kBXPeCJJC3Q1p0DvcBFV5s03DIenVoUBadZQ6oJj0jvu1FfEX rdycWOFu+PdIjzJLlcvWK/xeOSGNYUldIXGAWUA4arQUKyap9zxVOAUNaYWgv9+931Fl wL/CIcTr9NDvLieA8CnlifY3LxCwFw7Jv8BvzTwMq82Rr6IinR2gny5tGyGaKuYuERXv 31snKmxtl/kqfbIJWa2psxPrHGllXSMXPkgX7vK0z1qzLQsJekzZfh72LKg8+ULz1EFW FSHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IDcb7s4cNraG/2a1cXf3u05xgct90adkEl26XoaC8RY=; b=Wr5AGNErpkaq1VhMtgsa1zFhfiAjP4TPsVh7KRyCJIz98m84cdZzGEFum7RRC/21Pw hgBcF95b7IboWqFaf4cZbPiJMxmbX1wqkhQr75WhuI9V6UsInQgc1wKn4L9vB1sq0Z3F +gv/gKGwdfEaa9Fb7/je8NlMeOEz+OJBe7D+RIoP2orKpBkF8xHEoGQbHaA1zh50Xqgd o4DhEO205fEvmBxTce5f4CJYZt3Mt+pL/xGdMJ96ZPAITQJABs+Lyggs+FU94wetFtn3 qpVkPPqMITtweAoc8PSP5Oi9e7LwMtabBKeh+p2TFAbp1j8RgdXyFfOePZgLOJnAnuTm 57Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MRFxsVSt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si13087937pls.262.2019.01.21.13.32.53; Mon, 21 Jan 2019 13:33:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=MRFxsVSt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbfAUVac (ORCPT + 99 others); Mon, 21 Jan 2019 16:30:32 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:55174 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727605AbfAUVac (ORCPT ); Mon, 21 Jan 2019 16:30:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IDcb7s4cNraG/2a1cXf3u05xgct90adkEl26XoaC8RY=; b=MRFxsVStKsekj4UYcs0XPLSpx bSj7Ak2pDhMBrwVMo5FXRWO6rvWvKdTuzFTNnhR4ez40SnpfDuY0jmU5zztKhBVfjtWbVvEiYY4g0 RUvOgGtt8ZPjtJrVSkgvJOKe9En8oXFp4OlIiES6R8cAfSeigME/YYLvFChNqYD+Y4r2YytEdTYqT XpB0UxG1qjvpQrWER4N5v6SfzqTz1jx1IPMjiorDIQoDewUH4bJli/Cc6S2q8OQOWoPnOx3Xd2ryt g5Q6MJeT1NBICzaN5m+6TwRfV2aMMPUY4hQVFLz2YkDJ/lA+aQJnhQNwa/aJc9rRaubLqfegpLzAX ArZ+TudDQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1glh9I-0000Ls-Lu; Mon, 21 Jan 2019 21:30:28 +0000 Date: Mon, 21 Jan 2019 13:30:28 -0800 From: Christoph Hellwig To: Liam Mark Cc: "Andrew F. Davis" , Christoph Hellwig , Laura Abbott , sumit.semwal@linaro.org, arve@android.com, tkjos@android.com, maco@android.com, joel@joelfernandes.org, christian@brauner.io, devel@driverdev.osuosl.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org Subject: Re: [PATCH 3/4] dma-buf: add support for mapping with dma mapping attributes Message-ID: <20190121213028.GB28620@infradead.org> References: <1547836667-13695-1-git-send-email-lmark@codeaurora.org> <1547836667-13695-4-git-send-email-lmark@codeaurora.org> <20190119102527.GA17723@infradead.org> <7ae73c39-9049-bcf6-775f-b0817ba0ec5f@redhat.com> <20190121083046.GD12420@infradead.org> <0ed7875f-15e9-184f-5b99-9a53df7c8d14@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 12:20:42PM -0800, Liam Mark wrote: > I have left this to clients, but if they own the buffer they can have the > knowledge as to whether CPU access is needed in that use case (example for > post-processing). That is an API design which the user is more likely to get wrong than right and thus does not pass the smell test.