From: vinod.koul@linux.intel.com (Vinod Koul)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 1/3] dmaengine: mmp-pdma support
Date: Fri, 14 Sep 2012 08:15:50 +0530 [thread overview]
Message-ID: <1347590750.1943.1.camel@vkoul-udesk3> (raw)
In-Reply-To: <1346641427-5002-2-git-send-email-zhangfei.gao@marvell.com>
On Mon, 2012-09-03 at 11:03 +0800, Zhangfei Gao wrote:
> 1. virtual channel vs. physical channel
> Virtual channel is managed by dmaengine
> Physical channel handling resource, such as irq
> Physical channel is alloced dynamically as descending priority,
> freed immediately when irq done.
> The availble highest priority physically channel will alwayes be alloced
>
> Issue pending list -> alloc highest dma physically channel available -> dma done -> free physically channel
>
> 2. list: running list & pending list
> submit: desc list -> pending list
> issue_pending_list: if (IDLE) pending list -> running list; free pending list (RUN)
> irq: free running list (IDLE)
> check pendlist -> pending list -> running list; free pending list (RUN)
>
> 3. irq:
> Each list generate one irq, calling callback
> One list may contain several desc chain, in such case, make sure only the last desc list generate irq.
>
> 4. async
> Submit will add desc chain to pending list, which can be multi-called
> If multi desc chain is submitted, only the last desc would generate irq -> call back
> If IDLE, issue_pending_list start pending_list, transforming pendlist to running list
> If RUN, irq will start pending list
>
> 5. test
> 5.1 pxa3xx_nand on pxa910
> 5.2 insmod dmatest.ko (threads_per_chan=y)
> By default drivers/dma/dmatest.c test every channel and test memcpy with 1 threads per channel
>
> Signed-off-by: Zhangfei Gao <zhangfei.gao@marvell.com>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
Applied thanks
--
~Vinod
next prev parent reply other threads:[~2012-09-14 2:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-03 3:03 [PATCH v5 0/3] dmaengine: add support mmp-pdma Zhangfei Gao
2012-09-03 3:03 ` [PATCH v5 1/3] dmaengine: mmp-pdma support Zhangfei Gao
2012-09-14 2:45 ` Vinod Koul [this message]
2012-09-03 3:03 ` [PATCH v5 2/3] dmaengine: mmp_tdma: add dt support Zhangfei Gao
2012-09-14 2:46 ` Vinod Koul
2012-09-03 3:03 ` [PATCH v5 3/3] ARM: dt: mmp-dma: add binding file Zhangfei Gao
2012-09-14 2:45 ` Vinod Koul
2012-09-14 2:58 ` Haojian Zhuang
2012-09-14 2:58 ` Vinod Koul
2012-09-14 3:32 ` Zhangfei Gao
2012-09-21 7:48 ` Haojian Zhuang
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=1347590750.1943.1.camel@vkoul-udesk3 \
--to=vinod.koul@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox