Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441061

Re: [PATCH] dmaengine: pxa_dma: implement device_synchronize

From Vinod Koul <vinod.koul@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] dmaengine: pxa_dma: implement device_synchronize
Date 2016-07-12 06:30 +0200
Message-ID <rTXux-8oe-5@gated-at.bofh.it> (permalink)
References <rTuVB-6qQ-49@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jul 10, 2016 at 11:50:49PM +0200, Robert Jarzmik wrote:
> Implement the function which wait until a dma channel is stopped to have
> a synchronization point.
> 
> This also protects the pxad_remove() from races, such as spurious
> interrupts while removing the driver, because :
>  - as long as there is one dma channel requested, ie. dma_chan_get() but
>    no dma_chan_put(), the try_module_get() of dma_chan_get() prevents
>    the remove() routine from running
>  - when the last channel is released, ie. the last dma_chan_put() is
>    called, if there is a running DMA, pxad_synchronize() is called
>  - pxad_synchronize() waits for the channel to stop, which in turn
>    ensures on pxa architecture that the interrupt cannot be fired anymore

Applied, thanks

-- 
~Vinod

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] dmaengine: pxa_dma: implement device_synchronize Robert Jarzmik <robert.jarzmik@free.fr> - 2016-07-11 00:00 +0200
  Re: [PATCH] dmaengine: pxa_dma: implement device_synchronize Vinod Koul <vinod.koul@intel.com> - 2016-07-12 06:30 +0200

csiph-web