Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1740137ybg; Sat, 19 Oct 2019 01:28:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqzl/WEjKii54A+ReQYj4oJSLIaRqQ7GEyEhIfNgpiZqxwqTOoyWNEEhPJJ5RcXRGGaou6R0 X-Received: by 2002:a17:906:2490:: with SMTP id e16mr12717171ejb.182.1571473729355; Sat, 19 Oct 2019 01:28:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473729; cv=none; d=google.com; s=arc-20160816; b=VkC3fGz4PuL2dGikpzuxHEQi+7OK1D5vGxPEGil8QCKFT/oyYaOFxXFKqBcDSitiq7 BK4J4RzIS/32nOgYo56n8k6Gx80vLEHxc2Dc9eUZ5CJagpYAgT5q/jOTTd2wo076wUxt i6Q1pZKp3/pOCL14TTy3U3ceAYhBojQ8D1MLfXN4qPQra5QeFh0hgvOp07rRaeSPrhDq r6m1J3IErlYdGCYIUmXgm2P+kT1btkERxf1EjUeacvzquXrlmmPcPYL/2RpFMRZVK9d6 Egw4NJVegR+8bywWiZbEXU6N2vYvh6Vv2fqakgK0Kfrldo0gqUZnOGwypHcZyUs1ZPIl 7ekw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=gy7n9P0uBhu8M6TfOX+hY8VcIvOtD4Bt1FjdWFdP+lY=; b=w/OKJun1Jiz8ZLBYYVLdigkI7Vhlh50MmUX4vxjLTN2K39c4Jx7kapZgId/CJyVsgQ eKc+uBkP5SX8SMIrW6raXc8rcnBQbDoulsYcjdOX9XjB9zSbmb4aMAbrBYhMJ1wdgqhm bQCXDASryhFrxyB+abFyxQZr7XskEaLOEHxkSpLeKP1hQHPb3ZaK4bwkHycUyFnIHlvz 70ZPzhxg+xNX0BlXBO08BbmnlZcGqeeJAVPxtnlAYBkYKoDVIUf0xVF+lmnCDacCXSY+ 86exX42U1T6i0lJZxXc3D/YZnOd7eVLOvwAHzVxxf/qgqgVFfPRTVXx+dDFBBxc+C3O2 BMWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Prb4MoXR; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w1si5331671eda.214.2019.10.19.01.28.26; Sat, 19 Oct 2019 01:28:49 -0700 (PDT) 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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Prb4MoXR; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633673AbfJRNzY (ORCPT + 99 others); Fri, 18 Oct 2019 09:55:24 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:60160 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505071AbfJRNzY (ORCPT ); Fri, 18 Oct 2019 09:55:24 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9IDsrP3114107; Fri, 18 Oct 2019 08:54:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571406893; bh=gy7n9P0uBhu8M6TfOX+hY8VcIvOtD4Bt1FjdWFdP+lY=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Prb4MoXRDxDZQQhH293iBAsVCyrlojpGcQS93wlZlwYmsrOkHkKfpwjYkH0DTx1iH 1duOV3f3UkvIDIYVymxZz1aTXRGRLp1ZqDhvBHDwKUhIBpOaVMcprD4BlitFSoKcUW 5MLN47MVbvK5Rh6hgxxPtl5yGkD0LBPZKwe/bSsE= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9IDsrNu065857 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Oct 2019 08:54:53 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 18 Oct 2019 08:54:53 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 18 Oct 2019 08:54:53 -0500 Received: from [10.250.79.55] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9IDsqJP036329; Fri, 18 Oct 2019 08:54:52 -0500 Subject: Re: [PATCH v12 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps To: Benjamin Gaignard , Brian Starkey CC: John Stultz , lkml , Laura Abbott , Sumit Semwal , Liam Mark , Pratik Patel , Vincent Donnefort , Sudipto Paul , Christoph Hellwig , Chenbo Feng , Alistair Strachan , Hridya Valsaraju , Hillf Danton , "dri-devel@lists.freedesktop.org" , nd References: <20191018052323.21659-1-john.stultz@linaro.org> <20191018052323.21659-5-john.stultz@linaro.org> <20191018112124.grjgqrn3ckuc7n4v@DESKTOP-E1NTVVP.localdomain> From: "Andrew F. Davis" Message-ID: <5a172663-21d5-5f5d-c9d3-f643d8dadc34@ti.com> Date: Fri, 18 Oct 2019 09:54:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/18/19 8:03 AM, Benjamin Gaignard wrote: > Le ven. 18 oct. 2019 à 13:21, Brian Starkey a écrit : >> >> On Fri, Oct 18, 2019 at 05:23:22AM +0000, John Stultz wrote: >>> This adds a CMA heap, which allows userspace to allocate >>> a dma-buf of contiguous memory out of a CMA region. >>> >>> This code is an evolution of the Android ION implementation, so >>> thanks to its original author and maintainters: >>> Benjamin Gaignard, Laura Abbott, and others! >>> >>> NOTE: This patch only adds the default CMA heap. We will enable >>> selectively adding other CMA memory regions to the dmabuf heaps >>> interface with a later patch (which requires a dt binding) > > Maybe we can use "no-map" DT property to trigger that. If set do not expose the > cma heap. "no-map" means it can't be used as a regular CMA either, we want some way to both have it as a device usable CMA but also not be exposed to userspace if needed. Andrew > > Benjamin >> >> That'll teach me for reading my email in FIFO order. >> >> This approach makes sense to me. >> >> -Brian >>