From: John Stultz <john.stultz@linaro.org>
To: Laura Abbott <labbott@redhat.com>
Cc: Chenbo Feng <fengc@google.com>,
Alistair Strachan <astrachan@google.com>,
Liam Mark <lmark@codeaurora.org>, "Andrew F . Davis" <afd@ti.com>,
dri-devel@lists.freedesktop.org
Subject: [EARLY RFC][PATCH 0/4] dmabuf pools infrastructure (destaging ION)
Date: Wed, 20 Feb 2019 23:40:26 -0800 [thread overview]
Message-ID: <1550734830-23499-1-git-send-email-john.stultz@linaro.org> (raw)
Here is a very early peek at my dmabuf pools patchset, which
tries to destage a fair chunk of ION functionality.
This build and boots, but I've not gotten to testing the actual
pool devices yet (need to write some kselftests)! I just wanted
some early feedback on the overall direction.
The patchset implements per-pool devices (extending my ion
per-heap devices patchset from last week), which can be opened
directly and then an ioctl is used to allocate a dmabuf from the
pool.
The interface is similar, but simpler then IONs, only providing
an ALLOC ioctl.
Also, I've only destaged the system/system-contig and cma pools,
since the ION carveout and chunk heaps depended on out of tree
board files to initialize those heaps. I'll leave that to folks
who are actually using those heaps.
Let me know what you think!
thanks
-john
Cc: Laura Abbott <labbott@redhat.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Liam Mark <lmark@codeaurora.org>
Cc: Brian Starkey <Brian.Starkey@arm.com>
Cc: Andrew F. Davis <afd@ti.com>
Cc: Chenbo Feng <fengc@google.com>
Cc: Alistair Strachan <astrachan@google.com>
Cc: dri-devel@lists.freedesktop.org
John Stultz (4):
dma-buf: Add dma-buf pools framework
dma-buf: pools: Add page-pool for dma-buf pools
dma-buf: pools: Add system/system-contig pools to dmabuf pools
dma-buf: pools: Add CMA pool to dmabuf pools
MAINTAINERS | 13 +
drivers/dma-buf/Kconfig | 2 +
drivers/dma-buf/Makefile | 1 +
drivers/dma-buf/pools/Kconfig | 25 ++
drivers/dma-buf/pools/Makefile | 4 +
drivers/dma-buf/pools/cma_pool.c | 143 ++++++++
drivers/dma-buf/pools/dmabuf-pools.c | 670 +++++++++++++++++++++++++++++++++++
drivers/dma-buf/pools/dmabuf-pools.h | 295 +++++++++++++++
drivers/dma-buf/pools/page_pool.c | 157 ++++++++
drivers/dma-buf/pools/pool-helpers.c | 317 +++++++++++++++++
drivers/dma-buf/pools/pool-ioctl.c | 94 +++++
drivers/dma-buf/pools/system_pool.c | 374 +++++++++++++++++++
include/uapi/linux/dmabuf-pools.h | 59 +++
13 files changed, 2154 insertions(+)
create mode 100644 drivers/dma-buf/pools/Kconfig
create mode 100644 drivers/dma-buf/pools/Makefile
create mode 100644 drivers/dma-buf/pools/cma_pool.c
create mode 100644 drivers/dma-buf/pools/dmabuf-pools.c
create mode 100644 drivers/dma-buf/pools/dmabuf-pools.h
create mode 100644 drivers/dma-buf/pools/page_pool.c
create mode 100644 drivers/dma-buf/pools/pool-helpers.c
create mode 100644 drivers/dma-buf/pools/pool-ioctl.c
create mode 100644 drivers/dma-buf/pools/system_pool.c
create mode 100644 include/uapi/linux/dmabuf-pools.h
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2019-02-21 7:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-21 7:40 John Stultz [this message]
2019-02-21 7:40 ` [EARLY RFC][PATCH 1/4] dma-buf: Add dma-buf pools framework John Stultz
2019-02-21 7:40 ` [EARLY RFC][PATCH 2/4] dma-buf: pools: Add page-pool for dma-buf pools John Stultz
2019-02-21 7:40 ` [EARLY RFC][PATCH 3/4] dma-buf: pools: Add system/system-contig pools to dmabuf pools John Stultz
2019-02-21 7:40 ` [EARLY RFC][PATCH 4/4] dma-buf: pools: Add CMA pool " John Stultz
2019-02-22 7:19 ` [EARLY RFC][PATCH 0/4] dmabuf pools infrastructure (destaging ION) John Stultz
2019-02-22 16:55 ` Andrew F. Davis
2019-02-22 17:24 ` John Stultz
2019-02-22 20:45 ` John Stultz
2019-02-23 6:21 ` John Stultz
2019-02-22 22:30 ` Laura Abbott
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1550734830-23499-1-git-send-email-john.stultz@linaro.org \
--to=john.stultz@linaro.org \
--cc=afd@ti.com \
--cc=astrachan@google.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fengc@google.com \
--cc=labbott@redhat.com \
--cc=lmark@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox