All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	linux-sh@vger.kernel.org, Vinod Koul <vinod.koul@intel.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	dmaengine@vger.kernel.org,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: DMA engine API issue
Date: Thu, 24 Jul 2014 14:29:09 +0200	[thread overview]
Message-ID: <53D0FC15.6050601@metafoo.de> (raw)
In-Reply-To: <28702317.aD0C1Ga3DS@avalon>

On 07/23/2014 01:07 PM, Laurent Pinchart wrote:
[...]
> Let's start by answering the background question and updating the DMA engine
> API documentation once and for good : in which context are drivers allowed to
> call the prep, tx_submit and issue_pending functions ?
>

I think the expectation is that these functions can be called in any 
context. Maybe what's missing is a way to tell the DMA engine driver to get 
ready and that it is going to be used very soon. This could be done from the 
sound devices open() callback.

- Lars

WARNING: multiple messages have this Message-ID (diff)
From: Lars-Peter Clausen <lars@metafoo.de>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@gmail.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	linux-sh@vger.kernel.org, Vinod Koul <vinod.koul@intel.com>,
	Magnus Damm <magnus.damm@gmail.com>,
	dmaengine@vger.kernel.org,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [alsa-devel] DMA engine API issue
Date: Thu, 24 Jul 2014 12:29:09 +0000	[thread overview]
Message-ID: <53D0FC15.6050601@metafoo.de> (raw)
In-Reply-To: <28702317.aD0C1Ga3DS@avalon>

On 07/23/2014 01:07 PM, Laurent Pinchart wrote:
[...]
> Let's start by answering the background question and updating the DMA engine
> API documentation once and for good : in which context are drivers allowed to
> call the prep, tx_submit and issue_pending functions ?
>

I think the expectation is that these functions can be called in any 
context. Maybe what's missing is a way to tell the DMA engine driver to get 
ready and that it is going to be used very soon. This could be done from the 
sound devices open() callback.

- Lars

WARNING: multiple messages have this Message-ID (diff)
From: lars@metafoo.de (Lars-Peter Clausen)
To: linux-arm-kernel@lists.infradead.org
Subject: [alsa-devel] DMA engine API issue
Date: Thu, 24 Jul 2014 14:29:09 +0200	[thread overview]
Message-ID: <53D0FC15.6050601@metafoo.de> (raw)
In-Reply-To: <28702317.aD0C1Ga3DS@avalon>

On 07/23/2014 01:07 PM, Laurent Pinchart wrote:
[...]
> Let's start by answering the background question and updating the DMA engine
> API documentation once and for good : in which context are drivers allowed to
> call the prep, tx_submit and issue_pending functions ?
>

I think the expectation is that these functions can be called in any 
context. Maybe what's missing is a way to tell the DMA engine driver to get 
ready and that it is going to be used very soon. This could be done from the 
sound devices open() callback.

