From: Damian Hobson-Garcia <dhobsong@igel.co.jp>
To: linux-kernel@vger.kernel.org
Cc: linux-s390@vger.kernel.org, catalin.marinas@arm.com,
will.deacon@arm.com, linux-arm-kernel@lists.infradead.org,
msalter@redhat.com, linux-c6x-dev@linux-c6x.org, deller@gmx.de,
linux-parisc@vger.kernel.org,
Damian Hobson-Garcia <dhobsong@igel.co.jp>
Subject: [PATCH v2 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs
Date: Tue, 30 Apr 2013 12:01:39 +0900 [thread overview]
Message-ID: <1367290899-10410-1-git-send-email-dhobsong@igel.co.jp> (raw)
Most architectures that define CONFIG_HAVE_DMA=y, have implementations for
both dma_alloc_attrs() and dma_free_attrs(). All achitectures that do
not define CONFIG_HAVE_DMA also have both of these definitions provided by
dma-mapping-broken.h.
Provide a default definition for the archs that define CONFIG_HAVE_DMA=y,
but have no implementation for dma_{alloc,free}_attrs().
As I don't have hardware for any of these systems, the patches are only
compile-tested where I could (arm64, s390) and untested for the archs
where I couldn't find a readily available prebuilt cross-compiler (c6x, parisc).
Changes from v1
---------------
arm64, s390:
* Since these archs are using dma_ops, pass appropirate value for attrs to
dma_ops->alloc().
* Indicate that these patches are compile teseted only (I don't have hardware)
c6x, parisc:
* Indicate that these patches are untested (I don't have cross compilers)
Cheers,
Damian
Damian Hobson-Garcia (4):
arm64: Provide default implementation for dma_{alloc,free}_attrs
c6x: Provide default implementation for dma_{alloc,free}_attrs
parisc: Provide default implementation for dma_{alloc,free}_attrs
s390: Provide default implementation for dma_{alloc,free}_attrs
arch/arm64/include/asm/dma-mapping.h | 17 +++++++++++------
arch/c6x/include/asm/dma-mapping.h | 3 +++
arch/parisc/include/asm/dma-mapping.h | 3 +++
arch/s390/include/asm/dma-mapping.h | 17 +++++++++++------
4 files changed, 28 insertions(+), 12 deletions(-)
--
1.7.5.4
next reply other threads:[~2013-04-30 3:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 3:01 Damian Hobson-Garcia [this message]
2013-05-22 2:37 ` [PATCH v2 0/4] dma-mapping: Define dma_{alloc,free}_attrs() for all archs Damian Hobson-Garcia
2013-05-22 9:47 ` Catalin Marinas
2013-05-23 2:47 ` Damian Hobson-Garcia
2013-05-23 9:47 ` Catalin Marinas
2013-05-24 2:52 ` Damian Hobson-Garcia
2013-05-22 18:19 ` Helge Deller
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=1367290899-10410-1-git-send-email-dhobsong@igel.co.jp \
--to=dhobsong@igel.co.jp \
--cc=catalin.marinas@arm.com \
--cc=deller@gmx.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=msalter@redhat.com \
--cc=will.deacon@arm.com \
/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