Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp258941ima; Fri, 15 Mar 2019 02:08:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGZ97tvJsKRpTw5zwoEs+RRSUpkGDzTNxOKieHOyYX/C7f6IYkIeYSqm8EFyTKwnagH7sM X-Received: by 2002:a63:e952:: with SMTP id q18mr2329980pgj.156.1552640893102; Fri, 15 Mar 2019 02:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552640893; cv=none; d=google.com; s=arc-20160816; b=Zu5JzRgqftffP+EebeALcmd0STjraUtP0npuRcKN9U1o+eG4gOZiIefkWd20SDSFHE OlBI+6RvqR+LrsoRRLpuCvRJCCE3Zx5nmuL8R+MwTzZTqMzjbHvUXDCrgZtb4ZwrHT8p fXpS85RUNVxhvXA7t3WSafrk0GYAedld2C0PDtZO/WRzcRPgwTBBsyrC4e36RPAy52lG 0dQV0VkZZELjUddlgzWU1rHQvUb7VRgurQbOfYNv5dGtNIF2zLiQdfeYpZgDB4nAeJ5J YYoEXrPV2ybkqQWLqcXmuxRbLovGnUYK82Q3Mn6lMC3wBTAPs5QYy56FxBpP1PlbLPum xx0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XmqefP1Bm/5cDFSiCMOElThZks0xyz9N25l34qq6/CM=; b=IDOOB2kQwxivSwS7WLv9Wdpi6YzGLkrXJxPQdScH4z2P3SJalAKjK8xSCfIV6fo/EU wOF2lbyuz+49jxkPuOyh09cQZdSJd36gDNxvx0VVnGAd+6YUrruXDwor/arDTZwQwx0/ sB9e1H8US51wT3akvAYlOrPl/4Mo1xRMVE2L3L0t74W8Bi6Vzla1452WyhnqrwI6Wvd7 18lGWqEn2ycrvWayJQmnnlguV3DKBt0Ye2te80fCIpgkM5NO9Q3l7cV8kbf1Kcwt8DAA e4+BMhT75/BvMXlMQ66IXWVSpZI78lJMJ6IHSV4kkAa16S3ClL0hbyEM1x6fsuCqpCkS QkkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cezOvxZC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si1289965plp.349.2019.03.15.02.07.58; Fri, 15 Mar 2019 02:08:13 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cezOvxZC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728712AbfCOJHF (ORCPT + 99 others); Fri, 15 Mar 2019 05:07:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:35274 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728667AbfCOJGx (ORCPT ); Fri, 15 Mar 2019 05:06:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XmqefP1Bm/5cDFSiCMOElThZks0xyz9N25l34qq6/CM=; b=cezOvxZCHmY/Ce7l4r7zN+2cR W6y+Bq/SUrsZgSetS7fb1kF/yVmCLZo3wIqPBfzQZWI09v4cTbv2NaSPYS75VucxARejk8yk56IIx XtT7mxypK1C2gWEGh5rBoOvD1rr3QK/88ZqQdhk1ub4kPT7GGia2PhW9QHkvVdTYu/vVcS1RIeav3 jMroo9HpHF/eH6b/SMT99ORi1AAgdRfzBsuTtFj7YKSTmL2CZ+1RP4aPDW8+sV0PJyLo1rTQoqN2K a3kTT1f7QJHM8gxFGFfNOHZKY3tdK9jITcSRLcrExvv+MMjFNO4NTM62PL6qpxdX/hGc3YhnP8ah9 fWHfy+XWw==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4ink-0008Ha-DN; Fri, 15 Mar 2019 09:06:52 +0000 Date: Fri, 15 Mar 2019 02:06:52 -0700 From: Christoph Hellwig To: John Stultz Cc: lkml , Laura Abbott , Benjamin Gaignard , Greg KH , Sumit Semwal , Liam Mark , Brian Starkey , "Andrew F . Davis" , Chenbo Feng , Alistair Strachan , dri-devel@lists.freedesktop.org Subject: Re: [RFC][PATCH 4/5 v2] dma-buf: heaps: Add CMA heap to dmabuf heapss Message-ID: <20190315090652.GE4470@infradead.org> References: <1551819273-640-1-git-send-email-john.stultz@linaro.org> <1551819273-640-5-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551819273-640-5-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 05, 2019 at 12:54:32PM -0800, John Stultz wrote: > This adds a CMA heap, which allows userspace to allocate > a dma-buf of contiguous memory out of a CMA region. With my previous suggestion of DMA API usage you'd get CMA support for free in the system one instead of all this duplicate code..