From: John Stultz <john.stultz@linaro.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: John Stultz <john.stultz@linaro.org>,
Colin Cross <ccross@android.com>,
Greg KH <gregkh@linuxfoundation.org>,
Jesse Barker <jesse.barker@arm.com>,
Android Kernel Team <kernel-team@android.com>
Subject: [PATCH 0/2] ION dummy driver v2
Date: Thu, 9 Jan 2014 21:08:36 -0800 [thread overview]
Message-ID: <1389330518-31919-1-git-send-email-john.stultz@linaro.org> (raw)
The ION subsystem requires something register it along with the
various heaps that may be available on a system in order to work
(Otherwise no /dev/ion is created).
This can make it difficult to play with. Thus I've created this
simple dummy driver which allocates and registers some basic heaps.
I've been using this dummy driver, along with Colin's unit tests
and test driver, to be able to validate basic functionality on
a number of architectures and it was handy to chase down a few
issues before ION was submitted to staging.
If you want to play with all of this, Colin's unit tests can be
found in AOSP under the system/core/libion directory, but if you
want to try to use them in a non-Android environment, I've
mirrored that directory and added some changes to get it building
under Ubuntu here:
https://github.com/johnstultz-work/ion-test
Greg: I realize this is after the usual -rc6 cutoff for staging,
and I've already made a fool of myself with v1 (but maaaaybe you
don't remember!) so no pressure if you want to defer this for 3.15.
thanks
-john
Changes in v2:
* Fix module build issue (should have been bool instead of tristate)
Cc: Colin Cross <ccross@android.com>
Cc: Greg KH <gregkh@linuxfoundation.org>
Cc: Jesse Barker <jesse.barker@arm.com>
Cc: Android Kernel Team <kernel-team@android.com>
John Stultz (2):
ion: Add dummy driver for testing
ion: Add carveout and chunk heaps to dummy driver
drivers/staging/android/ion/Kconfig | 10 ++
drivers/staging/android/ion/Makefile | 3 +
drivers/staging/android/ion/ion_dummy_driver.c | 158 +++++++++++++++++++++++++
3 files changed, 171 insertions(+)
create mode 100644 drivers/staging/android/ion/ion_dummy_driver.c
--
1.8.3.2
next reply other threads:[~2014-01-10 5:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-10 5:08 John Stultz [this message]
2014-01-10 5:08 ` [PATCH 1/2] ion: Add dummy driver for testing John Stultz
2014-01-10 5:08 ` [PATCH 2/2] ion: Add carveout and chunk heaps to dummy driver John Stultz
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=1389330518-31919-1-git-send-email-john.stultz@linaro.org \
--to=john.stultz@linaro.org \
--cc=ccross@android.com \
--cc=gregkh@linuxfoundation.org \
--cc=jesse.barker@arm.com \
--cc=kernel-team@android.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®