Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1242721
| From | "M'boumba Cedric Madianga" <cedric.madianga@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings |
| Date | 2015-10-08 22:30 +0200 |
| Message-ID | <qhpZ7-5Jz-9@gated-at.bofh.it> (permalink) |
| References | <qhliO-7tw-11@gated-at.bofh.it> <qhlCa-7Qf-17@gated-at.bofh.it> <qhlVv-8s5-11@gated-at.bofh.it> <qhp34-4ok-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2015-10-08 21:26 GMT+02:00 Arnd Bergmann <arnd@arndb.de>: > On Thursday 08 October 2015 18:01:23 M'boumba Cedric Madianga wrote: >> Hi Arnd, >> >> 2015-10-08 17:43 GMT+02:00 Arnd Bergmann <arnd@arndb.de>: >> > On Thursday 08 October 2015 17:20:09 M'boumba Cedric Madianga wrote: >> >> +Each dmas request consists of 5 cells: >> >> +1. A phandle pointing to the STM32 DMA controller >> >> +2. The channel id >> >> +3. The request line number >> >> +4. A 32bit mask specifying the DMA channel configuration >> >> >> > >> > It's fairly unusual to encode the channel id here, rather than >> > letting the driver pick one. Is that actually required here? >> >> Yes it is required as in STM32 platform the channel/request DMA >> mapping is done by hardware lines. >> So, if one client wants to use DMA, he has to choose the correct >> channel/request values according to the DMA mapping of his STM32 >> platform. > > Interesting. So you have seven channels ans seven request lines, > with a random but fixed mapping between them? We have eight channels and eight request lines with fixed mapping between them Each peripheral has his channel/request combination to access to the DMA controller. > > How do you know which channels are available for memory-to-memory > transfers? For memory-to-memory transfer we don't need any channel/request combination. We look for any available channel in the channel list to execute our transfer. So, as often as possible, we expect that a peripheral release his channel after transfering data. In that way, we always should have at least one channel available for that kind of transfer. > > Arnd BR, Cedric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/4] dt-bindings: Document the STM32 DMA bindings M'boumba Cedric Madianga <cedric.madianga@gmail.com> - 2015-10-08 17:30 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings Arnd Bergmann <arnd@arndb.de> - 2015-10-08 17:50 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings "M'boumba Cedric Madianga" <cedric.madianga@gmail.com> - 2015-10-08 18:10 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings Arnd Bergmann <arnd@arndb.de> - 2015-10-08 21:30 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings "M'boumba Cedric Madianga" <cedric.madianga@gmail.com> - 2015-10-08 22:30 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings Arnd Bergmann <arnd@arndb.de> - 2015-10-08 22:50 +0200
Re: [PATCH 1/4] dt-bindings: Document the STM32 DMA bindings Maxime Coquelin <mcoquelin.stm32@gmail.com> - 2015-10-12 21:20 +0200
csiph-web