Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4104592imu; Sat, 19 Jan 2019 02:26:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6VXlYj4PK+N/n2S+xmXOajcM4d/ksTjFs7e8VOP29XCJHbIaHxrNCD2DouBi5YiECa9X8I X-Received: by 2002:a17:902:b48b:: with SMTP id y11mr21733015plr.200.1547893614324; Sat, 19 Jan 2019 02:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547893614; cv=none; d=google.com; s=arc-20160816; b=sH1idJ3SKXqSZxNqKnHI7tDxlaLOi8gFA1iQ5WOyhHUFi1hLrm5eZg4JCj9Zdvv3Ms W5CzAy4ivN1/v3pIKqh03btX32JpKWX+uVpK+P2cQpOO83MjmVO2SMC0GhS+T5mrfp5i ndDzZ3Ay1y/KRPSZWLXskmfGVJZKrgnAXk1m9wv+kGs+KgkKFufW4LH3N6kqcGdEDMaM 6T3695oPm4E3N2T34cFou2SOWp+XHQeMj+SEAjO+L3gIzzThK6DJOcyzkY7r1Ev1XeNg +FoFVRqWCKQi0/yuSz0wgQ21471jqqA7rWR67Mm/a6lxAaap3LRmRnKeGsfqbwwLZNU3 keiQ== 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=3pEYCOCAcVVVJKPSNVrag6u68LCNmc4u9dVSsWTGz4Y=; b=ZhnBcJHplniWLnWQ/EnNmnSTOxK+mMgYi27ASDt6R+f9MPu2GLPDtW9FzRg+M33bUG EhrQvjwUaU+iX172HJi/aWolNpyP8FVgoi+AWAmfjJXRhVFZMMKaZ29J7Hw4bnUfw6K0 oJhOgxKnoYs2BeVL57Ep8moSmOmXLrPyJ7eKhx8UPl03iulLKKM2Ejff2tcItVz+rXEr kLGqH2VdeovWIkUOr4MxVgEop+WwpwdqoJhellFnj0W8w2ZVVt5swODcnwKhxiMHSIT1 MNNgzNGv5ZXPTnDNnOZ9HrFDRtdBA6Hu/VPviRMhBdYDlPaHbsj+HClPiadgr2BVL6Z8 xXaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="E6rS/eVK"; 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 i2si6927507pfi.125.2019.01.19.02.26.38; Sat, 19 Jan 2019 02:26:54 -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="E6rS/eVK"; 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 S1727837AbfASKZb (ORCPT + 99 others); Sat, 19 Jan 2019 05:25:31 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57540 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726733AbfASKZb (ORCPT ); Sat, 19 Jan 2019 05:25:31 -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=3pEYCOCAcVVVJKPSNVrag6u68LCNmc4u9dVSsWTGz4Y=; b=E6rS/eVK8Xk0tAbAXs8I8YZnQ N0m9UuZ0C/5vRbdXcrdAAlcF29uGsOjgpT2m7wtOsJ9yJcvpxcfAaaCN9A8jm699fTjeB419Xi3nx X7dotqTAQewzN6bzYnkSpdTXpRnTju47kbb/HWTwn2EbNOYqhssP4Zo+mqs3zsJJTuSI7hmRIyQOv AA+tRY25qzJQM/wPZs9TvfKFpw6ySpMDbSauExn19yDb05lnN9fencuji08R7FlWer6BR9gdcH41q kZ7e8IQpeh5Om4Zg3WGui0nX31l7jTCHLuGMXtcReXXE8e86AKYikshycZe6r0Pp96fNZ0AFEsQJj 7vlaXoOSQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gknod-0005ut-5x; Sat, 19 Jan 2019 10:25:27 +0000 Date: Sat, 19 Jan 2019 02:25:27 -0800 From: Christoph Hellwig To: Liam Mark Cc: labbott@redhat.com, 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, afd@ti.com, john.stultz@linaro.org Subject: Re: [PATCH 3/4] dma-buf: add support for mapping with dma mapping attributes Message-ID: <20190119102527.GA17723@infradead.org> References: <1547836667-13695-1-git-send-email-lmark@codeaurora.org> <1547836667-13695-4-git-send-email-lmark@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547836667-13695-4-git-send-email-lmark@codeaurora.org> 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 Fri, Jan 18, 2019 at 10:37:46AM -0800, Liam Mark wrote: > Add support for configuring dma mapping attributes when mapping > and unmapping memory through dma_buf_map_attachment and > dma_buf_unmap_attachment. > > Signed-off-by: Liam Mark And who is going to decide which ones to pass? And who documents which ones are safe? I'd much rather have explicit, well documented dma-buf flags that might get translated to the DMA API flags, which are not error checked, not very well documented and way to easy to get wrong.