Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp44747imc; Fri, 15 Mar 2019 16:17:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1C+4J/GsgVGRTIDcnthEwiZpoa4VJLVT7M/qxrRm6l3cuLjDFBz2pqAp71dc7nv2eML8g X-Received: by 2002:a63:7c07:: with SMTP id x7mr5965591pgc.284.1552691842925; Fri, 15 Mar 2019 16:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552691842; cv=none; d=google.com; s=arc-20160816; b=aFPzDJS0FgiMCZOBTIh1DDLdfYuE4+RXwa0N7eGvtavp+Z5qcReMWThSzYa6eTvEuK FPPEiWqpxdgoO9YIRshsO26z1RQRm4z/m9eBZh4U5EJhErU+sIWQsb4ovGAQph/fjhZe pFo+MNFfIHrzKKfrAk+DWUlCybskOaMEbKqHAJQO7szCQuHWCRwX9YT4hUaX6IuRN0x/ kIp6vG78cBAiPQtLJH8EQ8NlzAn7VKucQXgl1+j+qURHciTwfboFqykhIrKP/oH3OKNt /wKRbzmLFSm+bBOfp7qHUBoidt+44rd10pcGVU3xHN/2jUJ9vNST0wP76zgWYGmWKfzA rvCg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=jQ5Wnxm9qq7p5TYtRBqkUn6H+qkEB/e8vHqGR9Kp05Q=; b=dah861ETFZUnOTUjaODgyPwVBgCxGnsCV8aWFkBT2lO+5tdRffirciB1fdWmfg0FC+ QO8uTn/6kOF586lzvGocRh2jIjg68FjK05fxcGzVUcsiX04oWlPpyFVUBS2yjWbiMwgI 6bILlQRXjT8yd6GHaoTysVFq/xu0zaaCH4+59nWHu4+0r/ur+CVd5kFKT3w1s4zrldJB UYWEuW60dgevyhRloXe2nrfyHe3GM6pFkFMaODJqcesIuLijMRT5pl8l44uiXu+dBrA4 DBM9mgVYhWyV6gIt/BozQyQdAil2tDwf8jwEA2BjdrgodkmYD6Sw/XbLNuTi8cdtRfde v5vA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si2838420plp.191.2019.03.15.16.17.06; Fri, 15 Mar 2019 16:17:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727165AbfCOXPv (ORCPT + 99 others); Fri, 15 Mar 2019 19:15:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42118 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfCOXPu (ORCPT ); Fri, 15 Mar 2019 19:15:50 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A599D307EAA9; Fri, 15 Mar 2019 23:15:50 +0000 (UTC) Received: from redhat.com (ovpn-120-17.rdu2.redhat.com [10.10.120.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 95A3E5C219; Fri, 15 Mar 2019 23:15:49 +0000 (UTC) Date: Fri, 15 Mar 2019 19:15:47 -0400 From: Jerome Glisse To: John Stultz Cc: lkml , Greg KH , Chenbo Feng , Alistair Strachan , Liam Mark , dri-devel@lists.freedesktop.org, "Andrew F . Davis" Subject: Re: [RFC][PATCH 0/5 v2] DMA-BUF Heaps (destaging ION) Message-ID: <20190315231547.GB3242@redhat.com> References: <1551819273-640-1-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1551819273-640-1-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 15 Mar 2019 23:15:50 +0000 (UTC) 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:28PM -0800, John Stultz wrote: > Here is a initial RFC of the dma-buf heaps patchset Andrew and I > have been working on which tries to destage a fair chunk of ION > functionality. > > The patchset implements per-heap devices which can be opened > directly and then an ioctl is used to allocate a dmabuf from the > heap. > > The interface is similar, but much simpler then IONs, only > providing an ALLOC ioctl. > > Also, I've provided simple system and cma heaps. The system > heap in particular is missing the page-pool optimizations ION > had, but works well enough to validate the interface. > > I've booted and tested these patches with AOSP on the HiKey960 > using the kernel tree here: > https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/dma-buf-heap > > And the userspace changes here: > https://android-review.googlesource.com/c/device/linaro/hikey/+/909436 What upstream driver will use this eventualy ? And why is it needed ? Cheers, J?r?me