Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1734634ybg; Sat, 19 Oct 2019 01:21:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZHEGJ6zGHMIL68CZcjbA/Pn9frs5iBnH996W4w9oCtEbXfcliaaSNEzovNwRmHOMaXTJM X-Received: by 2002:a17:906:5381:: with SMTP id g1mr12484597ejo.159.1571473264540; Sat, 19 Oct 2019 01:21:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473264; cv=none; d=google.com; s=arc-20160816; b=bHZf9scFQdntPXwFHcdQAbCPtVnY194Aw0Kw+Ky8g/NU7YsG9wPJKwAA2DKMUo/Sb7 US4+qF0Tsji64/yCOpaqg2aygEfPyVPP+nr8iThCaqP8RelBi7cr8bucilfCDdJ0a3dy al819CNPwOCSVyD+hFogufyXXY1hGMFNIFHtOaWt/caiRhd93vBYn2Fbi/fDbEhW+bhl lQpfDbhIeBRw2tI9ynU+ZaCFs6p0SARDh45jjgRuH+kQGO/vAln00zyhmLDgdIGYPA3d 1Q1Scrvm2SKJWkg+WAKJJrSZj9dC9Kck/Lc5JDK7mWR2sNNSxt278HHgTD4Y/IZ0rx5d 8Y8A== 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=Zgv+qsT50asyCBxx8dHLrc/7R2zuXJqrAElFwEmz+6o=; b=gwzypMTn1JvvyHXhzDa/MUK7JmxVIXrJgE8ACh0m4YUlReycYb2hsAV6VJsqTSbP8F uAKDi5WgXsp85RpJrOkpFFrLemJ18f1cTlqoQqMYJ5OZ2PWG4sqSYIWqEBaDo/sQIuWH Laj0E+ezCMDixaznxfjkWta0QTt0REyJD1QUEIiUMNIlPqJonmYTcLPAdd14dDuHBz4e P+yEiNNV3YKC5KmrVKUu1WYQRKrdGMm9lPk0D80xrHRi+PVIKggC4CMvcpwZod/of0XJ ckkoLluPtYu1k/a8ddz3hZOErNb2bvA8lHPYDnxPvhWzsTjyZ4WyOjTTX3At+vLmnCAH 2r/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="PRl4/YMK"; 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 p5si1086596eja.141.2019.10.19.01.20.41; Sat, 19 Oct 2019 01:21:04 -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="PRl4/YMK"; 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 S2408405AbfJRMEF (ORCPT + 99 others); Fri, 18 Oct 2019 08:04:05 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46587 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392487AbfJRMEF (ORCPT ); Fri, 18 Oct 2019 08:04:05 -0400 Received: by mail-qt1-f195.google.com with SMTP id u22so8618761qtq.13 for ; Fri, 18 Oct 2019 05:04:04 -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=Zgv+qsT50asyCBxx8dHLrc/7R2zuXJqrAElFwEmz+6o=; b=PRl4/YMK8PN+sw8qz9vbBuWmnDNxUIbUV/4by7yJ/ZaetJCfkYyfwrAGp4L4IH6LoP X90KnC+d9bCIKe0fkrb8KwvqpCKLZfxHCWiRVC5+Avh65mJjwzKqn/c7tQy4nIFc43w6 fEhxkzcQyeFDnYdq9lc6NIglUPHlGjhxzCtISkWH0lr1mN/d5ArBGgrWkrdHp3Fe8Lyd mX6Uxi4EFn19ZqRvFKdtnYLqjyXoc84MmMj+814gfoww9pORycIuZnYnOy5whHI3n0U7 fWrPnn2VRYK4wEAYgggIvmmEHwL+yRBrdIpc5fY7eSH2tabBEWdHELFqZ+S8jDFESWhz xVmw== 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=Zgv+qsT50asyCBxx8dHLrc/7R2zuXJqrAElFwEmz+6o=; b=kbCTKpLYurM8Xyli6l/Hd63KPj8PfcbiW48TcZLK3T03wHt6FdVnrHKr0wnSsjYnbg lLEPmnR+3Q2Yo0KGDt3yH6knAkaUXSY4gzZ4pwtboyJaqobuAG6SBFTFAdgRP2vHwVWG oL6Vvku2TXL9jmbHWdjEGMG1W+XjwMK7y2cKWmwwE79HQjfpDlXWtwtK+9ojcarm5o3G +FupVNeQSLCx/eVmkvheY6EuzapjfOZBtfL1d+sur4OyS62qwz04SYfEJYxcvBFCoGPX yFcJqYX+C5zhPMiCku7S1vfpfj01R5Lm4Lw7xFH6cAoWjZjJC+tMWCLU9G1Mdo8p7myc +l+A== X-Gm-Message-State: APjAAAXHOyN7cwgnfKYBUlXYSgGx4a1D5Oe22mOdjKKybvrIYNMdq8t7 iH7+eIABxNrOxXiRpI5ABPIT5Wzm31MPikuqBvBuQw== X-Received: by 2002:ac8:110d:: with SMTP id c13mr9331476qtj.209.1571400244300; Fri, 18 Oct 2019 05:04:04 -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: <20191018112124.grjgqrn3ckuc7n4v@DESKTOP-E1NTVVP.localdomain> From: Benjamin Gaignard Date: Fri, 18 Oct 2019 14:03:53 +0200 Message-ID: Subject: Re: [PATCH v12 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps To: Brian Starkey Cc: John Stultz , 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 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 expose= the cma heap. Benjamin > > That'll teach me for reading my email in FIFO order. > > This approach makes sense to me. > > -Brian >