From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 2/2] Documentation: dmaengine: Add a documentation for the dma controller API
Date: Fri, 17 Oct 2014 13:23:56 +0200 [thread overview]
Message-ID: <20141017112356.GO19438@lukather> (raw)
In-Reply-To: <7725507.nuHj4C7OxF@avalon>
Hi Laurent,
Just getting back on something...
On Mon, Oct 06, 2014 at 03:09:48PM +0300, Laurent Pinchart wrote:
> > + * device_prep_dma_*
> > + - These functions are matching the capabilities you registered
> > + previously.
> > + - These functions all take the buffer or the scatterlist relevant
> > + for the transfer being prepared, and should create a hardware
> > + descriptor or a list of descriptors from it
> > + - These functions can be called from an interrupt context
> > + - Any allocation you might do should be using the GFP_NOWAIT
> > + flag, in order not to potentially sleep, but without depleting
> > + the emergency pool either.
>
> You could add "Drivers should try to preallocate the data structures they
> require to prepare a transfer."
Isn't that obvious?
I mean, if we're in this function, we're already preparing a
transfer... And I would expect any programmer that followed CS101 to
be able to allocate the memory it needs :)
The rest of the issues have been fixed, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141017/b7778648/attachment.sig>
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: "Dan Williams" <dan.j.williams@intel.com>,
"Vinod Koul" <vinod.koul@intel.com>,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org,
"Russell King" <linux@arm.linux.org.uk>,
"Arnd Bergmann" <arnd@arndb.de>,
"Antoine Ténart" <antoine@free-electrons.com>,
"Thomas Petazzoni" <thomas@free-electrons.com>,
"Alexandre Belloni" <alexandre.belloni@free-electrons.com>,
"Boris Brezillon" <boris@free-electrons.com>,
"Matt Porter" <matt.porter@linaro.org>,
"Gregory Clement" <gregory.clement@free-electrons.com>,
"Nicolas Ferre" <nicolas.ferre@atmel.com>
Subject: Re: [PATCH v2 2/2] Documentation: dmaengine: Add a documentation for the dma controller API
Date: Fri, 17 Oct 2014 13:23:56 +0200 [thread overview]
Message-ID: <20141017112356.GO19438@lukather> (raw)
In-Reply-To: <7725507.nuHj4C7OxF@avalon>
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
Hi Laurent,
Just getting back on something...
On Mon, Oct 06, 2014 at 03:09:48PM +0300, Laurent Pinchart wrote:
> > + * device_prep_dma_*
> > + - These functions are matching the capabilities you registered
> > + previously.
> > + - These functions all take the buffer or the scatterlist relevant
> > + for the transfer being prepared, and should create a hardware
> > + descriptor or a list of descriptors from it
> > + - These functions can be called from an interrupt context
> > + - Any allocation you might do should be using the GFP_NOWAIT
> > + flag, in order not to potentially sleep, but without depleting
> > + the emergency pool either.
>
> You could add "Drivers should try to preallocate the data structures they
> require to prepare a transfer."
Isn't that obvious?
I mean, if we're in this function, we're already preparing a
transfer... And I would expect any programmer that followed CS101 to
be able to allocate the memory it needs :)
The rest of the issues have been fixed, thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2014-10-17 11:23 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 15:40 [PATCH v2 1/2] Documentation: dmaengine: Move the current doc to a folder of its own Maxime Ripard
2014-09-26 15:40 ` Maxime Ripard
2014-09-26 15:40 ` [PATCH v2 2/2] Documentation: dmaengine: Add a documentation for the dma controller API Maxime Ripard
2014-09-26 15:40 ` Maxime Ripard
2014-09-26 18:04 ` Randy Dunlap
2014-09-26 18:04 ` Randy Dunlap
2014-10-07 16:48 ` Maxime Ripard
2014-10-07 16:48 ` Maxime Ripard
2014-10-06 12:09 ` Laurent Pinchart
2014-10-06 12:09 ` Laurent Pinchart
2014-10-07 12:16 ` Nicolas Ferre
2014-10-07 12:16 ` Nicolas Ferre
2014-10-07 14:52 ` Maxime Ripard
2014-10-07 14:52 ` Maxime Ripard
2014-10-07 15:05 ` Laurent Pinchart
2014-10-07 15:05 ` Laurent Pinchart
2014-10-08 12:19 ` Vinod Koul
2014-10-08 12:19 ` Vinod Koul
2014-10-09 8:56 ` Laurent Pinchart
2014-10-09 8:56 ` Laurent Pinchart
2014-10-08 12:07 ` Vinod Koul
2014-10-08 12:07 ` Vinod Koul
2014-10-09 13:39 ` Geert Uytterhoeven
2014-10-09 13:39 ` Geert Uytterhoeven
2014-10-09 14:04 ` Nicolas Ferre
2014-10-09 14:04 ` Nicolas Ferre
2014-10-17 11:23 ` Maxime Ripard [this message]
2014-10-17 11:23 ` Maxime Ripard
2014-10-22 20:08 ` Laurent Pinchart
2014-10-22 20:08 ` Laurent Pinchart
2014-09-28 15:57 ` [PATCH v2 1/2] Documentation: dmaengine: Move the current doc to a folder of its own Vinod Koul
2014-09-28 15:57 ` Vinod Koul
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=20141017112356.GO19438@lukather \
--to=maxime.ripard@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.