- Lars

  parent reply	other threads:[~2014-07-24 12:29 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 12:33 [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support Laurent Pinchart
2014-07-23  2:17 ` Kuninori Morimoto
2014-07-23 10:28   ` Laurent Pinchart
2014-07-23 10:28     ` Laurent Pinchart
2014-07-23 11:07     ` DMA engine API issue (was: [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support) Laurent Pinchart
2014-07-23 11:07       ` Laurent Pinchart
2014-07-23 11:07       ` Laurent Pinchart
2014-07-24  0:46       ` Kuninori Morimoto
2014-07-24  0:46         ` Kuninori Morimoto
2014-07-24  0:46         ` Kuninori Morimoto
2014-07-24  1:35         ` Kuninori Morimoto
2014-07-24  1:35           ` Kuninori Morimoto
2014-07-24  1:35           ` Kuninori Morimoto
2014-07-24  4:53           ` Vinod Koul
2014-07-24  4:59             ` Vinod Koul
2014-07-24  4:53             ` Vinod Koul
2014-07-24  4:52       ` Vinod Koul
2014-07-24  4:58         ` Vinod Koul
2014-07-24  4:52         ` Vinod Koul
2014-08-01  8:51         ` Laurent Pinchart
2014-08-01  8:51           ` Laurent Pinchart
2014-08-01  8:51           ` Laurent Pinchart
2014-08-01 14:30           ` Russell King - ARM Linux
2014-08-01 14:30             ` Russell King - ARM Linux
2014-08-01 14:30             ` Russell King - ARM Linux
2014-08-01 17:09             ` Vinod Koul
2014-08-01 17:21               ` Vinod Koul
2014-08-01 17:09               ` Vinod Koul
2014-08-04 13:47             ` Geert Uytterhoeven
2014-08-04 13:47               ` Geert Uytterhoeven
2014-08-04 13:47               ` Geert Uytterhoeven
2014-08-04 17:00             ` Laurent Pinchart
2014-08-04 17:00               ` Laurent Pinchart
2014-08-04 17:00               ` Laurent Pinchart
2014-08-04 17:54               ` Russell King - ARM Linux
2014-08-04 17:54                 ` Russell King - ARM Linux
2014-08-04 17:54                 ` Russell King - ARM Linux
2014-08-05 23:19                 ` Laurent Pinchart
2014-08-05 23:19                   ` Laurent Pinchart
2014-08-05 23:19                   ` Laurent Pinchart
2014-08-06  7:17                   ` Geert Uytterhoeven
2014-08-06  7:17                     ` Geert Uytterhoeven
2014-08-06  7:17                     ` Geert Uytterhoeven
2014-08-06 11:04                     ` Arnd Bergmann
2014-08-06 11:04                       ` Arnd Bergmann
2014-08-06 11:04                       ` Arnd Bergmann
2014-08-01 17:07           ` Vinod Koul
2014-08-01 17:19             ` Vinod Koul
2014-08-01 17:07             ` Vinod Koul
2014-08-04 16:50             ` Laurent Pinchart
2014-08-04 16:50               ` Laurent Pinchart
2014-08-04 16:50               ` Laurent Pinchart
2014-08-04 18:03               ` DMA engine API issue Lars-Peter Clausen
2014-08-04 18:03                 ` Lars-Peter Clausen
2014-08-04 18:03                 ` Lars-Peter Clausen
2014-08-04 18:32                 ` Russell King - ARM Linux
2014-08-04 18:32                   ` Russell King - ARM Linux
2014-08-04 18:32                   ` Russell King - ARM Linux
2014-08-04 23:12                   ` Laurent Pinchart
2014-08-04 23:12                     ` Laurent Pinchart
2014-08-04 23:12                     ` Laurent Pinchart
2014-08-05 16:56               ` DMA engine API issue (was: [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support) Vinod Koul
2014-08-05 17:08                 ` Vinod Koul
2014-08-05 16:56                 ` Vinod Koul
2014-07-24 12:29       ` Lars-Peter Clausen [this message]
2014-07-24 12:29         ` [alsa-devel] DMA engine API issue Lars-Peter Clausen
2014-07-24 12:29         ` Lars-Peter Clausen
2014-07-24 12:51       ` DMA engine API issue (was: [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support) Russell King - ARM Linux
2014-07-24 12:51         ` Russell King - ARM Linux
2014-07-24 12:51         ` Russell King - ARM Linux
2014-08-01  9:24         ` Laurent Pinchart
2014-08-01  9:24           ` Laurent Pinchart
2014-08-01  9:24           ` Laurent Pinchart
2014-07-23  9:48 ` [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support Laurent Pinchart
2014-07-23 23:56 ` Kuninori Morimoto
2014-07-24  8:51   ` [PATCH] ASoC: rsnd: fixup dai remove callback operation Kuninori Morimoto
2014-07-25 17:50     ` Mark Brown
2014-07-24  0:12 ` [PATCH/RFC 0/5] R-Car Gen2 DMAC hardware descriptor list support Laurent Pinchart

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=53D0FC15.6050601@metafoo.de \
    --to=lars@metafoo.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=kuninori.morimoto.gx@gmail.com \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=vinod.koul@intel.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 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.