Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp932767ybp; Thu, 17 Oct 2019 05:49:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqykWj9xKgKuP3xMKsA792sr4jUEC1SwOVm5RICvY4aczPptiLbLgE7HJU2mZOuHozC2po7/ X-Received: by 2002:a17:906:fcac:: with SMTP id qw12mr3223521ejb.31.1571316555561; Thu, 17 Oct 2019 05:49:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571316555; cv=none; d=google.com; s=arc-20160816; b=IV0E6ot+xXim4uKcz1g18eUkhadlJVlios23ncjI5hyhP/T85xZvfGnAJRivFsHiu2 gcz6gSuhuGd3nzrkbgT07TxZkeD7m+ZWKa6jV3bE6ll24Vd5ruRnok9eI/ikjE6tES7a ytIIYKp1Is2UqvEyJ1XaFD7Ic1uyr+7/V318Hrr0/r9cUdm94ooQloppptl/fwolpLwj yoiy+KXrY6C0ELF3x6rTJDFDRDkiRaG3y2QiTC+cvt0LaoQBxPp7nSd2nHzpsvgTHS84 X8HrSpF3s05KtIwyFg2ud2oD4fmTW2chKJMNCnjsIKaMIH2akuKn2H5EKt6yzmLBqddU 2KIA== 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=Wc7RR5GvEzErLs8YJE/8azaMJ2X1mI57r2l2h9Hi84s=; b=VlwQjcVg+HqTYtttHQ58A9fu6AzGMOXlcGIAwaT3NawGCZ1fQWPF/RV3YGo1GKvTSD P6Qi8EbWuXSr/dahIiulXvVVdyaTs0pwpU1uoSgM+PKJLs42xbi6/M0Ptn1C/qtX2ESv 2KyGQeYqDKZBgJFgMvsIppNiiNsHY+NEcwq4OGjshlW3U8bWpUlmKX/U6ZK28kR1tHQy 0XhVxr8ZHYmcmu8qBLDg7y/EZWOt7Uud8jBMQYVjE3HQgSLhtZXzHfRoz0XPRq+KFODD M3+jK5yQMuzSIHhmmzAC81wl2A8rQfzoxl5C46qAGCjSKTGEmSsjwIYG7ePGVihIMiMW Zb/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=pmneRVSl; 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 a3si1453781edr.20.2019.10.17.05.48.52; Thu, 17 Oct 2019 05:49:15 -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=pmneRVSl; 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 S2389234AbfJPRlB (ORCPT + 99 others); Wed, 16 Oct 2019 13:41:01 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:54368 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbfJPRlA (ORCPT ); Wed, 16 Oct 2019 13:41:00 -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 x9GHeiln054132; Wed, 16 Oct 2019 12:40:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571247644; bh=Wc7RR5GvEzErLs8YJE/8azaMJ2X1mI57r2l2h9Hi84s=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=pmneRVSlMMtJZS9TC6eP4IE7K4BF4wF7y7u3LRIFYqflLA9GQ+VyCckB/roTGGjQw NsHrk6pYWjxTBjTGacKt7dAwwErYSyjBlUpNYFQpOjeRQvtwPQEREYsnVH2osls3b/ 9FSc4kYRas+i3s6kdjxbR+T1vorvQ93zuWvWRMD4= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9GHeiGq109306 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Oct 2019 12:40:44 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 16 Oct 2019 12:40:37 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE106.ent.ti.com (157.170.170.36) 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; Wed, 16 Oct 2019 12:40:44 -0500 Received: from [10.250.79.55] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9GHehq7108884; Wed, 16 Oct 2019 12:40:43 -0500 Subject: Re: [RESEND][PATCH v8 0/5] DMA-BUF Heaps (destaging ION) To: Brian Starkey CC: Ayan Halder , Sumit Semwal , Sudipto Paul , Vincent Donnefort , Chenbo Feng , Alistair Strachan , Liam Mark , lkml , Christoph Hellwig , DRI mailing list , Hridya Valsaraju , nd , Pratik Patel References: <20190906184712.91980-1-john.stultz@linaro.org> <20190924162217.GA12974@arm.com> <20191009173742.GA2682@arm.com> <20191014090729.lwusl5zxa32a7uua@DESKTOP-E1NTVVP.localdomain> From: "Andrew F. Davis" Message-ID: Date: Wed, 16 Oct 2019 13:40:43 -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: <20191014090729.lwusl5zxa32a7uua@DESKTOP-E1NTVVP.localdomain> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit 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/14/19 5:07 AM, Brian Starkey wrote: > Hi Andrew, > > On Wed, Oct 09, 2019 at 02:27:15PM -0400, Andrew F. Davis wrote: >> The CMA driver that registers these nodes will have to be expanded to >> export them using this framework as needed. We do something similar to >> export SRAM nodes: >> >> https://lkml.org/lkml/2019/3/21/575 >> >> Unlike the system/default-cma driver which can be centralized in the >> tree, these extra exporters will probably live out in other subsystems >> and so are added in later steps. >> >> Andrew > > I was under the impression that the "cma_for_each_area" loop in patch > 4 would do that (add_cma_heaps). Is it not the case? > For these cma nodes yes, I thought you meant reserved memory areas in general. Just as a side note, I'm not a huge fan of the cma_for_each_area() to begin with, it seems a bit out of place when they could be selectively added as heaps as needed. Not sure how that will work with cma nodes specifically assigned to devices, seems like we could just steal their memory space from userspace with this.. Andrew > Thanks, > -Brian >