Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4038477ybg; Fri, 25 Oct 2019 12:25:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4KTO0GRVwri3D/EdW8+fDpiC6SqdP/HZwUz0LhQf8q+B1LjEneFjlEUGAl9Dt629hgXRY X-Received: by 2002:a17:907:2139:: with SMTP id qo25mr5076908ejb.207.1572031551922; Fri, 25 Oct 2019 12:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572031551; cv=none; d=google.com; s=arc-20160816; b=WDCV5mDXYke6vDrSdzw2EaiiLQHaI3Scb8cO8wtPdX2mWQHrixMd36NkQrRD6cOWI1 7sT0hNP8UcwoMAhXhENOCikQRYPF/M6mk52pA3rAyNQtEWaaIO3ieKJYBMd57RQASrJu vNouq62zE81Z7kXJJbMNW5H4fJOdZlJSxz5d5Z9HTHJq0zXJLe77seep7gOe8+Y30bKJ QQl5nbNgzCkSoluXimJxFPnAiBKimhVJDDNUpmsfj8dWlIiWv/h92AaxcdOZp88PJsAQ TyORc018uPq9wKcZIBWXI5oNnjmFUjRYgcf0lrGbi5SFdvFLmyxeHlWQFwuLoqk1jqDJ UEwA== 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=zThSuPucnYB11UxQ84T8AiU13at0QlBZrNas229mVK4=; b=WIMQbAfkpbTwuIP697YorSxFYH0SAYiBAr8RgxltLg0a1GLDMrRpgvYbbFx/8YDCZE 3HJdnSMDyiLXyTwsLGVh5pQ4M5fcQn4p092Oe743K6ofHHA3bkWzr/BnJZ1/kBk0FsSC e628eUPS6qJMKJitU6CblRTEu9oODL8zIusgbj7xgX4lmNVgUflbaM9CzSgRmIsE9BWn WunNSBGc266crsyRWFEj/t1FKtJsNEq/lYrPBSFwRonvLmMPYeTlYfzPAqypzQQNZTFt +wx8/HZ9wcVFAx6o2EbS9hl5/zIEzJYt3KRw7yVig2shaJ5GnKF90kWtDzeeNvg3zqqc Iqeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c83H9Xm7; 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 r8si1642119ejr.33.2019.10.25.12.25.28; Fri, 25 Oct 2019 12:25:51 -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=c83H9Xm7; 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 S2393949AbfJYF45 (ORCPT + 99 others); Fri, 25 Oct 2019 01:56:57 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:39975 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393713AbfJYF45 (ORCPT ); Fri, 25 Oct 2019 01:56:57 -0400 Received: by mail-ot1-f68.google.com with SMTP id d8so1144192otc.7 for ; Thu, 24 Oct 2019 22:56:56 -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=zThSuPucnYB11UxQ84T8AiU13at0QlBZrNas229mVK4=; b=c83H9Xm7uwJMYI/yUjZRfhl0JIbApRXJSslgxBFnsu3+JNMmAMx7Vvqg79Mi6F5/T6 YA1unfPBbMrOhFSPnFZD9anMpGXO7as8l8PS3IU6UuRSTKTtHQRTeIQ5cnevXgD2hoQR L0ZIv9KKe1hJr4+zMi9wkJlNvAqVxGIkipCP5TMv1G54C7Yvfa8pafyAv2nflkMDdISX B2QPxwy33Po1tlfhJM858lU65nHQxQ1WeBZuvXvDX0IWU/0EVCywYRpPVABbk3oam2AI lU8d5Q6W9avvustlUo+sDMgS/yqJ5T/Yq21JKWYu7JnDhMg35Fd522DIvy6agg0OXOi6 IImg== 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=zThSuPucnYB11UxQ84T8AiU13at0QlBZrNas229mVK4=; b=tKYUYinp55f2TPTcyVl2mEQZUZCb2Q3TtVmlY8Jp1S6zpXmIwYcCRQ4G+B7nHayDg8 8hRzKwMYFhXpq9KzZMByX7q0sxRfBkfwZHiXPAhtj3uOIbDisXe/JRPX8bjUWbuJ4wJP VicAAD7lVTa56rXTm/dej3sIcEAobXLtZbsmxLt+ofrUgmZZVJdtrxKLOPm25P9U69wi 3pfOjhJiTPmiHXGbC9Ij3wuD9PXnv1bWHLe7pMJ1Qov4IzeSGxGWeZZNJuRf/aRGerb3 mCuKHiDO3xOnqpr+FVWY2NBhza+QVjhh0p6oeq769MuHvZRk9lYpmjiDOegrBVjYtlp8 NjLA== X-Gm-Message-State: APjAAAV/hqVA5IyoaN4LopM3A5nECi/2fa62g1pWmtVVEAfEd4DbqlAY xA3Q6mEvM20hO8H0zP9Rq/8/w7cdTNKvU9smkgDLRA== X-Received: by 2002:a9d:2241:: with SMTP id o59mr1342045ota.224.1571983016328; Thu, 24 Oct 2019 22:56:56 -0700 (PDT) MIME-Version: 1.0 References: <20191021190310.85221-1-john.stultz@linaro.org> In-Reply-To: <20191021190310.85221-1-john.stultz@linaro.org> From: Sumit Semwal Date: Fri, 25 Oct 2019 11:26:44 +0530 Message-ID: Subject: Re: [PATCH v13 0/5] DMA-BUF Heaps (destaging ION) To: John Stultz Cc: lkml , Laura Abbott , Benjamin Gaignard , Liam Mark , Pratik Patel , Brian Starkey , Vincent Donnefort , Sudipto Paul , "Andrew F . Davis" , Christoph Hellwig , Chenbo Feng , Alistair Strachan , Hridya Valsaraju , Hillf Danton , DRI mailing list 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 Hi John, On Tue, 22 Oct 2019 at 00:33, John Stultz wrote: > > Lucky number 13! :) > > Last week in v12 I had re-added some symbol exports to support > later patches I have pending to enable loading heaps from > modules. He reminded me that back around v3 (its been awhile!) I > had removed those exports due to concerns about the fact that we > don't support module removal. > > So I'm respinning the patches, removing the exports again. I'll > submit a patch to re-add them in a later series enabling moduels > which can be reviewed indepently. This looks good to me, and hasn't seen any more comments, so I am going to merge it via drm-misc-next today. > > With that done, lets get on to the boilerplate! > > 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 relatively simple system and cma heaps. > > 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 > > Compared to ION, this patchset is missing the system-contig, > carveout and chunk heaps, as I don't have a device that uses > those, so I'm unable to do much useful validation there. > Additionally we have no upstream users of chunk or carveout, > and the system-contig has been deprecated in the common/andoid-* > kernels, so this should be ok. > > I've also removed the stats accounting, since any such > accounting should be implemented by dma-buf core or the heaps > themselves. > > New in v13: > * Re-remove symbol exports, per discussion with Brian. I'll > resubmit these separately in a later patch so they can be > independently reviewed > > thanks > -john Best, Sumit.