Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1768034ybg; Sat, 19 Oct 2019 02:06:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxi7gYNxqjLxzuDLqLYFVDsgLqC/3OHn6kV8Ay9zqyqG1OM4QQX6q0h6pcN1tIIIIGAluhQ X-Received: by 2002:a17:906:1d02:: with SMTP id n2mr12544555ejh.303.1571475979800; Sat, 19 Oct 2019 02:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571475979; cv=none; d=google.com; s=arc-20160816; b=urLh+0sLuHSeYQTTeN+i3LWOleQ5fDCPN3bM+WhDUznzbXKYnyu4BoiY2fXRD8iVXI zpdJ9GizmSs1gUwXmUOIR1Ylwxyerv+LqImyQbp4Q3bckqIbEUFYK5+iigmlStOri352 4k2VRWFrxWLB6JKomSRuLWvS/QXlJ+3WTBk62ZDdM3OwkAQoChagSanl26P+r7eDxCvA 5a2Mpbk8cwy7ayuxnVpBILBEcLKGUtWph+3x0wipRrwo3VM/bQ+VSAPMa9bPgYE0VZm8 Zlua/SZuXxYluNDi0ecU/v5kh7bxsSctK0yrL+vbBys5bJ/DPpKvR7CQjVLzOrRr/Zxh aM6A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jM3mqQowcnIqqAadMg1JP7jXhgCphy4yRtthUQq8/D4=; b=RHTDrL0Y3PQWHFEyLuOqDjEkHnUgfFiIaaRSLf1Jl08FCdeFXm4zuMMcy2e9JSA/TJ AKm31xoN/PSPQM861yy1yEpzTZIVQutDb5epNb/RloibPqXXYlL69K0GQ6b8dpMbkjZp JhRnPTmiP+ITVuX3rY79XRjz/tg4jyUm1Af1XIQu0Y7Fub6ro8jZNBIoZp9Awsfu+6On dgfLkxZqL5e6CdIwVU3wHU8n1okD9ufPp4ZaUNEJWhTIVL018r3BGxQdJxl473aNGhDh unLowLckggD2eTb4xwWD1g+Y+WGDdtDU2ojM7gY1u65+pkJ2WVNeIr7/sL6JY1WNfrca BLvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ncPaBbJZ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x45si5923342edd.388.2019.10.19.02.05.55; Sat, 19 Oct 2019 02:06:19 -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=@linaro.org header.s=google header.b=ncPaBbJZ; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2505660AbfJRS3m (ORCPT + 99 others); Fri, 18 Oct 2019 14:29:42 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35168 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2505612AbfJRS3l (ORCPT ); Fri, 18 Oct 2019 14:29:41 -0400 Received: by mail-wr1-f68.google.com with SMTP id l10so6847744wrb.2 for ; Fri, 18 Oct 2019 11:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jM3mqQowcnIqqAadMg1JP7jXhgCphy4yRtthUQq8/D4=; b=ncPaBbJZs3QwmaWC8n5a/tYGtGsYFjLWRdunAcoo3rSjcSu4BXW26U7bkskK8OO6TP 3FD7LHPbHqupw4LRalLiBKjaIbQtF7l7QQpAYNOXezS6l5cwIuHZqRFfCNF2PM5/d5Gg JDiVQWIYpUd8YD3+ZjOvMzMw80MGmCjEj2WwT/Sk8TZwXwReqB8P/yqQir49rSVFj1O4 T7cT2gpJsEYZcVXPV7R6V2ge1IxIVLQa4CTo55YCIM9PxFZW/4QOb3vPQKHujHyFG3Td mkW5GC6NJbJTjQBVCRIkJvb8/VxTcsr6+/dh7ax5gBifEzn2gwxJtliOQNSaqqmAdhVY niuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jM3mqQowcnIqqAadMg1JP7jXhgCphy4yRtthUQq8/D4=; b=kA8Urr3dfvQnRRj9u6QBehZ5bCZq2nsuVUQ6hW15yuR4bVRwqgazOWtfellEjluE9f YjA4sTzuaI8TbpI6IQfU/XBEUcRzc3c1H94p5ztNVgdV5ZZDBGV3SM9HE199gr6nffzJ 9MqL1mu4wwNCfNY0tqnrDQhy11d1gEx6H3jqwB7iKu6o8ojI/jca92YVYG1fDf125UiO kPPkwcGO6gJHWhVncNNZgff75ExK/G2+Eb0JqGvt9rYYY3aBVplPkoqM0oBY9iRg1cvh r7wqhc6XuGGayXfF+dxY4rHuErJAjoFIrWYXjk5M7ktfmMZHHb9XPaTTZzD+EY2vFLv3 Wl2w== X-Gm-Message-State: APjAAAVMHt+q0Mnx2FdIB7C3HejsIObm1/AbBX1Td10+89km8+1hqaSd cHVB+r+P7PsdBI10BkLUoHkrjZ++OprkIKZsqbropQ== X-Received: by 2002:a5d:55ce:: with SMTP id i14mr8818316wrw.169.1571423380050; Fri, 18 Oct 2019 11:29:40 -0700 (PDT) MIME-Version: 1.0 References: <20191018052323.21659-1-john.stultz@linaro.org> <20191018052323.21659-5-john.stultz@linaro.org> <20191018112124.grjgqrn3ckuc7n4v@DESKTOP-E1NTVVP.localdomain> In-Reply-To: From: John Stultz Date: Fri, 18 Oct 2019 11:29:29 -0700 Message-ID: Subject: Re: [PATCH v12 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps To: Benjamin Gaignard Cc: Brian Starkey , lkml , Laura Abbott , Sumit Semwal , Liam Mark , Pratik Patel , Vincent Donnefort , Sudipto Paul , "Andrew F . Davis" , Christoph Hellwig , Chenbo Feng , Alistair Strachan , Hridya Valsaraju , Hillf Danton , "dri-devel@lists.freedesktop.org" , nd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 5:04 AM Benjamin Gaignard wrote: > Le ven. 18 oct. 2019 =C3=A0 13:21, Brian Starkey = a =C3=A9crit : > > > > 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 expo= se the > cma heap. I don't think that's a good plan. See my WIP tree for the approach I'm plan= ning: https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=3Ddev/dm= a-buf-heap-WIP thanks -john