Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1291978ybg; Fri, 18 Oct 2019 15:19:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmmmvvoSrENrI8Cv+gYlbhxGwn9hoi9fH0eWaG4qlI7z9nnqpv4pvfR2UcuYm1cZGpXb/U X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr10914839ejn.53.1571437187397; Fri, 18 Oct 2019 15:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437187; cv=none; d=google.com; s=arc-20160816; b=hAtyQvKii78xRgNQFGWsI7knetwlx61svu1Zb9SqmYRwicjQ5bu3GTt2Ye59URXdCh 0w9p7x6M79I/LMDzHq15gBYbJcpmiEcmpl8Qxkh8ggMRYd4f6wbK956YpbznMf0uIoJm nSlYDHyeuNWup3Crec3OuDgHtsnPF2SggpwRtg8Ji3Q+oAqGh86AmC3Nqt8NAZN8o+Wh n6Dt6qbiuz4a71mF1NZVsRxQdzf8mppkn01SfaFwZsAOGXP92ZE6vUkVSVfomHYZkbWm nKhOURY1tyo3hjig0TsRZYxFsQGas2eIexV7zle/g7A/CyHgtJZbWHCbljzQ7gaqMab9 OHzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bwyoXQ4jJ4Q5almIdl345BmuxoSl8eF1qmSvscrD0n0=; b=ukcoazu4j9H9WE4ATd6A14CLmABWtLYr4QnXPVq0xetFabOHnXDgqoF1xtBxlCDQCR ibv62YdsaPvkP9hWQSegK6WlnpqSQYZINJ1w6W3K39tpPccOCg6j90x8JN/W/+k8q0Cy U7lDcquoYFB1QKLQufkKG3r64fASeofwHzEKxh7vHPPGHtl7pLGcyFW3mdKzsdBxfI6s rCCo01fxLy+6kFPzjwq9aHBJb6Olgo9UPzwt4OEaL5f4pg0arfLeZjYjFK2reESrJO+7 xNkJhyCuZ+7/qJHO5XQEf0M7h8JL2DEZkDqheU/fimmZRaIA9uDd8bR/25GwA/tWQm8U BtMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IVTXzhWt; 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 29si4978735eje.235.2019.10.18.15.19.24; Fri, 18 Oct 2019 15:19:47 -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=IVTXzhWt; 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 S2440939AbfJQU6B (ORCPT + 99 others); Thu, 17 Oct 2019 16:58:01 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42367 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437004AbfJQU6A (ORCPT ); Thu, 17 Oct 2019 16:58:00 -0400 Received: by mail-wr1-f65.google.com with SMTP id n14so3862493wrw.9 for ; Thu, 17 Oct 2019 13:57:58 -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; bh=bwyoXQ4jJ4Q5almIdl345BmuxoSl8eF1qmSvscrD0n0=; b=IVTXzhWtbuaLfp8YXz+L8gLII5lGU1ebkqAd/xq4aWHP7GLdwF3jh8hD75ka45BcYR rMlTQmTIYEORbZKcfGUU0zRRfOhV/1Ych2oGyZQYB3wTcIuNaCMcK7gtLCw51zOewVDi ZNbpv0SXBn6FlgHTtfDp1kqeGPlilmqew5qKv1KWSyknezR9kbPQX0hj+knIhu66dcAF IoMGc0cU07u/AZ9fl5fX3dlKUhOZw1tdXjRu/KbPXEzvoy/4gviKn1aWohsq84E0Idhg op6109z7y4WdcTVtIZbbk70O8gufTDYPo04gLFpqRnpRkt3uteetCciSl6heWBVHrDca Coyw== 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; bh=bwyoXQ4jJ4Q5almIdl345BmuxoSl8eF1qmSvscrD0n0=; b=M4uRhxOC7Bb2l/QFZTIbjtfkpIp43fxysNNDLhzxcrQkiYKo8Y0FdOepHeRzCUGoGs 4XLt1ep5aS0CKGeQALRYD4VcJK9SVu2XYhpdH/1IAKPsmE70ZNjoxl4HwyyBIOV3BJkt NEW5EEudQ4YT4aU9IypTi9FnyiGjKqMa2qIQd9XbZcFWb2UUZIu9VWQr1af0LkIS5STq KXGmh3CzbXGkVZ1h5AsOpd6DdXPiNBL/RYRawAwOkM4iMT53pewROM+mAyhuTyC4nmsQ 0AK/T8lluC9Of2ME1yvg/i0rZc72CCccyv/7iqI5ApTdMZeVp1HPX9yDv77yTrJ6anas GRMw== X-Gm-Message-State: APjAAAX4ZFrqjNZ8M5FCF0K9gL4bf4VFmamlThqf2Log+/QWrmRUK633 z+N2hB///GDpH1d1hApwppnPQA0a+e1a08Itb8xskg== X-Received: by 2002:a5d:50c9:: with SMTP id f9mr4527964wrt.36.1571345877272; Thu, 17 Oct 2019 13:57:57 -0700 (PDT) MIME-Version: 1.0 References: <20190906184712.91980-1-john.stultz@linaro.org> <20190924162217.GA12974@arm.com> <20191009173742.GA2682@arm.com> <20191014090729.lwusl5zxa32a7uua@DESKTOP-E1NTVVP.localdomain> In-Reply-To: From: John Stultz Date: Thu, 17 Oct 2019 13:57:45 -0700 Message-ID: Subject: Re: [RESEND][PATCH v8 0/5] DMA-BUF Heaps (destaging ION) To: "Andrew F. Davis" Cc: Brian Starkey , nd , Sudipto Paul , Vincent Donnefort , Chenbo Feng , Alistair Strachan , Liam Mark , lkml , Christoph Hellwig , DRI mailing list , Hridya Valsaraju , Ayan Halder , Pratik Patel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 12:29 PM Andrew F. Davis wrote: > On 10/17/19 3:14 PM, John Stultz wrote: > > But if the objection stands, do you have a proposal for an alternative > > way to enumerate a subset of CMA heaps? > > > When in staging ION had to reach into the CMA framework as the other > direction would not be allowed, so cma_for_each_area() was added. If > DMA-BUF heaps is not in staging then we can do the opposite, and have > the CMA framework register heaps itself using our framework. That way > the CMA system could decide what areas to export or not (maybe based on > a DT property or similar). Ok. Though the CMA core doesn't have much sense of DT details either, so it would probably have to be done in the reserved_mem logic, which doesn't feel right to me. I'd probably guess we should have some sort of dt binding to describe a dmabuf cma heap and from that node link to a CMA node via a memory-region phandle. Along with maybe the default heap as well? Not eager to get into another binding review cycle, and I'm not sure what non-DT systems will do yet, but I'll take a shot at it and iterate. > The end result is the same so we can make this change later (it has to > come after DMA-BUF heaps is in anyway). Well, I'm hesitant to merge code that exposes all the CMA heaps and then add patches that becomes more selective, should anyone depend on the initial behavior. :/ So, , I'll start on the rework for the CMA bits. That said, I'm definitely wanting to make some progress on this patch series, so maybe we can still merge the core/helpers/system heap and just hold the cma heap for a rework on the enumeration bits. That way we can at least get other folks working on switching their vendor heaps from ION. Sumit: Does that sound ok? Assuming no other objections, can you take the v11 set minus the CMA heap patch? thanks -john